+ Reply to Thread
Results 1 to 4 of 4

Vlookup with index match but on sheet names

  1. #1
    Valued Forum Contributor Blake 7's Avatar
    Join Date
    10-01-2010
    Location
    Bogota, Colombia
    MS-Off Ver
    Excel 2010 64 bit and Excel 2007,
    Posts
    1,377

    Vlookup with index match but on sheet names

    Hi Guys,

    Hope all are well.

    There is a macro within this workbook (on the summary sheet tab) which places all sheet names in col A, from a2 down.

    I need to adapt the index match formula in cells B and C2 to be able to reference the values in col A, which are the sheet names, as I don’t want to have to type the sheet name each time!

    =INDEX(Bob!$B:$B,MATCH(Summary!$B$1,Bob!$A:$A,0))

    in the formula above I typed Bob! which is in cell a2 of the summary sheet but would like to be able to reference it using a formula.

    Any ideas?

    please see attached.

    Thanks
    Attached Files Attached Files
    Last edited by Blake 7; 02-01-2012 at 06:05 AM. Reason: to mark as solved
    Blake 7

    If your question has been answered, please click EDIT in your original post, click GO ADVANCED and set the PREFIX box to SOLVED.

    If any member's response has helped to solve your problem, please consider using the scales icon on the top right of their post to show your appreciation.

    http://failblog.org/

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,731

    Re: Vlookup with index match but on sheet names

    Try this:

    =INDEX(INDIRECT("'"&A2&"'!$B:$B"),MATCH(Summary!$B$1,INDIRECT("'"&A2&"'!$A:$A"),0))

    The apostrophes allow for your sheet names having spaces.

    Hope this helps.

    Pete

  3. #3
    Valued Forum Contributor Blake 7's Avatar
    Join Date
    10-01-2010
    Location
    Bogota, Colombia
    MS-Off Ver
    Excel 2010 64 bit and Excel 2007,
    Posts
    1,377

    Re: Vlookup with index match but on sheet names

    Hey pete. bloody marvellous!! thanks!

  4. #4
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,731

    Re: Vlookup with index match but on sheet names

    Glad to be able to help - thanks for feeding back.

    Pete

+ 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