+ Reply to Thread
Results 1 to 4 of 4

Index + Match/Multi-Vlookup for Items with shared names

  1. #1
    Registered User
    Join Date
    09-28-2013
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    21

    Index + Match/Multi-Vlookup for Items with shared names

    Hi all, I'm having a problem that is giving me a major headache, hoping someone here can help me out.

    Sample.xlsx

    In the attached excel file, I'm trying to do a lookup based on two criteria - the class and the number. I used an index/match combo that I think should work, but it didn't register correctly. I keep on getting an error.

    I believe this may be due to the fact that there are shared values - some numbers are shared across multiple classes. If that's the case, is there a workaround so that I can properly lookup the item? If not with the index/match, with any other function? (I've tried a vlookup in this case but no luck either)

    Thanks!

  2. #2
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Index + Match/Multi-Vlookup for Items with shared names

    Your formula will work if you enter it as an array formula.

    Here's another array formula that will work and is a bit more efficient:

    =INDEX(C4:C18,MATCH(B1,IF(A4:A18=A1,B4:B18),0))

    Array formulas are entered differently than a regular formula. After you type in a regular formula you hit the ENTER key. With an array formula you *must* use a combination of keys. Those keys are the CTRL key, the SHIFT key and the ENTER key. That is, hold down both the CTRL key and the SHIFT key then hit the ENTER key.

    When done properly Excel will enclose the formula in squiggly brackets { }. You can't just type these brackets in, you *must* use the key combo to produce them. Also, anytime you edit an array formula it *must* be re-entered as an array using the key combo.
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  3. #3
    Registered User
    Join Date
    09-28-2013
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    21

    Re: Index + Match/Multi-Vlookup for Items with shared names

    Fascinating, I never knew that arrays had to be inputed differently. You learn something every day - thank you Tony Valko, I appreciate your expertise and assistance!

  4. #4
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Index + Match/Multi-Vlookup for Items with shared names

    You're welcome. Thanks for the feedback!

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Multi-conditional INDEX, MATCH, VLOOKUP... finding Lat & Long in a geographic square grid
    By heinemannj in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 09-03-2013, 12:38 PM
  2. Excel 2007 : Index, Match, or multi Vlookup
    By tlafferty in forum Excel General
    Replies: 3
    Last Post: 04-18-2012, 03:40 AM
  3. Vlookup with index match but on sheet names
    By Blake 7 in forum Excel General
    Replies: 3
    Last Post: 02-01-2012, 06:15 AM
  4. need help in sum up multi criterias (index & match)
    By aroundyou in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 10-17-2006, 08:25 PM
  5. need help in sum up multi criterias (index & match)
    By aroundyou in forum Excel General
    Replies: 3
    Last Post: 10-15-2006, 07:53 PM

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