VLOOKUP on 2 sets of criteria

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

My data set looks something like this.

Test Name Level Spec
Test 1 8 -32
Test 1 9 -32
Test 1 10 -32
Test 1 11 -34
Test 1 12 -34
Test 2 8 -28
Test 2 9 -29
Test 2 10 -31
Test 2 11 -32
Test 2 12 -32

I would like to be able to do a VLOOKUP on Spec, based on a combination of
TestName AND Level

Is this possible?

Thanks
sandy
 
=Index(C:C,Match("Test 110",$A$1:$A$100&$B$1:$B$100,0),1)

entered with Ctrl+shift+Enter rather than just enter since this is an array
formula.
 
OK - i think I get this logic - thanks!

I have one question:
"Test 110" - this is a concatenation of the values [Test Name = test 1 and
level = 10] in the two fields that I want to look up on, correct?

However, since i need to look up a different value for thousands of records,
I want to create a formula to concatenate the fields and then use a cell
reference instead of specific text.

=INDEX(C:C,MATCH(G2,$A$1:$A$100&$B$1:$B$100,0),1)

Where G2 hold the concatenated value for that record.

This gave me a "VALUE" error... what am i missing here?

Thanks!
 
Pls ignore this last question - I have it working with a cell reference.

Thanks!
sandy

Sandy said:
OK - i think I get this logic - thanks!

I have one question:
"Test 110" - this is a concatenation of the values [Test Name = test 1 and
level = 10] in the two fields that I want to look up on, correct?

However, since i need to look up a different value for thousands of records,
I want to create a formula to concatenate the fields and then use a cell
reference instead of specific text.

=INDEX(C:C,MATCH(G2,$A$1:$A$100&$B$1:$B$100,0),1)

Where G2 hold the concatenated value for that record.

This gave me a "VALUE" error... what am i missing here?

Thanks!

Tom Ogilvy said:
=Index(C:C,Match("Test 110",$A$1:$A$100&$B$1:$B$100,0),1)

entered with Ctrl+shift+Enter rather than just enter since this is an array
formula.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top