+ Reply to Thread
Results 1 to 8 of 8

Vlookup referencing tab name

  1. #1
    Registered User
    Join Date
    05-08-2007
    Posts
    35

    Vlookup referencing tab name

    is there a way to create a vlookup referencing the tab name?

    For example, I have a summary sheet and tabs labeled 1- 200. I would like to create a formula on the summary sheet that says - if the # on the summary sheet corresponds with the tab name, then grab the info from that tab.

    Hope this makes sense. Any help would be appreciated. This could save me a lot of time that I would spend linking sheets!

    Thanks in advance!

  2. #2
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675
    You probably need to use the INDIRECT function, e.g. if A1 contains 99 then this formula will lookup B2 in column A of sheet 99 and return the corresponding value from column B

    =VLOOKUP(B2,INDIRECT("'"&A1&"'!A:B"),2,0)

  3. #3
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464
    Quote Originally Posted by redlion3
    is there a way to create a vlookup referencing the tab name?

    For example, I have a summary sheet and tabs labeled 1- 200. I would like to create a formula on the summary sheet that says - if the # on the summary sheet corresponds with the tab name, then grab the info from that tab.

    Hope this makes sense. Any help would be appreciated. This could save me a lot of time that I would spend linking sheets!

    Thanks in advance!
    Hi,

    Yes, use the INDIRECT() function. e.g.
    Please Login or Register  to view this content.
    where here summary sheet A4 contains the value '2' meaning sheet2, summary sheet B4 is the lookup value, and A1:B10 is the range looked up on sheet2.

    HTH

  4. #4
    Registered User
    Join Date
    05-08-2007
    Posts
    35
    Thank you so much for your help. I'm still a little confused - when I put this into excel Im having trouble following. Would you mind showing it to me in excel?
    Attached Files Attached Files

  5. #5
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464
    Quote Originally Posted by redlion3
    Thank you so much for your help. I'm still a little confused - when I put this into excel Im having trouble following. Would you mind showing it to me in excel?
    Hi,

    I'm attaching the workbook with the formula you need. I've simplified the formula since it doesn't need a VLookup if your layouts are as published.

    HTH
    Attached Files Attached Files

  6. #6
    Registered User
    Join Date
    09-12-2012
    Location
    Perth, Australia
    MS-Off Ver
    Excel 2003
    Posts
    1

    Re: Vlookup referencing tab name

    Thank you for this.

  7. #7
    Registered User
    Join Date
    02-28-2013
    Location
    sanford, florida
    MS-Off Ver
    Excel 2007
    Posts
    2

    Re: Vlookup referencing tab name

    I'm doing something similar but using tab "names" and use columns C2, C3, and C4 on each of these tabs as a summary of Org. Req., Bus. Value, and Prob. of Success for example:

    Summary sheet

    Project name

    Project 1.....Org.Reg....Bus Value...Prob of Success.........Ave
    Project 2.....=C2........=C3...........=C4...........................C2:C4
    Project 3.....=C2........=C3...........=C4

    The current formula used is: ='Project 1'!C2....'Project 1'!C3.....'Project 1'!C4

    This requires typing names in Summary sheet formulas which does not always happen. Is there a better way?

    Thanks,
    markingpmp
    Last edited by markingpmp; 02-28-2013 at 11:26 AM.

  8. #8
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: Vlookup referencing tab name

    markingpmp,

    Unfortunately you need to post your question in a new thread, it's against the forum rules to post a question in the thread of another user. If you create your own thread, any advice will be tailored to your situation so you should include a description of what you've done and are trying to do. Also, if you feel that this thread is particularly relevant to what you are trying to do, you can surely include a link to it in your new thread.
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

+ 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.6.0 RC 1