Templates, guides & honest tool reviews for small business

Sunday, November 29, 2026

VLOOKUP Returns #N/A: 5 Fixes When the Value Is Really There

VLOOKUP returns N/A: fixes in Excel
Illustration: VLOOKUP returns #N/A fixes

If your VLOOKUP returns #N/A even though the value looks like it is in the table, the cause is almost always one of a few small problems. This guide lists them in the order to check, with a fix for each, and shows how to hide the error once you understand it. All examples use made-up data.

What #N/A means in VLOOKUP

#N/A means "not available". VLOOKUP could not find your lookup value in the first column of the table you gave it. The value may truly be missing, or it may be there but written in a slightly different way.

VLOOKUP N/A error caused by text versus number mismatch
The same code stored two ways (illustration).

Fix 1: The value is stored as text in one place and as a number in the other

A product code like 1001 can be a number in one column and text in the other. They look the same but do not match. Convert both to the same type. One way is to multiply the text cells by 1, or use the Text to Columns tool on the column and finish.

VLOOKUP with TRIM to remove extra spaces and fix N/A
Trailing spaces break exact matches (illustration).

Fix 2: Extra spaces

"Apple " with a trailing space does not match "Apple". Clean the lookup value with TRIM:

=VLOOKUP(TRIM(A2), $F$2:$G$100, 2, FALSE)

If the spaces are in the table, clean that column too.

Fix 3: The lookup column is not the first column

VLOOKUP searches only the first column of the table you give it. If your key is in the second column, the search fails. Either move the key to the left, or use a lookup that can look in any column. Our guide to XLOOKUP vs VLOOKUP explains the options.

VLOOKUP exact match with FALSE and a locked table range
Use FALSE and dollar signs (illustration).

Fix 4: The match type is wrong

The last argument decides the match type. Use FALSE (or 0) for an exact match:

=VLOOKUP(A2, $F$2:$G$100, 2, FALSE)

If you leave it out, VLOOKUP assumes an approximate match, which needs the first column sorted and can give wrong answers.

Fix 5: The table range moved when you copied the formula

If you copy the formula down and the table range is not locked, it slides down with each row. Lock it with dollar signs, like $F$2:$G$100, so it stays fixed.

IFERROR with VLOOKUP to show a Not found message
Hide the error only after checking the causes (illustration).

Hide the error once you know why it appears

Use IFERROR to show a friendly message when the value is truly missing:

=IFERROR(VLOOKUP(A2, $F$2:$G$100, 2, FALSE), "Not found")

Use this only after you have checked the causes above. Otherwise it can hide real problems.

VLOOKUP #N/A: common questions

Why does VLOOKUP work for some rows and not others?

Usually a few rows have extra spaces or a different data type. Check a failing row against a working one.

Is #N/A always an error to fix?

No. If the value is truly not in the table, #N/A is the correct answer. You can replace it with a message using IFERROR.

Does the same fix work in Google Sheets?

Yes, the causes are the same in Google Sheets.

Related guides on Sheets AI Hub

Learn the IF formula with AND and OR, remove duplicates before you look up, and see Excel automation tips.

العربية