How to use VLOOKUP in Google Sheets

Updated · DeskHowTo

The Google Sheets function is =VLOOKUP(search_key, range, index, [is_sorted]). It looks for search_key in the first column of range and returns a value from column number index (the first column of the range is 1).

For almost every lookup of a name, ID, or product, set the last argument to FALSE (exact match). Google’s documentation recommends FALSE and says TRUE, or leaving is_sorted out, is an approximate match that expects the first column to be sorted ascending — otherwise you can get the wrong value.

Example: =VLOOKUP("Orange", B4:D8, 3, FALSE) returns the value in the third column of B4:D8 for the row where column B is Orange.

Jump to

This page follows Google’s VLOOKUP function article for Sheets. The XLOOKUP mention on that official page is a BigQuery tip and is not used as Sheets documentation here.

Write a VLOOKUP formula

Build an exact-match VLOOKUP

  1. Put the lookup table in a block where the value you search for (SKU, email, name) is in the leftmost column of that block. VLOOKUP cannot look to the left of that first column.
  2. Click the cell where the result should appear.
  3. Type =VLOOKUP(, then click the cell that holds the search key (or type the key in quotes, such as "Orange").
  4. Type a comma, then select the table range, including the search column and the column you want returned — for example B4:D8 or B4:D100. If the table is on another sheet, include the sheet name, such as Products!A2:D200.
  5. Type a comma, then the index: a positive integer for which column of that range to return. If the range starts in column B and you want column D, the index is 3.
  6. Type a comma and FALSE for an exact match, close the parenthesis, and press Enter. Example: =VLOOKUP(A2, Products!A2:D200, 4, FALSE).
  7. Copy the formula down the column. Keep the table range locked with $ if you need it to stay put, for example =VLOOKUP(A2, $B$4:$D$100, 3, FALSE).

Handle missing values with IFNA

  1. If the search key is not found, VLOOKUP returns #N/A. That is expected for a missing exact match.
  2. Google’s article points you to IFNA when you want to replace #N/A with a friendlier result, for example =IFNA(VLOOKUP(A2, $B$4:$D$100, 3, FALSE), "Not found").
  3. Do not wrap every unexpected error the same way without checking: #VALUE! or a wrong number usually means the index or range is wrong, not that the key is missing.

Use wildcards only with exact match

  1. Google documents two wildcards, and only when is_sorted is FALSE: ? matches any one character, and * matches any sequence of characters.
  2. Example from the official idea of a prefix match: =VLOOKUP("St*", B4:D8, 3, FALSE) can return the row whose first column starts with St.
  3. Be careful with * on a column of similar names — the function returns the first match it finds. Prefer a full unique key (an ID) over a wildcard when you need a specific row.

When approximate match (TRUE) is appropriate

  1. Leave the last argument as TRUE or omit it only when you intentionally want a range lookup (for example, a numeric commission table where the first column holds breakpoints).
  2. Google’s article requires the search column to be sorted ascending first. If it is not sorted, an approximate match can return the wrong value rather than #N/A.
  3. If you are looking up a specific product or ID, use FALSE, not TRUE. Most “my VLOOKUP is wrong” cases on unsorted lists come from the default approximate match.

Arguments at a glance

ArgumentMeaningPractical tip
search_keyThe value to find in the first column of rangeUse a cell reference (A2) so you can fill the formula down
rangeThe table to search, starting with the lookup columnThe return column must be inside this range, to the right of or including the first column
indexWhich column of range to return, starting at 1Count from the first column of the range, not from column A of the sheet unless the range starts in A
is_sortedFALSE = exact match (recommended); TRUE or omitted = approximateSort the first column ascending before using TRUE

Official syntax: =VLOOKUP(search_key, range, index, [is_sorted]).

Common errors and official fixes

  • #N/A. No exact match (or the key is not in the first column of range). Check spelling, extra spaces, and whether a number is stored as text. Use IFNA if you want a label instead of the error.
  • Wrong value, no error. Often is_sorted was TRUE or omitted and the first column is not sorted ascending. Set the last argument to FALSE.
  • #VALUE! or a failed index. The index must be a positive integer no larger than the number of columns in range. If the range is B:D, valid indexes are 1, 2, and 3.
  • The key is in the sheet, but VLOOKUP still misses it. The key has to be in the first column of the range you selected. If the ID is in column C and the name is in column B, either rearrange the table or use a different formula approach; VLOOKUP will not search column C when the range starts at B.
  • Trailing spaces or mixed text/numbers. Trim the source or consistent-format the key column so "00123" and 123 are not treated as different keys.

VLOOKUP vs a left-looking table

VLOOKUP only searches the first column of the range you give it. If you need to return a column to the *left* of the search column, the usual fix is to copy or move the key column to the left of the values, or to use a different lookup pattern. This guide does not invent a second function’s official Sheets syntax. For Excel’s XLOOKUP, see the related Excel page on this site; do not assume every Excel example pastes unchanged into Sheets.

Frequently asked questions

Should I use TRUE or FALSE in Google Sheets VLOOKUP?

Use FALSE for an exact match, which Google recommends, whenever you are looking up a specific name, ID, or label. TRUE (the default if you omit the argument) is an approximate match and requires the first column of the range to be sorted in ascending order. If that column is unsorted, Google warns that you may get the wrong return value.

Why does my VLOOKUP return #N/A?

Exact-match VLOOKUP returns #N/A when the search key is not found in the first column of the range. Check for extra spaces, different text versus number formats, and a range that starts on the wrong column. If the key is genuinely missing and you want a friendlier result, Google’s article points to wrapping the formula in IFNA.

Can VLOOKUP return a value to the left of the search column?

No. The search key has to be in the first column of the range, and index counts columns from left to right inside that range. To return something to the left, change the table layout so the key is on the left, or use a different lookup approach. Expanding the range to the left only works if you also move what you treat as column 1.

Can I use wildcards in VLOOKUP?

Yes, but only with an exact match. Google documents ? for a single character and * for a sequence of characters, and states that you must use is_sorted = FALSE. For example, "St*" can match values that start with St. Prefer a unique ID when you need one specific row.

Does Google’s VLOOKUP article mean I should switch to XLOOKUP in Sheets?

The official VLOOKUP page mentions XLOOKUP only as a tip for more flexible database queries in BigQuery, not as a step-by-step Sheets replacement in that article. This guide therefore does not treat XLOOKUP as documented Sheets syntax from that source. Stay with VLOOKUP(..., FALSE) and IFNA unless you are following a separate official Sheets article for another function.

Sources checked: VLOOKUP (Google Docs Editors Help). Verified December 2026.