How to Use VLOOKUP in Google Sheets
In Google Sheets, VLOOKUP searches down the first column of a range and returns a value from another column in the same row. The syntax is =VLOOKUP(search_key, range, index, FALSE). Here is how each part works, with examples.
VLOOKUP in Google Sheets does the same job as in Excel: it matches a value in one table to data in another — like pulling a price from a product list. The syntax is nearly identical, with one small naming difference.
The syntax
=VLOOKUP(search_key, range, index, is_sorted)
| Part | Meaning |
|---|---|
| search_key | The value you are looking for |
| range | The table to search; the key must be in its first column |
| index | Which column number to return the result from |
| is_sorted | FALSE (or 0) for an exact match; TRUE for approximate |
An example
If product codes are in column A and prices in column B (A2:B100), and the code you want is in D2:
=VLOOKUP(D2, A2:B100, 2, FALSE)
The final FALSE forces an exact match — leave it off and Sheets does an approximate match that returns wrong results on unsorted data. Almost always use FALSE.
Common errors and the modern alternative
An #N/A means the key was not found (check for extra spaces or a number stored as text). A #REF! usually means the index is bigger than the range has columns. Google Sheets also has XLOOKUP, which can look left, matches exactly by default, and does not break when you insert columns.
Know Excel already? Compare with VLOOKUP in Excel. Deciding between the two apps? Read our Excel vs Google Sheets comparison.
Frequently asked questions
Why does my Google Sheets VLOOKUP return #N/A?
The search key was not found in the first column of the range. The usual causes are extra spaces (fix with TRIM), a number stored as text, or the value simply not being present.
Is VLOOKUP or XLOOKUP better in Google Sheets?
XLOOKUP is more flexible — it can return columns to the left, matches exactly by default, and survives inserted columns. VLOOKUP is still widely used and fine for simple left-to-right lookups.