Use VLOOKUP to find an exact match
=VLOOKUP(G1,A2:D9,3,FALSE)Excel · result on the sample sheet: $449.00
Describe what you need and get a working VLOOKUP formula for Excel and Google Sheets, tested on real data before you copy it. VLOOKUP looks for a value in the first column of a table and returns a value from another column in the same row.
Each formula below was calculated on its own sample sheet. Open one to see the sheet, why it works, and to try it yourself.
=VLOOKUP(G1,A2:D9,3,FALSE)Excel · result on the sample sheet: $449.00
=VLOOKUP(A2,$E$2:$F$8,2,FALSE)Excel · result on the sample sheet: 6 rows (B2:B7)
=VLOOKUP(A2,$D$2:$E$6,2,FALSE)Excel · result on the sample sheet: 6 rows (B2:B7)
=VLOOKUP(B2,$E$2:$F$4,2,FALSE)Excel · result on the sample sheet: 6 rows (C2:C7)
=XLOOKUP(G1,A:A,C:C)Excel · result on the sample sheet: $45.00
=SUMIF(A2:A9,F1,C2:C9)Excel · result on the sample sheet: $2,740
=B2*XLOOKUP(B2,$E$2:$E$5,$F$2:$F$5,,-1)Excel · result on the sample sheet: 5 rows (C2:C6)
=IF(VLOOKUP(B2,$F$2:$G$5,2,FALSE)>=C2,"Ship","Backorder")Excel · result on the sample sheet: 5 rows (D2:D6)
You describe the task in plain English, and it writes the formula, using VLOOKUP 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.
VLOOKUP looks for a value in the first column of a table and returns a value from another column in the same row.
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 VLOOKUP function page has a practice exercise.