Fix the #N/A Error
Your VLOOKUP, XLOOKUP, or MATCH returns #N/A even though you can see the value sitting right there in the lookup table.
Excel & Google Sheets
This formula works in both Excel and Google Sheets.
How it works
#N/A literally means "no match found." Either the value genuinely isn't in the lookup column, or — far more often — it is there but doesn't match exactly: a trailing space, a number stored as text, or different capitalization of an ID. First diagnose which case you have. If missing values are expected and you just want a clean sheet, wrap the lookup in IFERROR to show a friendly message instead. But don't reach for IFERROR first — it hides real data problems as happily as expected ones.
When to use it
Use IFERROR when missing matches are legitimate — new records, optional data. Fix the underlying data instead when every value should have a match.
Common mistakes
Got a file full of these?
Open it in your browser — every error cell gets highlighted with its fix. Nothing is uploaded.
Did this formula help?
Engine-verified against the sample data aboveLast reviewed 2026-07-08