+ Reply to Thread
Results 1 to 16 of 16

Excel 2007 : Multiple Vlookups

  1. #1
    Registered User
    Join Date
    10-24-2011
    Location
    Philadelphia, PA
    MS-Off Ver
    Excel 2007
    Posts
    16

    Multiple Vlookups

    Hello,

    My Excel workbook consists of several sheets filled with information (list of items on 6 different sheets to be exact) and I would like to create a sheet dedicated to searching for items within the workbook without having to peruse the various sheets. I thought vlookup would be a great idea for finding the information fast (with the exception of hitting ctrl F on each sheet) however; I am not having success with creating the proper vlookup formula. I read something about incorporating "indirect" into the formula but this has not been successful either. The error message I receive states that I have "entered too many arguments". Has anyone done this before? Does anyone have a better way of doing what I would like to do?

    Thanks in advance
    Last edited by NBVC; 10-26-2011 at 03:25 PM.

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Multiple Vlookups

    Do you have a cell in the summary sheet that actually indicates which of the sheets you are to look in for a match, or is the vlookup supposed to go through all the sheets all of the time to find a match in one of them?
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Registered User
    Join Date
    10-24-2011
    Location
    Philadelphia, PA
    MS-Off Ver
    Excel 2007
    Posts
    16

    Re: Multiple Vlookups

    I created a name for the info in each sheet using "Name Manager" and input the name in the formula. This works if I'm referencing one sheet but not multiple. Not sure if I answered your questions.

  4. #4
    Registered User
    Join Date
    10-24-2011
    Location
    Philadelphia, PA
    MS-Off Ver
    Excel 2007
    Posts
    16

    Re: Multiple Vlookups

    If it helps, I can attach the file so you can get an idea of what I would like to do?

  5. #5
    Valued Forum Contributor Miraun's Avatar
    Join Date
    04-03-2009
    Location
    New England
    MS-Off Ver
    2003, 2007, 2010, 2013
    Posts
    554

    Re: Multiple Vlookups

    yeah, an example file would be great.
    Going for Guru! Click the Star to the bottom left of this post if I helped!

  6. #6
    Registered User
    Join Date
    10-24-2011
    Location
    Philadelphia, PA
    MS-Off Ver
    Excel 2007
    Posts
    16

    Re: Multiple Vlookups

    Ok...how do I attach a file to this thread?

  7. #7
    Registered User
    Join Date
    10-24-2011
    Location
    Philadelphia, PA
    MS-Off Ver
    Excel 2007
    Posts
    16

    Re: Multiple Vlookups

    Please find the attachment for my "test" file. Thank You.
    Attached Files Attached Files

  8. #8
    Registered User
    Join Date
    10-24-2011
    Location
    Philadelphia, PA
    MS-Off Ver
    Excel 2007
    Posts
    16

    Re: Multiple Vlookups

    Quote Originally Posted by NBVC View Post
    Do you have a cell in the summary sheet that actually indicates which of the sheets you are to look in for a match, or is the vlookup supposed to go through all the sheets all of the time to find a match in one of them?

    To answer the last part of your question, I would like vlookup to go through all the sheets all the time to find a match for what I request.
    Last edited by inquizitiv; 10-25-2011 at 12:10 PM.

  9. #9
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Multiple Vlookups

    See attached.

    First, create a list of sheetnames somewhere. I chose M2:M4 of the Search sheet. Name this range. I chose to name it Sheets.

    Then apply formula in B5:

    Please Login or Register  to view this content.
    confirm this with CTRL+SHIFT+ENTER not just ENTER and then copy down and across.

    To hide the 0's, format the range as Custom: 0;-0;;@
    Attached Files Attached Files

  10. #10
    Registered User
    Join Date
    10-24-2011
    Location
    Philadelphia, PA
    MS-Off Ver
    Excel 2007
    Posts
    16

    Re: Multiple Vlookups

    OMG!!! Thank you so much! How did you consolidate all the names in name manager? Trying to figure out exactly how you did, what you did.

  11. #11
    Registered User
    Join Date
    10-24-2011
    Location
    Philadelphia, PA
    MS-Off Ver
    Excel 2007
    Posts
    16

    Re: Multiple Vlookups

    Quote Originally Posted by NBVC View Post
    See attached.

    First, create a list of sheetnames somewhere. I chose M2:M4 of the Search sheet. Name this range. I chose to name it Sheets.

    Then apply formula in B5:

    Please Login or Register  to view this content.
    confirm this with CTRL+SHIFT+ENTER not just ENTER and then copy down and across.

    To hide the 0's, format the range as Custom: 0;-0;;@

    Ok..created the sheet names on my search page (as you did) and input the range for each name. I created a name to incorporate all sheets in the name manager. I copied and pasted this formula into the cell. I changed the reference from "sheets" to my name and the formula is not working. What am I doing wrong?

  12. #12
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Multiple Vlookups

    Did you confirm the formula with CTRL+SHIFT+ENTER instead of just ENTER before copying down and/or across?

  13. #13
    Registered User
    Join Date
    10-24-2011
    Location
    Philadelphia, PA
    MS-Off Ver
    Excel 2007
    Posts
    16

    Re: Multiple Vlookups

    Quote Originally Posted by NBVC View Post
    Did you confirm the formula with CTRL+SHIFT+ENTER instead of just ENTER before copying down and/or across?
    I apologize NBVC for being so dense but I copied your formula from this forum. I then clicked on the cell in my workbook and paste the formula. I tested the formula by typing something in the search cell (to the left of the actual formula) and nothing was returned. When I click on the cell with the formula and click on fx next to the formula bar, it returns "IFERROR--value=volatile; value_if_error="" ". I didn't copy anything down or across yet. Just checked the one cell.

  14. #14
    Registered User
    Join Date
    10-24-2011
    Location
    Philadelphia, PA
    MS-Off Ver
    Excel 2007
    Posts
    16

    Re: Multiple Vlookups

    Quote Originally Posted by NBVC View Post
    Did you confirm the formula with CTRL+SHIFT+ENTER instead of just ENTER before copying down and/or across?
    Is this a code that I should place in a macro?

  15. #15
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Multiple Vlookups

    After you enter the formula in the cell and the cell is still active (i.e. a cursor still in it), then just hold the CTRL and SHIFT keys down, and press ENTER. You should see curly { } brackets surround the formula. Then it should give you your expected results... then just copy down and across.

  16. #16
    Registered User
    Join Date
    10-24-2011
    Location
    Philadelphia, PA
    MS-Off Ver
    Excel 2007
    Posts
    16

    Re: Multiple Vlookups

    Quote Originally Posted by NBVC View Post
    After you enter the formula in the cell and the cell is still active (i.e. a cursor still in it), then just hold the CTRL and SHIFT keys down, and press ENTER. You should see curly { } brackets surround the formula. Then it should give you your expected results... then just copy down and across.
    Thanks so much. It works but I didn't know that the name of the cells (M4:M6) had to be exactly the same as the sheet tabs. That was one of the other issues. I really appreciate all your effort to help. Thanks again.

+ 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