Multi criteria lookup

Samosa

New Member
Joined
Nov 9, 2014
Messages
23
Hello, I have a data set from A1:H2 and seeking solution in I1 and I2 from Reference list in A7:B15.

For Bob, I need to lookup the values in A1:G1 against the reference list and return the value corresponding to the last nonblank instance.

Thanks in advance!

ABCDEFGHI
1ABCDEFBobdark
2AB1C2D2Mikecake
3
4
5
6REFERENCE LIST
7A
8B
9Ccar
10Ddark
11E
12F
13B1
14C2cake
15D2
<colgroup><col width="64" style="width: 48pt;" span="10"> <tbody> </tbody>

<tbody>
</tbody>
 

Excel Facts

How to change case of text in Excel?
Use =UPPER() for upper case, =LOWER() for lower case, and =PROPER() for proper case. PROPER won't capitalize second c in Mccartney
In I1 Try

This is an array formula and must be committed with CONTROL+SHIFT+ENTER. If done correctly Excel will put {} around the formula. If no match is found it will return "no value found" change this to what you want and copy down
Code:
=IFERROR(INDEX($B$7:$B$15,AGGREGATE(14,6,MATCH($A1:$F1&FALSE,$A$7:$A$15&ISBLANK($B$7:$B$15),0),1)),"no value found")
 
Upvote 0
Also, in I1 control+shift+enter, not just enter, and copy down:

=LOOKUP(REPT("z",255),IF(ISNUMBER(MATCH($A$7:$A$15,A1:F1,0)),$B$7:$B$15))
 
Upvote 0

Forum statistics

Threads
1,221,417
Messages
6,159,789
Members
451,589
Latest member
Harold14

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top