VLOOKUP in Google Sheets finds a value in the first column of a range and returns a matching value from another column in the same row. To use it, type =VLOOKUP(search_key, range, index, [is_sorted]) into a cell, press Enter, and adjust the four arguments to match your data. The formula is exact-match by default when you set the last argument to FALSE, which is what most people need for lookups like finding a price by product name.
What You'll Need
- A Google account and access to Google Sheets (sheets.google.com).
- A spreadsheet with at least two columns: one to search in (the key column) and one to return a value from.
- Basic familiarity with typing formulas that start with an equals sign.
Step-by-Step
- Open your spreadsheet. Go to sheets.google.com, sign in, and open the file that contains your data. If you are starting fresh, create a blank spreadsheet and paste in your data so column A holds the values you will search for.
- Identify the key column and the return column. VLOOKUP always searches the leftmost column of the range you give it. Decide which column contains the value you will type (for example, product names in column A) and which column holds the answer you want back (for example, prices in column C). The return column must be to the right of the key column.
- Click the cell where you want the result. This is where the looked-up value will appear. It can be on the same sheet or a different one.
- Type the formula. Start with
=VLOOKUP(and then fill in the four parts separated by commas:- search_key – the value you are looking for. This can be a cell reference like
A2or a literal value in quotes like"Widget". - range – the block of cells to search. Include the key column and the return column, for example
A2:C100. If the data is on another sheet, useSheet2!A2:C100. - index – the column number within the range that holds the answer. If the range starts at column A and the answer is in column C, the index is 3.
- is_sorted – use
FALSEfor an exact match. UseTRUEonly when the first column is sorted and you want an approximate match (rare for most lookups).
- search_key – the value you are looking for. This can be a cell reference like
- Close the parenthesis and press Enter. A complete example:
=VLOOKUP(A2, A2:C100, 3, FALSE). This looks for the value in A2 within the first column of A2:C100 and returns the value from the third column of that range. - Copy the formula down. Drag the fill handle (the small square at the bottom-right of the cell) down the column to apply the same lookup to other rows. If you need the range to stay fixed, use absolute references with dollar signs, for example
$A$2:$C$100. - Check the result. If you see
#N/A, the search key was not found in the first column. If you see#REF!, the index number is larger than the number of columns in your range. Adjust and retry.
Common Mistakes
- Searching the wrong column. VLOOKUP only looks in the first column of the range you specify. If your key is in column B, your range must start at column B, not A.
- Forgetting FALSE for exact match. Omitting the fourth argument or using TRUE can return wrong matches when the data is not sorted. Always use FALSE unless you specifically need an approximate match.
- Hardcoding the range without absolute references. When you copy the formula down, a relative range like
A2:C100shifts and may miss rows. Use$A$2:$C$100to lock it. - Mismatched data types. If the key column contains numbers stored as text (often from imports), VLOOKUP may not match a numeric search key. Check with
ISTEXTor reformat the column. - Extra spaces. Trailing spaces in either the search key or the source data cause
#N/A. UseTRIMon the key or clean the source data.
Tips
- Use
IFERRORto replace#N/Awith a friendly message:=IFERROR(VLOOKUP(A2, $A$2:$C$100, 3, FALSE), "Not found"). - For lookups to the left (where the return column is before the key column), use
INDEXandMATCHinstead, orXLOOKUPif your sheet supports it. - Name your range (Data > Named ranges) to make formulas easier to read and maintain.
- Keep the key column free of duplicates; VLOOKUP returns the first match it finds.
- Test with a known value first to confirm the formula works before filling it down.
Troubleshooting
If VLOOKUP returns #N/A, first confirm the search key exists exactly in the first column of your range—watch for extra spaces, different capitalization (VLOOKUP is not case-sensitive, so that is rarely the issue), or numbers stored as text. Use =TRIM(A2) to clean the key and compare with =EXACT(A2, B2) if needed. If you see #REF!, your index number exceeds the column count in the range; count the columns from the range start. If the formula returns the wrong value, check that the range starts at the correct key column and that the index points to the right column. If copying the formula produces shifting errors, switch to absolute references. For persistent issues, retype the formula rather than copying from another cell, and verify the sheet name in cross-sheet references (use single quotes around names with spaces, e.g., 'Sales Data'!A2:C100).
Frequently Asked Questions
Can VLOOKUP look to the left?
No. VLOOKUP only searches the first column of the range and returns values from columns to its right. Use INDEX and MATCH or XLOOKUP for leftward lookups.
What does the fourth argument do?
It controls match type. FALSE (or 0) means exact match; TRUE (or 1) means approximate match and requires the first column to be sorted ascending. Most users should use FALSE.
Why does VLOOKUP return #N/A when the value is clearly there?
Common causes are trailing spaces, numbers formatted as text, or the value being outside the specified range. Clean the data with TRIM and confirm the range covers the row.
Can I use VLOOKUP across different sheets?
Yes. Include the sheet name in the range, for example =VLOOKUP(A2, Sheet2!$A$2:$C$100, 3, FALSE). If the sheet name contains spaces, wrap it in single quotes.
Does VLOOKUP work with wildcards?
Yes, when the fourth argument is FALSE, you can use * and ? in the search key. For example, "Widget*" matches any value starting with "Widget".
What is the difference between VLOOKUP and XLOOKUP?
XLOOKUP is newer and more flexible: it can search any column and return values from either side, and it defaults to exact match. VLOOKUP remains widely used and works in all current versions of Google Sheets.