Smart Systems for Home

Plain how-to guides for smart home, security and home Wi-Fi

Google Sheets VLOOKUP Exact Match: How to Use It

· 6 min read · Home Tech

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

To do an exact-match VLOOKUP in Google Sheets, use the formula =VLOOKUP(search_key, range, index, FALSE). The fourth argument, FALSE (or 0), tells Sheets to find only an exact match. If no exact match exists, the formula returns #N/A. This guide walks you through the exact steps, common pitfalls, and fixes so you can pull data reliably.

What You'll Need

  • A Google account and access to Google Sheets (desktop browser or mobile app).
  • A spreadsheet with at least two columns: one containing the value you want to look up (the search key), and another containing the data you want to retrieve.
  • Basic familiarity with cell references (e.g., A2, B2:C10).

Note: Menu labels and formula behavior can differ slightly between the desktop web version and the mobile app, and across regions. The steps below apply to the desktop web version; mobile steps are noted where they differ.

Step-by-Step

  1. Open your spreadsheet in Google Sheets. Make sure the data you want to search is in a clear table. For example, column A holds product IDs, column B holds product names, and column C holds prices.
  2. Click the cell where you want the result (e.g., D2). This is where the VLOOKUP formula will go.
  3. Type the formula starting with =VLOOKUP(. You can also type =VLOOKUP and select the function from the autocomplete list.
  4. Enter the search key — the value you want to find. This can be a cell reference (e.g., A2) or a literal value in quotes (e.g., "P-100"). For exact match, the key must match exactly, including case and spaces.
  5. Type a comma and then select the range that contains both the search column and the return column. The search key must be in the first column of this range. For example, if your search key is in column A and you want to return a value from column C, select A2:C100. You can type the range or drag to select it.
  6. Type a comma and then enter the column index number — the position of the column you want to return, counting from the first column of your range. In the range A2:C100, column A is 1, B is 2, C is 3. So to return the price from column C, type 3.
  7. Type a comma and then enter FALSE (or 0) for an exact match. Do not use TRUE or 1, as that performs an approximate match and can return wrong results if the data isn't sorted.
  8. Close the parenthesis and press Enter. The formula should look like =VLOOKUP(A2, A2:C100, 3, FALSE). The cell will display the matching value or #N/A if no exact match is found.
  9. Copy the formula down to other rows by dragging the fill handle (the small square at the bottom-right of the cell) or by copying and pasting. Relative references will adjust automatically.
  10. Verify results by checking a few known matches. If you see unexpected errors, proceed to the troubleshooting section.

On the mobile app, the steps are similar: tap the cell, tap the formula bar, and type the formula. You can also use the function list (the fx icon) to insert VLOOKUP and fill in the arguments.

Common Mistakes

  • Using TRUE or omitting the fourth argument. VLOOKUP defaults to approximate match (TRUE) if the fourth argument is left out. Always include FALSE or 0 for exact match.
  • Search key not in the first column of the range. VLOOKUP only searches the leftmost column of the specified range. If your key is in column B, your range must start with column B.
  • Incorrect column index. The index counts from the first column of the range, not from column A of the sheet. If your range is B2:D100, column B is 1, C is 2, D is 3.
  • Extra spaces or inconsistent formatting. A trailing space in either the search key or the source data will cause #N/A. Use TRIM or clean your data.
  • Case sensitivity. VLOOKUP is not case-sensitive by default, but exact match still requires the same characters. "Apple" and "apple" will match, but "Apple " (with space) will not.
  • Range not locked. When copying the formula, if the range isn't absolute (e.g., $A$2:$C$100), it may shift and return wrong results. Use dollar signs to lock the range.

Tips

  • Use IFERROR to handle #N/A gracefully: =IFERROR(VLOOKUP(A2, $A$2:$C$100, 3, FALSE), "Not found").
  • For large datasets, consider using INDEX/MATCH or XLOOKUP (if available) for more flexibility and better performance.
  • Keep your data clean: remove leading/trailing spaces and ensure consistent data types (e.g., all text or all numbers).
  • Use named ranges to make formulas easier to read and maintain.
  • Test with a few known values before applying to the entire column.

Troubleshooting

If your VLOOKUP returns #N/A, check these in order:

  1. Confirm the search key exists exactly in the first column of your range. Use Ctrl+F (or Find) to search for the value. Look for extra spaces, different capitalization, or hidden characters.
  2. Check the range — ensure it includes the column with the search key as the first column and the return column is within the range.
  3. Verify the column index — count again from the first column of the range.
  4. Ensure the fourth argument is FALSE — not TRUE or omitted.
  5. Look for data type mismatches — numbers stored as text won't match numbers. Use VALUE() or format cells consistently.
  6. Check for merged cells — they can disrupt ranges. Unmerge if necessary.

If you see #REF!, the column index is larger than the number of columns in the range. If you see #VALUE!, the column index is not a number. Adjust accordingly.

If the formula works for some rows but not others, copy the formula down carefully and check that relative references are correct. Lock the range with absolute references if needed.

Frequently Asked Questions

What does the fourth argument in VLOOKUP do?

It controls match type: FALSE (or 0) for exact match, TRUE (or 1) for approximate match. For exact match, always use FALSE.

Can VLOOKUP return multiple columns?

No, VLOOKUP returns a single value from one column. To return multiple columns, use multiple VLOOKUP formulas or consider INDEX/MATCH or XLOOKUP.

Why does my VLOOKUP return #N/A when the value clearly exists?

Common causes: extra spaces, data type mismatch (text vs. number), the search key not being in the first column of the range, or the range not being locked when copied.

Is VLOOKUP case-sensitive?

No, VLOOKUP is not case-sensitive. "Apple" and "apple" are treated as the same. If you need case-sensitive lookup, use INDEX/MATCH with EXACT.

Can I use VLOOKUP with wildcards?

Yes, if you set the fourth argument to FALSE, you can use wildcards like * and ? in the search key. For example, "P-*" matches any value starting with "P-".

What's the difference between VLOOKUP and XLOOKUP?

XLOOKUP is newer and more flexible: it can search any column and return any column, handles exact match by default, and doesn't require the search key to be in the first column. VLOOKUP is still widely used and works in all versions of Google Sheets.