Google Sheets VLOOKUP function
Searches down the first column of a range for a key and returns a value from another column in the same row.
Syntax
=VLOOKUP(search_key, range, index, [is_sorted])
search_key | The value to look for in the first column. |
|---|---|
range | The table to search. The key must be in its first column. |
index | The column number (within range) to return, where 1 is the first column. |
is_sorted | Optional. Use FALSE for an exact match. TRUE (the default) finds the closest match in a sorted list. |
Try it
Edit the formula and the result updates instantly. Click a cell to add its reference.
Price list
Result: 15
| A | B | C | D | E | |
|---|---|---|---|---|---|
| 1 | SKU | Item | Price | Find SKU | |
| 2 | P-100 | Pens | 2 | P-300 | |
| 3 | P-200 | Paper | 5 | ||
| 4 | P-300 | Ink | 15 | ||
| 5 | P-400 | Stapler | 12 | ||
| 6 | P-500 | Tape | 3 |
Examples
These use the sample sheet above.
→ 15
Look up the price of the SKU typed in E2.
→ Paper
Return the item name (column 2) for P-200.
→ No such SKU
Handle missing keys gracefully.
Tips & common mistakes
- Almost always use FALSE as the last argument. Leaving it out means "sorted, closest match" and can silently return the wrong row.
- VLOOKUP can only look to the right of the key column. To look left, use INDEX and MATCH.
- Lock the table with $ signs ($A$2:$C$6) before filling the formula down.