FormulaCraft

How to fix VLOOKUP returning #N/A in Excel and Google Sheets

Topic:VLOOKUP
Excel & Google Sheets
=VLOOKUP(D2, A:B, 2, FALSE)

Try it with your data

Edit the grid or formula, then run it through a real spreadsheet engine — no signup.

Sample data — click any cell to edit

Runs server-side · free · no signup

Step by step

  1. 1Make sure the last argument is FALSE (or 0) to force an exact match.
  2. 2Confirm the lookup value actually exists in the first column of the table range.
  3. 3Match the data types — a number stored as text won’t equal a real number. Convert with VALUE() if needed.
  4. 4Strip stray spaces with TRIM on both the lookup value and the source.

Tips

Need it for your exact data?

Describe your columns in plain English and get the precise formula for your sheet, with the right Excel or Sheets syntax.

Frequently asked

Why does VLOOKUP show #N/A when I can clearly see the value?

Usually a hidden formatting difference — text vs number, or trailing spaces. The values look identical but aren’t equal. Use TRIM and make the data types match.

Does the lookup column have to be on the left?

For VLOOKUP, yes — it only searches the first column of the table. To look left, use INDEX/MATCH or XLOOKUP instead.

More on VLOOKUP

See all →

Formulas used

Written and reviewed by FormulaCraft Team. Each formula on this page is run through our verification engine before publishing.

Last reviewed: