To use VLOOKUP in Google Sheets, type =VLOOKUP(search_key, range, index, FALSE) in a cell: Sheets finds the search key in the first column of the range and returns the value from the column number you give.
This guide walks through a worked example, then covers lookups across tabs and files, exact versus approximate matches, wildcards, multiple criteria, XLOOKUP and every VLOOKUP error message.

Step by step tutorial on how to use VLOOKUP in Google Sheets
The steps use a small price list in A1:C6 with the headers Item, Price and Stock, and the rows Apple, Banana, Orange, Pear and Grape. The goal is to return the price of the item typed in E2. If you have not set up a Google Sheets spreadsheet before, type these rows into a blank sheet first.
- Click the cell where the result should appear, for example F2.
- Type
=VLOOKUP(to start the formula. A help box opens with the syntax and an example. - Enter the search key: click E2 (which holds
Orange) or type"Orange"in quotes, then type a comma. - Select the range to search,
A2:C6. The search key must sit in the first column of this range, so the range starts at column A. - Type the column index number:
2returns the second column of the range, Price. - Type
FALSEfor an exact match, close the bracket and press Enter. The full formula is=VLOOKUP(E2, A2:C6, 2, FALSE). - Read the result in F2: the price listed for Orange. Change E2 to
Pearand the result updates.
Always type FALSE unless you deliberately want an approximate match. Leaving the last argument out makes VLOOKUP use TRUE, which needs a sorted first column.
VLOOKUP formula syntax in Google Sheets
VLOOKUP takes four inputs, and the first three are required, in the same order as VLOOKUP in Excel. The function returns the first matching value it finds.
| Input | What it means | Example | Rules |
|---|---|---|---|
| search_key | The value to find | E2 or "Orange" |
Must appear in the first column of the range; wrap text in quotes |
| range | The block of cells to search | A2:C6 or a named range |
Search runs down the first column only |
| index | Which column of the range to return | 2 |
A positive whole number, counted from 1 inside the range, never above the column count |
| is_sorted | Exact or approximate match | FALSE |
Optional; FALSE = exact (recommended), TRUE = approximate and is the default when omitted |
VLOOKUP exact match vs approximate match in Google Sheets
| Your data | Last argument | What VLOOKUP returns |
|---|---|---|
| IDs, names, product codes | FALSE |
Only an exact match, or #N/A when the key is missing |
| Wildcard or partial search | FALSE |
The first value matching the pattern; wildcards work only with an exact match |
| Bands such as tax brackets or grade scores, sorted ascending | TRUE |
The nearest match that is less than or equal to the search key |
Unsorted data with TRUE or a blank last argument |
Change it to FALSE |
Otherwise VLOOKUP can return a wrong value without any error |

How to use VLOOKUP formula in 2 Google Sheets
When the lookup table sits on another tab of the same spreadsheet, put the tab name and an exclamation point in front of the range.
- Click the result cell on the sheet where you want the answer.
- Type
=VLOOKUP(A2,with the search key cell from the current sheet. - Click the tab that holds the table and drag across the range; Sheets writes it as
Products!A2:C6. - Finish the formula with the column number and
FALSE:=VLOOKUP(A2, Products!A2:C6, 2, FALSE). - If the tab name contains spaces or symbols, wrap it in single quotes, as in
'Price list'!A2:C6. - Press Enter and drag the formula down to fill the rest of the column.
Before you drag the formula, lock the range with dollar signs, for example Products!$A$2:$C$6, so it does not shift row by row.
How to VLOOKUP from another Google Sheets file with IMPORTRANGE
A plain sheet reference only works inside one spreadsheet. To look up data in a different file, wrap the range in IMPORTRANGE.
- Open the source spreadsheet and copy its URL from the address bar.
- In the destination spreadsheet, click the result cell.
- Type
=VLOOKUP(A2, IMPORTRANGE("and paste the URL, then close the quotes. - Add the range string in quotes, including the tab name:
, "Products!A2:C6"). - Finish with the column number and
FALSE:=VLOOKUP(A2, IMPORTRANGE("https://docs.google.com/spreadsheets/d/...", "Products!A2:C6"), 2, FALSE). - Press Enter. If the tab name is left out of the range string, IMPORTRANGE reads from the first sheet of the source file.

How to use VLOOKUP with wildcards for partial matches in Google Sheets
- Decide on the pattern:
?matches any single character and*matches any run of characters. - Type the pattern as the search key, for example
"St*"to match Steve, Stock or anything starting with St. - Set the last argument to
FALSE; wildcards do not work with an approximate match. - Enter the formula, for example
=VLOOKUP("St*", B4:D8, 3, FALSE)to return the department of the first staff name starting with St. - To build the pattern from a cell, join it with an ampersand:
=VLOOKUP(E2&"*", A2:C6, 2, FALSE).
VLOOKUP returns only the first row that matches the pattern, so make the pattern specific enough to hit one row.

VLOOKUP with multiple criteria in Google Sheets
VLOOKUP cannot test two conditions directly. A helper column that joins the criteria into one key solves it.
- Insert a new column to the left of the table so it becomes the first column of the range.
- In the first data row of the helper column, join the criteria columns, for example
=C4&D4to combine first and last name. - Drag the helper formula down to the last row of the table.
- Use the joined value as the search key, for example
JohnLeeor a cell such asB7. - Point VLOOKUP at a range that starts with the helper column:
=VLOOKUP(B7, B4:E8, 4, FALSE).

How to replace #N/A in VLOOKUP with IFNA in Google Sheets
VLOOKUP returns #N/A when the search key is not in the first column. IFNA swaps that error for text you choose.
=IFNA(VLOOKUP(G3, B4:D8, 3, FALSE), "NOT FOUND")
VLOOKUP searches B4:D8 for the value in G3 and returns column 3. If the value is missing, IFNA shows NOT FOUND instead of #N/A. Use IFERROR instead of IFNA to replace other errors such as #REF! as well.
You should see: The cell shows the looked-up value, or NOT FOUND when the key does not exist.

VLOOKUP vs XLOOKUP in Google Sheets
Google Sheets also has XLOOKUP and HLOOKUP. XLOOKUP looks up in one column and returns from another, so the return column can sit to the left.
| Function | Example | Use it when |
|---|---|---|
| VLOOKUP | =VLOOKUP("Apple", A2:E, 5, FALSE) |
The key is in the first column and the answer is to its right |
| XLOOKUP | =XLOOKUP("Apple", A2:A, E2:E) |
You want exact match by default, a built-in not-found value, or a return column on the left |
| XLOOKUP, return column on the left | =XLOOKUP("Apple", E2:E7, A2:A7) |
The key is in column E and the answer is in column A |
| VLOOKUP with an array, left lookup | =VLOOKUP("Apple", {E2:E7, A2:A7}, 2, FALSE) |
You must stay with VLOOKUP but the answer is left of the key |
| HLOOKUP | =HLOOKUP(10003, A2:Z6, 2, FALSE) |
The keys run across the first row instead of down the first column |
Tips for using VLOOKUP in Google Sheets
| Tip | Why it matters |
|---|---|
Lock the range with dollar signs, such as $B$3:$D$7 |
The range stays put when you copy or drag the formula |
Type FALSE as the last argument |
Prevents wrong answers from unsorted data, since TRUE is the default |
Sort the first column ascending before using TRUE |
Approximate match assumes sorted data |
| Trim spaces with Data > Data cleanup > Trim whitespace | A trailing space makes two identical-looking values different |
| Store numbers and dates as numbers, via Format > Number | A number stored as text does not match the same number |
| Watch for duplicate keys | VLOOKUP returns only the first match it finds |
| Use a named range for big tables | The formula reads clearly and is easier to update |
How to test a VLOOKUP formula in Google Sheets
- Pick a search key you can find by eye in the table, such as
Banana. - Find that row in the table and note the value in the column your index points to.
- Compare it with the VLOOKUP result; they should match exactly.
- Type a key that does not exist, such as
Pencil, and confirm the formula returns #N/A or your IFNA text. - Drag the formula down a few rows and spot-check that the range reference did not move.
VLOOKUP not working in Google Sheets
VLOOKUP returns #N/A
With an exact match the key is not in the first column; with an approximate match the key is smaller than the smallest value in that column.
- Check the search key exists in the first column of the range, not a later column.
- Remove stray spaces with Data > Data cleanup > Trim whitespace.
- Wrap the formula in
IFNA()if a missing key is expected.
VLOOKUP returns #REF!
The index number is larger than the number of columns in the range.
- Count the columns inside the selected range only, starting at 1.
- Lower the index, or widen the range to include the column you need.
VLOOKUP returns #VALUE!
The index is below 1, above the column count, or written as text such as a column name.
- Replace the index with a plain number.
- Keep it between 1 and the number of columns in the range.
VLOOKUP returns #NAME?
A text search key is missing its quotation marks.
- Put the text in double quotes, for example
"Orange". - Check the function name is spelled
VLOOKUP.
VLOOKUP returns the wrong value
The last argument is TRUE or blank on unsorted data, the key appears more than once, or spaces make values differ.
- Set the last argument to
FALSE. - Remove duplicate keys or accept that only the first match is returned.
- Trim whitespace in the first column and convert text-formatted numbers with Format > Number.
Frequently asked questions about VLOOKUP in Google Sheets
Can you use VLOOKUP in Google Sheets?
Yes. VLOOKUP is a built-in Google Sheets function with the syntax =VLOOKUP(search_key, range, index, [is_sorted]). Type it in any cell, and Sheets shows a help box with the inputs and an example as you type.
How do you use VLOOKUP in a Google spreadsheet?
Click a cell, type =VLOOKUP(, then give the value to find, the range whose first column holds that value, the column number to return and FALSE. For example, =VLOOKUP(E2, A2:C6, 2, FALSE) returns the second column for the item in E2.
How do you use the VLOOKUP formula across 2 Google Sheets?
For another tab in the same file, put the tab name and an exclamation point before the range, such as Products!A2:C6, with single quotes if the name has spaces. For a separate file, wrap the range in IMPORTRANGE with the file's URL.
What does the #N/A error mean in VLOOKUP?
#N/A means VLOOKUP could not find the search key. With an exact match the value is not in the first column of the range; with an approximate match the key is smaller than every value there. Use IFNA to show your own text instead.
Can VLOOKUP search for partial matches?
Yes, with wildcards and an exact match. A question mark matches one character and an asterisk matches any sequence, so =VLOOKUP("St*", B4:D8, 3, FALSE) returns the first row starting with St. Wildcards do not work when the last argument is TRUE.
Can I use VLOOKUP to search horizontally?
No. VLOOKUP searches down the first column only. Use HLOOKUP to search across the first row of a range, or XLOOKUP, which accepts either a single row or a single column as its lookup range.
How can I fix a #REF! error in VLOOKUP?
Lower the index number so it is no larger than the number of columns in the range. Count the columns within the selected range only, starting at 1, not the column letters of the whole sheet.
Why use VLOOKUP?
VLOOKUP pulls related data from a table by a known value, such as a price from a product name or a department from an employee ID. It saves copying values by hand and updates the moment the source table changes.
How do I get VLOOKUP to work properly?
Make sure the search key is in the first column of the range, use FALSE for an exact match, lock the range with dollar signs before copying, and clean stray spaces and text-formatted numbers from the first column.
Is VLOOKUP in Google Sheets the same as in Excel?
The function takes the same four inputs in the same order, so a formula such as =VLOOKUP(E2, A2:C6, 2, FALSE) reads the same way in both. The Excel version follows the same pattern.





![How to change keyboard settings Windows 11 [tutorial]](https://techdows.com/wp-content/uploads/2026/11/How-to-change-keyboard-settings-Windows-11-tutorial-1-600x338.jpg)