# VLOOKUP formula generator

> Describe what you need and get a VLOOKUP formula for Excel and Google Sheets, run on real data before you copy it. Plus 8 tested VLOOKUP examples.

Source: https://spreadsheetpractice.com/tools/formula-generator/vlookup · Updated October 29, 2026 · Formulas and results on this page were run by the Spreadsheet Practice formula engine on November 20, 2026

VLOOKUP looks for a value in the first column of a table and returns a value from another column in the same row.

Describe the task at [VLOOKUP formula generator](https://spreadsheetpractice.com/tools/formula-generator/vlookup) and get a VLOOKUP formula for Excel and Google Sheets, tested on real data.

## Tested VLOOKUP examples

### Use VLOOKUP to find an exact match

`=VLOOKUP(G1,A2:D9,3,FALSE)`

Excel. Result on the sample sheet: $449.00. [See it and try it](https://spreadsheetpractice.com/formulas/vlookup-exact-match)

### Why VLOOKUP returns #N/A when copied down

`=VLOOKUP(A2,$E$2:$F$8,2,FALSE)`

Excel. Result on the sample sheet: 6 rows (B2:B7). [See it and try it](https://spreadsheetpractice.com/formulas/vlookup-na-when-copied-down)

### Fix VLOOKUP #N/A errors after filling the formula down

`=VLOOKUP(A2,$D$2:$E$6,2,FALSE)`

Excel. Result on the sample sheet: 6 rows (B2:B7). [See it and try it](https://spreadsheetpractice.com/formulas/vlookup-na-after-filling-down)

### Why does VLOOKUP return #SPILL! in Excel 365

`=VLOOKUP(B2,$E$2:$F$4,2,FALSE)`

Excel. Result on the sample sheet: 6 rows (C2:C7). [See it and try it](https://spreadsheetpractice.com/formulas/vlookup-returns-spill-error)

### Why doesn't VLOOKUP find rows added to the bottom of the table

`=XLOOKUP(G1,A:A,C:C)`

Excel. Result on the sample sheet: $45.00. [See it and try it](https://spreadsheetpractice.com/formulas/vlookup-does-not-find-new-rows)

### Look up a value and sum all matches

`=SUMIF(A2:A9,F1,C2:C9)`

Excel. Result on the sample sheet: $2,740. [See it and try it](https://spreadsheetpractice.com/formulas/look-up-and-sum-all-matches)

### Calculate commission with tiered percentage rates

`=B2*XLOOKUP(B2,$E$2:$E$5,$F$2:$F$5,,-1)`

Excel. Result on the sample sheet: 5 rows (C2:C6). [See it and try it](https://spreadsheetpractice.com/formulas/tiered-commission)

### Use IF with VLOOKUP

`=IF(VLOOKUP(B2,$F$2:$G$5,2,FALSE)>=C2,"Ship","Backorder")`

Excel. Result on the sample sheet: 5 rows (D2:D6). [See it and try it](https://spreadsheetpractice.com/formulas/if-with-vlookup)

## Questions

### What does the VLOOKUP formula generator do?

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.

### What does VLOOKUP do?

VLOOKUP looks for a value in the first column of a table and returns a value from another column in the same row.

### Can I learn to write VLOOKUP formulas myself?

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.

---

Spreadsheet Practice (https://spreadsheetpractice.com) teaches spreadsheet formulas by practice: every exercise is graded in a live grid and re-checked on changed data.
