Index & Match 2 criteria

Add365

New Member
Joined
Jun 12, 2021
Messages
35
Office Version
  1. 365
Platform
  1. Windows
Hi Everyone,

I have had a look around and tried a few previous answers on this subject but cant get it to work for me.

I have an entry tab which I am consilidating into a unique tab but I want the Description in the unique tab to look at Cells A2 + B2 and match them and bring up the first discription it comes across in the entry tab that is a match.
Entry.png

Unique.png

The formula I am using at the moment is the below but that only looks at cell A2 and matches to that cell

=IFERROR(INDEX(Entry!$C$2:$C$3000,MATCH(Unique!A2,Entry!$A$2:$A$3000,0)),"")

I have edited the formula to the below which returns data for some cells but it is not the correct data and some cells come out blank for some reason.

=IFERROR(INDEX(Entry!$C$2:$C$3000,MATCH(1,(Entry!A:A=A2)*(Entry!B:B=B2),0)),"")

Can anyone help at all?

Thanks
 

Excel Facts

Highlight Duplicates
Home, Conditional Formatting, Highlight Cells, Duplicate records, OK to add pink formatting to any duplicates in selected range.
How about using XLookup ?

20221015 Two Criteria Match 365 Add365.xlsx
ABC
1CNNCountryDescription
29019491000FRApple
33910000090ITPear
49019491000ITChoc
59019491000ITChoc
Unique
Cell Formulas
RangeFormula
C2:C5C2=XLOOKUP(1,(Entry!$A$2:$A$3000=A2)*(Entry!$B$2:$B$3000=B2),Entry!$C$2:$C$3000,"Not Found")
 
Upvote 0

Forum statistics

Threads
1,215,446
Messages
6,124,904
Members
449,194
Latest member
JayEggleton

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