IFNA handles a missing lookup (#N/A) while letting real errors surface — safer than IFERROR, which hides every error including genuine bugs.
#N/A triggers the default; a #REF! or #VALUE! still shows, so you notice broken formulas.
The example
A missing key returns a message, not an error.
| A | B | |
|---|---|---|
| 1 | Lookup | Result |
| 2 | Found | Value |
| 3 | Missing | Not found |
The formula
Default on #N/A only:
How it works
IFNA is the precise version of IFERROR:
IFNA(value, default)returns the default only when value is#N/A.- Any other error (
#REF!,#VALUE!,#DIV/0!) passes through, so you see it and can fix it. - This is the right wrapper for lookups, where #N/A means “not found” but other errors mean “something’s wrong.”
- IFERROR catches everything — convenient, but it can mask genuine bugs.
Prefer IFNA over IFERROR for lookups. IFERROR around a VLOOKUP will also swallow a #REF! from a deleted column, hiding the breakage behind your “Not found” text. IFNA only masks the expected miss.
Try it: interactive demo
Look up a key (try a missing one).
Variations
XLOOKUP default
Built-in (365):
IFERROR (catches all)
When you want every error hidden:
Only #N/A test
Detect it:
Pitfalls & errors
2013 or later. IFNA isn’t in Excel 2007.
IFNA only catches #N/A. If you also need to handle other errors, that’s a deliberate choice — combine with IFERROR only where appropriate.
XLOOKUP has it built in. Its 4th argument is essentially IFNA — no wrapper needed.
Practice workbook
Frequently asked questions
What's the difference between IFNA and IFERROR in Excel?
Why prefer IFNA for VLOOKUP?
Does XLOOKUP need IFNA?
Stop fighting formulas. Learn them in a day.
This recipe is one of hundreds of real-world formulas we teach. Our Excel Formulas & Functions class covers lookups, logic, text, and dynamic arrays hands-on — live in Dallas–Fort Worth, Houston, Austin, Oklahoma City, Denver, or online.
See the Formulas & Functions Class