IFNA Function
Replaces only the #N/A error — usually 'not found' from a lookup.
Category
Logical
Available in
Excel 2013+, Microsoft 365
Returns
The formula's result, or your fallback if it's #N/A
Overview
IFNA is IFERROR with a narrower focus. It only steps in when the result is #N/A, which is what lookups return when a value can't be found.
Every other error still shows, so genuine mistakes in the formula aren't hidden.
Syntax
Arguments
| Argument | Required? | What it does |
|---|---|---|
| value | Yes | The formula to check — typically a lookup. |
| value_if_na | Yes | What to return if value is #N/A. |
Examples
Example 1 — Product not in the list
P-104 isn't in the price list, so show a message instead of #N/A.
| A | B | C | D | E | |
|---|---|---|---|---|---|
| 1 | Code | Price | Find | Price | |
| 2 | P-101 | 12.50 | P-104 | Not found | |
| 3 | P-102 | 8.00 | |||
| 4 | P-103 | 15.00 |
Example 2 — Fallback to a second list
Look in this year's price list, and if the code isn't there, try last year's.
Common mistakes
- Other errors still appear. That's by design. A #REF! means the formula itself needs fixing.
Notes
- XLOOKUP has its own if_not_found argument, so =XLOOKUP(D2, A2:A4, B2:B4, "Not found") doesn't need IFNA.
- Related functions: IFERROR, ISNA, VLOOKUP, XLOOKUP, MATCH.

Author
Kyle Stott
Certified Microsoft Excel Expert
Kyle has worked professionally with Microsoft Excel for over a decade and has consulted on and taught Excel best practices to over 400 companies across 30+ countries.