+ Reply to Thread
Results 1 to 5 of 5

Thread: VLOOKUP with multiple tabs

  1. #1
    Registered User
    Join Date
    11-14-2009
    Location
    Midwest
    MS-Off Ver
    Excel 2003/2007
    Posts
    96

    VLOOKUP with multiple tabs

    I am trying to create a VLOOKUP formula that will differentiate which tab it looks at each time. I have the tabs named according to what is in a certain cell in each row and want the formula to use that cell to choose which tab to look in. So instead of my range for the VLOOKUP being
    Tab_Name!A1:D4
    it would be
    'F2'!A1:D4
    with F2 being the cell that my tab name is stored in. Am I just doing this wrong, or is it even possible? Thanks!
    Last edited by bibleguy125; 11-18-2011 at 06:23 PM.

  2. #2
    Valued Forum Contributor tigeravatar's Avatar
    Join Date
    03-25-2011
    Location
    USA
    MS-Off Ver
    Excel 2003 - 2007
    Posts
    2,352

    Re: VLOOKUP with multiple tabs

    bibleguy125,

    This is a job for the Indirect() formula. Attached is an example workbook based on the sample criteria you stated. Sheet1 contains the formula
    Attached Files Attached Files
    Hope that helps,
    ~tigeravatar

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  3. #3
    Valued Forum Contributor MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Seattle, WA
    MS-Off Ver
    Excel 2010
    Posts
    5,285

    Re: VLOOKUP with multiple tabs

    Hi bibleguy126,

    It sounds like you need to use the "Indirect()" function to build a string that then points to what/where you want to do your lookup.

    Look at
    http://www.handyexceltips.com/2008/0...rect-function/ or
    http://dmcritchie.mvps.org/excel/indirect.htm
    One test is worth a thousand opinions.
    Click the * below to say thanks.

  4. #4
    Valued Forum Contributor
    Join Date
    09-27-2011
    Location
    Poland
    MS-Off Ver
    Excel 2007
    Posts
    895

    Re: VLOOKUP with multiple tabs

    a little different than tigeravatar
    Attached Files Attached Files
    Regards

    tom1977

    If You are satisfied with my solution click the small star icon on the left to say thanks.

  5. #5
    Registered User
    Join Date
    11-14-2009
    Location
    Midwest
    MS-Off Ver
    Excel 2003/2007
    Posts
    96

    Re: VLOOKUP with multiple tabs

    Thanks guys, that's exactly what I needed.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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.2.0