# Help with Lookup/match/index with 2 criteria.

1. ## Help with Lookup/match/index with 2 criteria.

\1

I'm trying to do a lookup based on 2 criteria. 1 is a general column, and the other is a value to look up in that column. In the attached screenshot, cells B2:D4 would be a named range "ItemsFound" and cells A2:A4 would be a named range "ItemResults". I've used the next largest integer in the ItemsFound so I can use a match formula with a -1 to find the next smallest value. This way if it's somewhere in between my criteria it can still find it. I'm getting confused as to how to also base it on difficulty.

I think a way to simplify the question would be how would I use a match function to lookup values in a single column of a larger array? My real data has 70+ columns to look through.

2. ## Re: Help with Lookup/match/index with 2 criteria.

Name the Range B1:D1 something like Difficulty

and then use another MATCH in the INDEX function for the column.

i.e.

=INDEX(ItemsFound,Match(B9,ItemResults,0),Match(B7,Difficulty,0))

3. ## Re: Help with Lookup/match/index with 2 criteria.

What use is that screenshot?

If you are serious about needing help, then begin by helping us to help you.

Post a sample workbook using the forum facilities!

See how in this link
Forum Rules

[EDIT]
@ NBVC How did you manage to see that screenshot? !!!!!

4. ## Re: Help with Lookup/match/index with 2 criteria.

My solution, similar to NBVC's but I couldn't get his to work

=INDEX(ItemResults,MATCH(B8,INDEX(ItemsFound,,MATCH(B7,Difficulty,0)),1))

5. ## Re: Help with Lookup/match/index with 2 criteria.

Originally Posted by ChemistB
My solution, similar to NBVC's but I couldn't get his to work

=INDEX(ItemResults,MATCH(B8,INDEX(ItemsFound,,MATCH(B7,Difficulty,0)),1))
Mine wasn't a solution, per se, it was just to show that the OP needed to reference the column Headers to make a "column match".

Your solution is probably what they are looking for

6. ## Re: Help with Lookup/match/index with 2 criteria.

NBVC & Chemist, thank you for your efforts. Like Chemist, I was unable to get NBVC's method to work.
I see how Chemist's is working and it's not doing what I want, but that's because of my own misunderstanding as to how the "less than" results worked.

By changing the values in my table, I will be able to make this work. Thank you both again and have a wonderful day.

NBVC, I see what you were going for by referencing the columns. I also didn't realize I could omit values in the Index function to just get a column/row.

##### Users Browsing this Thread

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

#### 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