+ Reply to Thread
Results 1 to 3 of 3

Vlookup across multiple sheets

  1. #1
    Registered User
    Join Date
    08-30-2012
    Location
    Denver, CO
    MS-Off Ver
    Excel 2004
    Posts
    11

    Vlookup across multiple sheets

    I want to do a VLOOKUP that can search several different sheets in a 2004 Excel document.
    The way my document is set up, column A has the type of thing I'm looking for, column B has the exact item, and column C has the price for that item. Each type listed in column A has its own sheet (steel, lumber, etc).

    What I would like to do is something like this:
    cell C1=VLOOKUP($B1,'INDIRECT($A1)'!$A:$B,2,FALSE)

    My hope/intention was that it would populate the sheet name from A1, and therefore only need to search one sheet, but it doesn't seem to be working. Any ideas for tweaks to the formula?

    (The only other potential solution seems to be a large, unwieldy, nested if statement with vlookup inside. If I can get this to work, it would be a lot more elegant, though.)
    Last edited by Gwen@YouWantWhat?; 10-01-2012 at 05:01 PM.

  2. #2
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Vlookup across multiple sheets

    Try
    =VLOOKUP($B1,INDIRECT($A1 & "!$A:$B"),2,FALSE)
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

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

  3. #3
    Registered User
    Join Date
    08-30-2012
    Location
    Denver, CO
    MS-Off Ver
    Excel 2004
    Posts
    11

    Re: Vlookup across multiple sheets

    That did the trick- thank you!

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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