
The VLOOKUP function in Google Sheets searches the first column of a range for a value and returns a value from another column in the same row. It is the classic way to pull a price, a name or a status from a lookup table. This guide shows VLOOKUP examples with made-up data: an exact match, a lookup from another sheet, an approximate match for tiers, a lookup with a wildcard and how to avoid the common errors.
VLOOKUP syntax
=VLOOKUP(search_key, range, index, [is_sorted])
- search_key is the value you look for.
- range is the table. The search key must be in its first column.
- index is the column number in the range that holds the answer, counting from 1.
- is_sorted is TRUE or FALSE. Use FALSE for an exact match.

Exact match example
Suppose A2:C6 holds a product code, a name and a price. To get the price of the code in F1:
=VLOOKUP(F1, A2:C6, 3, FALSE)
The 3 means the third column of the range, which is the price. FALSE asks for an exact match. If you leave the last argument out, Sheets assumes TRUE and may return a wrong row when the list is not sorted.
Lock the range with dollar signs
When you copy the formula down, the range should not move. Anchor it:
=VLOOKUP(F2, $A$2:$C$6, 3, FALSE)

VLOOKUP from another sheet
Put the sheet name before the range. For a table on a sheet called Prices:
=VLOOKUP(F2, Prices!$A$2:$C$100, 3, FALSE)
If the sheet name has a space, wrap it in single quotes, like 'Price List'!$A$2:$C$100. To look up from a different spreadsheet file, wrap the range in IMPORTRANGE. Our guide to IMPORTRANGE in Google Sheets shows how.

Approximate match for tiers
With TRUE as the last argument, VLOOKUP returns the row with the largest value that is less than or equal to the search key. The first column must be sorted from small to large. A discount table with minimum orders 0, 100 and 500 in column A and discounts in column B:
=VLOOKUP(F1, A2:B4, 2, TRUE)
An order of 250 returns the discount for 100.
Use a wildcard
With an exact match you can use an asterisk for any characters. To find a product that starts with "Desk":
=VLOOKUP("Desk*", B2:C6, 2, FALSE)

Show a message instead of #N/A
Wrap the formula in IFERROR:
=IFERROR(VLOOKUP(F1, A2:C6, 3, FALSE), "Not found")
This hides every error, so use it only after you know why the lookup can fail. If you see #N/A and do not know why, read how to fix VLOOKUP #N/A.
Look up several rows at once
Wrap VLOOKUP in ARRAYFORMULA to fill a whole column with one formula:
=ARRAYFORMULA(VLOOKUP(E2:E6, A2:C6, 3, FALSE))
The same idea is covered in ARRAYFORMULA examples for Google Sheets.
When VLOOKUP is not enough
VLOOKUP cannot look to the left of the search column. In that case use INDEX and MATCH, or XLOOKUP, which Google Sheets also has. See XLOOKUP vs VLOOKUP for a comparison.
Common VLOOKUP mistakes
- Wrong column number. Count from the first column of the range, not from column A of the sheet.
- Search key not in the first column. Rearrange the table or use INDEX and MATCH.
- Extra spaces. "P3 " does not match "P3". Use TRIM on the key.
- Number versus text. The number 3 and the text "3" are different values.
- Sorted list with TRUE. An approximate match on unsorted data gives wrong answers.
Questions and answers
Is VLOOKUP case sensitive in Google Sheets?
No. "abc" and "ABC" match.
Can VLOOKUP return more than one column?
A single VLOOKUP returns one value. For several columns use an array of column numbers inside ARRAYFORMULA, or use XLOOKUP, which can return a range.
Can VLOOKUP return all matches?
No, only the first one. To get all rows that match, use the FILTER function.
Summary
Type the key, the range, the column number and FALSE. Lock the range with dollar signs, trim your keys and switch to INDEX MATCH or XLOOKUP when you need to look left.
