X lookup or index match with 2 conditions

Cervani

New Member
Joined
Jun 22, 2022
Messages
22
Office Version
  1. 365
Platform
  1. Windows
Hello, as per below table, can I get some formula calculating in "Result I want to get"please

table 1
codeTownResult I want to get
27JSacramentosold
27JSacramentosold
27JSacramentosold
27JNew Yorkwaiting
27JNew Yorkwaiting
26JDenverno data
26JDenverno data
24JSacramentoApproved
Table 2 with values to match
codetownstatus
27JSacramentosold
27JNew Yorkwaiting
24JSacramentoApproved
 

Excel Facts

When they said...
When they said you are going to "Excel at life", they meant you "will be doing Excel your whole life".
1664918112080.png
 
Upvote 0
Solution
Another option with Excel 365 is the FILTER function.

Book1
ABC
1table 1
2codeTownResult I want to get
327JSacramentosold
427JSacramentosold
527JSacramentosold
627JNew Yorkwaiting
727JNew Yorkwaiting
826JDenverNo Data
926JDenverNo Data
1024JSacramentoApproved
11
12
13Table 2 with values to match
14codetownstatus
1527JSacramentosold
1627JNew Yorkwaiting
1724JSacramentoApproved
Sheet1
Cell Formulas
RangeFormula
C3:C10C3=FILTER($C$15:$C$17,($A$15:$A$17=A3)*($B$15:$B$17=B3),"No Data")
 
Upvote 0
Thanks both,
Filter is cool but when I Filter column after this formula it doesn't keep reference.
 
Upvote 0

Forum statistics

Threads
1,215,770
Messages
6,126,794
Members
449,337
Latest member
BBV123

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