Excel guide

VLOOKUP Returns #N/A When You Know the Value Is There — Here's Why

12 June 2026

You can see the value sitting right there in the other table. You've checked the spelling three times. But your VLOOKUP still throws back a stubborn #N/A, as if the match doesn't exist.

It does exist. Excel just can't see what you see — because the two cells that look identical to your eyes are different to the computer. Here are the four invisible culprits, in the order you should check them.

1. One side is text, the other is a number

This is the number-one cause. The classic case is a product code, invoice number or postcode-like ID. In one table it's stored as a real number (10042), in the other it's text ("10042"). They look the same; to Excel they're not equal.

How to spot it: a number stored as text usually sits left-aligned in the cell, while real numbers sit right-aligned. You may also see a little green triangle in the corner.

The fix — force both sides to match. If your lookup value is a number but the table holds text, wrap it:

=VLOOKUP(TEXT(A2,"0"), Table, 2, FALSE)

Or the other way round, if the table holds numbers and your value is text:

=VLOOKUP(VALUE(A2), Table, 2, FALSE)

2. Trailing spaces you can't see

Data exported from another system loves to carry hidden spaces — "Smith " instead of "Smith". The cell looks normal, but that one space breaks the match.

Wrap the lookup value in TRIM to strip leading, trailing and double spaces:

=VLOOKUP(TRIM(A2), Table, 2, FALSE)
If the table itself has the stray spaces, TRIM on the lookup value alone won't help. Clean the table column once with TRIM in a helper column, then use that.

3. You forgot the FALSE

The fourth argument of VLOOKUP controls match type. Leave it off (or use TRUE) and Excel does an approximate match, which requires the lookup column to be sorted and quietly returns wrong answers — or #N/A — when it isn't.

Unless you have a very specific reason, always end with FALSE (or 0) for an exact match:

=VLOOKUP(A2, Table, 2, FALSE)

4. The lookup value isn't in the first column

VLOOKUP only ever searches the leftmost column of the range you give it. If the thing you're matching on lives in column C of your table, but your range starts at column A, it'll never find it.

Either re-point the range so the match column is first, or switch to XLOOKUP (or INDEX/MATCH), which let you look left as easily as right:

=XLOOKUP(A2, Table[Code], Table[Result])

The 30-second diagnosis

When you're stuck, drop this next to your data — it tells you instantly whether Excel thinks the two cells are equal:

=A2=D2

If that returns FALSE when the cells look identical, you've got a type or spacing mismatch — work back through points 1 and 2 above. If it returns TRUE, your formula's range or match type is the problem — check 3 and 4.

Spreadsheet still fighting back?

Send us the file. Free 15-minute diagnosis, honest quote, no pressure.

Email us your problem →