XLOOKUP with Multiple Criteria

dvanallen

New Member
Joined
Dec 5, 2014
Messages
12
I need help creating an XLOOKUP formula. I want to look up and return the value in Category2 if the date, amount, and last name values in Table2 match the values in Table1. What I have isn't working. Any ideas?

Book2.xlsx
ABCDE
1DateLast NameCategoryAmount
24/5/2023Smith#N/A$31.17
34/25/2023Johnson#N/A$103.20
4
5
6Date2Last Name2Category2Amount2
704/01/2023RodgersElementary370.74
804/05/2023SmithSecondary31.17
904/25/2023JohnsonTrade School103.20
1004/25/2023JohnsonUniversity180.00
1104/28/2023SmithGeneral480.00
1204/17/2023McDonaldMedical1,440.00
1305/05/2023ParkerSecnodary31.17
14
Sheet1
Cell Formulas
RangeFormula
C2:C3C2=XLOOKUP(1,(Table2[Last Name2]=[@[Last Name]])*(Table2[Date2]=[@Date])*(Table2[Amount2]=[@Amount]),Table2[Category2])
 

Excel Facts

Spell Check in Excel
Press F7 to start spell check in Excel. Be careful, by default, Excel does not check Capitalized Werds (whoops)

Forum statistics

Threads
1,215,375
Messages
6,124,589
Members
449,174
Latest member
chandan4057

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