IFNA Function

Excel Functions › Logical

Excel 2013+

The Excel IFNA function is the precision version of IFERROR: it replaces exactly one error — #N/A, the “value not found” signal — and lets every other error through untouched. That makes it the right wrapper for VLOOKUP, XLOOKUP, and MATCH: expected misses become friendly text, while genuine formula bugs stay loudly visible so you can fix them.


Quick answer: to show “Not listed” when a lookup value isn’t in the table:
=IFNA(VLOOKUP(D2, A2:B50, 2, FALSE), "Not listed")
A missing SKU returns “Not listed”; but a broken reference or a typo in the formula still shows its real error — exactly what you want.

Syntax

=IFNA(value, value_if_na)
ArgumentDescription
valueRequiredThe formula to evaluate — typically a lookup that might not find its target.
value_if_naRequiredWhat to return when value results in #N/A. Any other error passes through unchanged.

Available in: Excel 2013 and every version since, including Excel for Microsoft 365 and Excel for the web. Excel 2010 and earlier show #NAME? — there, the closest substitute is IF(ISNA(…), …).

Wrap a lookup the right way

A price list sits in A2:B4; order SKUs arrive in column D, including one that isn’t listed. IFNA turns the expected miss into readable text:

ABDE
1SKUPriceOrder SKUPrice
2AX-10024.00AX-10024.00
3BX-22031.50ZZ-999Not listed
4CX-31018.75CX-31018.75
=IFNA(VLOOKUP(D2, $A$2:$B$4, 2, FALSE), "Not listed") // copied down from E2

The same pattern works with MATCH and XLOOKUP — though note XLOOKUP also has its own built-in if_not_found argument, which does the same job one layer closer:

=IFNA(MATCH(D2, A2:A50, 0), "Not in list")
=XLOOKUP(D2, A2:A50, B2:B50, "Not listed") // XLOOKUP’s 4th argument replaces the IFNA wrapper

Try it: interactive IFNA demo

Live demo

Pick what the inner formula produces and compare what IFNA and IFERROR each hand back. Only one of them lets bugs stay visible.

IFNA vs IFERROR: why narrower wins for lookups

Both functions have the same shape; the difference is the size of the net. A lookup has exactly one expected failure — the value isn’t there, #N/A. Everything else means the formula is broken:

=IFNA(VLOOKUP(D2, A2:B50, 2, FALSE), "Not listed") // catches the expected miss only
=IFERROR(VLOOKUP(D2, A2:B50, 2, FALSE), "Not listed") // also silences #REF!, #NAME?, #VALUE! bugs

With the IFERROR version, deleting column B doesn’t raise an alarm — every row just says “Not listed” and the report looks plausible while being completely wrong. With IFNA, the same accident shows #REF! in every row and gets fixed in minutes.

Rule of thumb: wrapping a lookup? Reach for IFNA first. Reach for IFERROR only when any error genuinely means the same thing — like a division where #DIV/0! is the only realistic failure.

Pitfalls & gotchas

#NAME? — Excel 2010 or earlier. IFNA arrived in Excel 2013. In older versions use =IF(ISNA(formula), "fallback", formula) — clumsier, since the formula is written (and evaluated) twice.

Pitfall: expecting IFNA to catch other errors. By design it doesn’t. If your divide-by-zero or #VALUE! is showing through, that’s the function working as intended — fix the underlying problem, or consciously decide IFERROR’s wider net is appropriate.

Pitfall: text that looks like an error. Cells containing the typed text “N/A” are not the #N/A error value — IFNA ignores them. Only a genuine #N/A error triggers the fallback.

Pitfall: doubling up with XLOOKUP. IFNA(XLOOKUP(…), "x") works, but XLOOKUP’s own if_not_found argument already covers the not-found case. Use the built-in argument and save a function call — keep IFNA for VLOOKUP, HLOOKUP, and MATCH, which lack one.

Practice workbook

📊
Download the free IFNA practice workbook
Every example on this page, ready to open in Excel — plus practice challenges with answers on a separate tab. No sign-up required.

Frequently asked questions

What's the difference between IFNA and IFERROR?
IFNA replaces only the #N/A error; IFERROR replaces every error type. For lookups, IFNA is safer: a missing value gets your fallback, but real bugs like #REF! or #NAME? stay visible instead of being silently absorbed.
Which Excel versions support IFNA?
Excel 2013 and later, including Excel 2016, 2019, 2021, Excel for Microsoft 365, and Excel for the web. In Excel 2010 and earlier, use =IF(ISNA(formula), fallback, formula) instead.
Should I use IFNA with XLOOKUP?
Usually not — XLOOKUP has a built-in if_not_found argument that handles the missing-value case directly: =XLOOKUP(D2, A:A, B:B, "Not listed"). IFNA earns its keep with VLOOKUP, HLOOKUP, and MATCH, which have no such argument.
Why is my IFNA formula still showing an error?
Because the error isn't #N/A. IFNA deliberately passes #REF!, #NAME?, #VALUE!, #DIV/0! and the rest through - they indicate the formula itself is broken. Fix the root cause rather than widening the net to IFERROR.
Can IFNA return a blank cell?
Yes: =IFNA(VLOOKUP(…), ""). As with IFERROR, the result is an empty text string, not a true blank — fine for display, but it will trip arithmetic and COUNTA. Return 0 if the cell feeds calculations.

Master functions like this in one day

This page covers one function. Our Excel Formulas and Functions class covers the 30 that matter most — live, hands-on, taught by professionals in Dallas–Fort Worth, Houston, Austin, Oklahoma City, Denver, or online.

See the Formulas & Functions Class

Related functions: IFERROR · VLOOKUP · XLOOKUP · XMATCH · IF