#N/ASupported on: Microsoft Excel® & Google Sheets™
How to Fix the #N/A Error in Excel & Google Sheets
The #N/A error (Not Available) indicates that a lookup function (such as XLOOKUP, VLOOKUP, HLOOKUP, or MATCH) was unable to find an exact match for the search key within the designated lookup array.
Formula Syntax Comparison
Broken Formula
=VLOOKUP(A2, D2:E100, 2, FALSE)
Corrected Formula
=XLOOKUP(TRIM(A2), TRIM(D2:D100), E2:E100, "Not Found")
Manual Step-by-Step Fix
1
Step 1
Wrap formulas in IFERROR() or IFNA() to output a clean fallback (e.g., =IFNA(XLOOKUP(...), 'Not Found')).
2
Step 2
Standardize both columns using TRIM() and CLEAN() to eliminate invisible padding characters.
3
Step 3
Ensure lookup key types match using EXACT() or VALUE().