What #N/A actually means
VLOOKUP searches the first column of a table and returns the value from the same row in the column number you specify:
=VLOOKUP(lookup_value, table_array, col_index_num, FALSE)
#N/A is not a formula syntax bug—it is Excel telling you it could not find a match. Here are the four real causes to check.
Cause 1: The lookup value is not in the first column
VLOOKUP only searches the leftmost column of table_array. If your table is B2:E100 and the lookup code lives in column D, VLOOKUP will never see it.
Fix: either start your table range at the lookup column, or switch to INDEX + MATCH (shown below), which works in any column order.
Cause 2: Hidden spaces or numbers stored as text
This is the sneakiest cause because both cells look identical on screen:
- A trailing space (
"1042 "vs"1042") breaks the match. Check with=LEN(A2)and clean with=TRIM(A2). - One side is text (
"1042") and the other is a real number (1042). Test with=ISTEXT(A2)and convert with=VALUE(A2)or multiply by1.
A sturdy combined formula:
=VLOOKUP(VALUE(TRIM(A2)), table, 3, FALSE)
Cause 3: Missing FALSE (or accidentally using TRUE)
The fourth argument sets the match mode. FALSE (or 0) means exact match, which is what you want almost every time. Without it, Excel defaults to an approximate match that expects a sorted first column—leading to #N/A or, worse, silently returning the wrong row.
Make it a habit to always include FALSE or 0.
Cause 4: The table shifts when you copy the formula down
The formula works in row 2, then starts returning #N/A lower down because B2:E100 shifted to B3:E101, B4:E102, pushing the first rows out of the lookup table.
Lock the table range with $:
=VLOOKUP(A2, $B$2:$E$100, 3, FALSE)
Press F4 in the formula bar to add $ signs around a selected reference automatically.
Handle expected #N/A cleanly with IFERROR
When a missing match is expected (a customer with no orders yet), wrap the lookup in IFERROR:
=IFERROR(VLOOKUP(A2, $B$2:$E$100, 3, FALSE), "Not found")
Use IFERROR after checking the real cause—otherwise it will hide genuine mistakes.
Going further: INDEX + MATCH
INDEX + MATCH removes both classic VLOOKUP limits: the lookup column can be anywhere, and inserting a column will not break your formula:
=INDEX($D$2:$D$100, MATCH(A2, $B$2:$B$100, 0))