A missing lookup returns #N/A, which then breaks every SUM or chart downstream. IFNA swaps just that error for a 0, a blank, or a friendly message — without hiding other errors.
The example
Missing matches become 0, not #N/A.
| A | B | |
|---|---|---|
| 1 | Lookup | Result |
| 2 | found | value |
| 3 | missing | 0 |
The formula
The formula:
How it works
How it works:
IFNA(value, fallback)returns the fallback only when the value is #N/A.- Unlike IFERROR, it lets other errors through — a #DIV/0! or #REF! still shows, so real bugs are not buried.
- Use
0to keep sums working,""for a clean blank, or text like"Not found". - Pre-2013: wrap with
=IF(ISNA(x), 0, x)for the same effect.
Blank vs zero matters for charts and averages. A 0 plots as a point on the axis and pulls an AVERAGE down; "" (blank text) is skipped by AVERAGE but still counts as non-empty for COUNTA. Use NA() itself if you specifically want a line chart to skip the gap rather than drop to zero.
Try it: interactive demo
Look up an ID (try a missing one).
Variations
Blank instead
Empty string:
Legacy version
Pre-2013:
Keep chart gaps
Skip the point:
Pitfalls & errors
IFNA ≠ IFERROR. IFNA catches only #N/A; use it so real errors like #REF! still show.
0 vs blank. Zero affects averages and charts; an empty string does not, but counts as text.
2013+ for IFNA. Older Excel needs the IF(ISNA(...)) form.
Practice workbook
Frequently asked questions
How do I replace #N/A with 0 in Excel?
Why use IFNA instead of IFERROR?
Should I use 0 or blank?
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