Look up a value to the left
=XLOOKUP(G1,D2:D7,A2:A7)Excel · result on the sample sheet: E-2203
Describe what you need and get a working XLOOKUP formula for Excel and Google Sheets, tested on real data before you copy it. XLOOKUP searches one column or row for a value and returns the matching item from another.
Each formula below was calculated on its own sample sheet. Open one to see the sheet, why it works, and to try it yourself.
=XLOOKUP(G1,D2:D7,A2:A7)Excel · result on the sample sheet: E-2203
=XLOOKUP(E1,A2:A6,B2:B6,,-1)Excel · result on the sample sheet: 6%
=XLOOKUP(F1,B2:B8,A2:A8,,0,-1)Excel · result on the sample sheet: 6/6/2026
=XLOOKUP(B2,$E$2:$E$6,$F$2:$F$6,"Standard")Excel · result on the sample sheet: 8 rows (C2:C9)
=XLOOKUP(G1,A:A,C:C)Excel · result on the sample sheet: $45.00
=B2*XLOOKUP(B2,$E$2:$E$5,$F$2:$F$5,,-1)Excel · result on the sample sheet: 5 rows (C2:C6)
=XLOOKUP(1,(A2:A9=F1)*(B2:B9=MAXIFS(B2:B9,A2:A9,F1)),C2:C9)Excel · result on the sample sheet: $1,460
=XLOOKUP(G1,A2:A9,C2:C9)Excel · result on the sample sheet: $129.00
You describe the task in plain English, and it writes the formula, using XLOOKUP where that's the right tool, for your table or a sample one. The formula is run in our engine in Excel and Google Sheets mode before you see it, so you get its result, not just a guess.
XLOOKUP searches one column or row for a value and returns the matching item from another.
Yes. Each example below opens a page where you try the formula in a live grid and it's checked as you go, and the XLOOKUP function page has a practice exercise.