+ Reply to Thread
Results 1 to 9 of 9

HELP working out VLOOK formula i need to use across tabs

  1. #1
    Registered User
    Join Date
    02-14-2014
    Location
    London, England
    MS-Off Ver
    Excel 2010
    Posts
    5

    HELP working out VLOOK formula i need to use across tabs

    I think my mind is just frazzled but I need help working out the vlook formula for the attached spreadsheet.
    I'm trying to use a vlook up across multiple tabs. (hopefully I've not had a shocker and been trying the wrong approach)

    I want the summary tab to search the '3 group tabs' on name, and then to return the number of days for each month. So the summary tab will effectively show the total days for each person (based on the group tabs)

    Any help would be much appreciated!
    Attached Files Attached Files

  2. #2
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS 365 Family 64-bit 2411
    Posts
    26,729

    Re: HELP working out VLOOK formula i need to use across tabs

    You can't do lookups on three tabs at once in one formula.

    Here is one solution that adds three lookups. It uses INDEX(MATCH, MATCH) to insulate you against format changes in the sheets.
    Attached Files Attached Files
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

  3. #3
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    30,695

    Re: HELP working out VLOOK formula i need to use across tabs

    Another .....

    In C2

    =SUMPRODUCT(SUMIF(INDIRECT("'"&Tabs&"'!A2:A50"),$A2,INDIRECT("'"&Tabs&"'!D2:D50")))

    Tabs is named range of sheet names (Group1, Group2, Group3)

    Change D2:D50 to E2:E50 to F2:F50 etc in D2, E2 etc

    Copy down

  4. #4
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS 365 Family 64-bit 2411
    Posts
    26,729

    Re: HELP working out VLOOK formula i need to use across tabs

    Quote Originally Posted by JohnTopley View Post
    In C2

    =SUMPRODUCT(SUMIF(INDIRECT("'"&Tabs&"'!A2:A50"),$A2,INDIRECT("'"&Tabs&"'!D2:D50")))

    Tabs is named range of sheet names (Group1, Group2, Group3)

    Change D2:D50 to E2:E50 to F2:F50 etc in D2, E2 etc

    Copy down
    Didn't know you could do that. How do you create a named range of sheet names? What does it look like in the formula box when creating the name?

  5. #5
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    30,695

    Re: HELP working out VLOOK formula i need to use across tabs

    Put the tabs names in Sheet1 A1:A3 then "Formulas"==>Define Name==>Name: Tabs Refers to: Sheet1!a1:A3

  6. #6
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS 365 Family 64-bit 2411
    Posts
    26,729

    Re: HELP working out VLOOK formula i need to use across tabs

    Oh, I see, I thought you mean somehow the sheet names went directly into the named range. Very clever.

  7. #7
    Registered User
    Join Date
    02-14-2014
    Location
    London, England
    MS-Off Ver
    Excel 2010
    Posts
    5

    Re: HELP working out VLOOK formula i need to use across tabs

    Thanks very much! I think I need to do some reading up to get my head around it!!
    I've tried applying the above (1st suggestion) to my master sheet though and it doesn't appear to be working - is it because I have additional columns not outlined in my example file?
    I've uploaded a copy of the sheet i'm now trying to use (and just left the sensitive data cells blank)... I'm not sure if i need to try something else or i have made a basic error somewhere...

    Any advice is much appreciated!
    Attached Files Attached Files

  8. #8
    Forum Contributor
    Join Date
    09-24-2012
    Location
    York, England
    MS-Off Ver
    Excel 2003/07/10
    Posts
    165

    Re: HELP working out VLOOK formula i need to use across tabs

    Quote Originally Posted by JohnTopley View Post
    Put the tabs names in Sheet1 A1:A3 then "Formulas"==>Define Name==>Name: Tabs Refers to: Sheet1!a1:A3
    I haven't seen this before either - thanks John

  9. #9
    Registered User
    Join Date
    02-14-2014
    Location
    London, England
    MS-Off Ver
    Excel 2010
    Posts
    5

    Re: HELP working out VLOOK formula i need to use across tabs

    i think i've finally got it - thank you everyone (and for your patience with my questions!!)
    Now to read up on a few things!!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. VLook up not working
    By LastJedi in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 11-11-2015, 10:26 AM
  2. [SOLVED] Vlook Up function not working Properly, donot know, need help
    By Bitto in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 04-06-2015, 08:44 AM
  3. Help with Vlook up to multiple Tabs
    By Erico248 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-26-2014, 11:15 AM
  4. Vlook up not working on multiple columns
    By benji8798 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 05-05-2013, 10:18 PM
  5. Vlook & Macro not working together
    By dstrdOne in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 04-09-2013, 04:43 PM
  6. is there a formula for this (when working with 2 tabs)
    By wonderingwoman in forum Excel General
    Replies: 8
    Last Post: 03-30-2012, 10:05 AM
  7. vlook up and if formula
    By Stuart in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 09-06-2005, 03:05 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1