Quick answer
A visible value is not always an exact lookup match. With FALSE, VLOOKUP searches only the first column of the selected range and returns #N/A if that key is not found exactly. Check the range, the key’s data type, and invisible characters before wrapping the error in IFNA.
=VLOOKUP(E2,$A$2:$C$100,2,FALSE)
Step 1: Verify the search column
VLOOKUP does not search every column in A2:C100. It searches A and can return values in columns to the right. If the ID you seek lives in B, change the range so B is first, or consider a different lookup method. A key present elsewhere in the sheet does not make it a match.
Step 2: Compare types, not just appearance
Imported identifiers like 00123 and numeric 123 may appear related but are not interchangeable text IDs. Similarly, text "123" and number 123 can behave differently in lookups. Check what the cells contain, not only their number formatting.
Useful diagnostics:
=ISTEXT(E2)
=ISNUMBER(E2)
=ISTEXT(A2)
=ISNUMBER(A2)
Match the data types using a helper column, after deciding whether leading zeros are meaningful. Avoid converting identifiers to numbers if that would destroy significant digits.
Step 3: Inspect spaces and characters
Google identifies extra spaces as a common VLOOKUP problem. For an ordinary surrounding-space issue:
=TRIM(A2)
Google’s TRIM documentation notes that non-breaking spaces may remain. If imported data still fails, inspect the source data and clean it carefully rather than applying destructive bulk replacements.
Step 4: Choose exact matching intentionally
Using FALSE is the recommended default for an exact match. With TRUE or an omitted fourth argument, VLOOKUP searches approximately and expects sorted data. This can create different errors or wrong outputs.
Step 5: Make the error understandable without hiding it
Once you’ve checked the data:
=IFNA(VLOOKUP(E2,$A$2:$C$100,2,FALSE),"ID not found")
IFNA changes how a failed lookup is displayed; it does not repair a mismatched key. Keep the raw error available during diagnosis.
Quick diagnostic checklist
- Does the range begin with the real key column?
- Are the compared values both numbers or both text?
- Are leading zeros meaningful?
- Could whitespace or duplicate keys affect the result?
- Are the lookup range and return index correct?
Sources
Editorial note: Examples are illustrative and based on the linked documentation; no firsthand product test is claimed.