Logical · surgical #N/A handling · Nov 2026

The IFNA function,
surgical & explained.

Syntax, a live lookup playground, the measured error-catch matrix (IFNA catches only #N/A — IFERROR catches everything), the 0-vs-blank fallback trap, and a sourced error library: hide missing matches without burying real bugs.

D1
fx
=IFNA(VLOOKUP(A2,D:E,2,0), "Not found")
0
error types measured
0
sourced errors fixed
0
platforms checked
// 01 — Anatomy

How IFNA works

IFNA inspects a formula's result: if it is the #N/A error, IFNA returns your fallback; otherwise it returns the result unchanged. It is the narrow sibling of IFERROR — built for the one error a lookup legitimately produces when a key is missing.

=IFNA(value, value_if_na)
valueRequired. The formula or cell to check for #N/A — usually a VLOOKUP / MATCH / XLOOKUP that may not find its key.
value_if_naRequired. Returned only when value is #N/A: 0, "" (blank text), or a label like "Not found". Any other error passes through untouched.
vs IFERRORIFERROR(value, value_if_error) catches every error type. IFNA catches only #N/A — use it so real #REF!/#VALUE! bugs stay visible.
// 02 — The catch matrix

What IFNA actually catches

IFNA is the surgical guard: it replaces only #N/A and lets every other error through. The matrix below was measured live in the HyperFormula engine — 6 of 7 error types reproduced directly, #NULL! documented from Microsoft's spec. Click any cell to load that exact error × guard straight into the live playground below.

ErrorIFNAIFERRORISNAISERRORISERR
#N/AcatchescatchesTRUETRUEFALSE
#DIV/0!#DIV/0!catchesFALSETRUETRUE
#VALUE!#VALUE!catchesFALSETRUETRUE
#REF!#REF!catchesFALSETRUETRUE
#NAME?#NAME?catchesFALSETRUETRUE
#NUM!#NUM!catchesFALSETRUETRUE
#NULL! doc#NULL!catchesFALSETRUETRUE
catches / TRUE passes through (error stays) FALSE doc documented, not engine-reproduced

IFNA vs IFERROR — surgical vs blanket

Measured: IFNA catches 1 of 7 error types (only #N/A); IFERROR catches all 7. Wrap a lookup in IFNA and a real #REF! or #VALUE! still surfaces — so genuine bugs are not buried.

=IFNA(VLOOKUP(…,9,0),"safe")#REF!
=IFERROR(VLOOKUP(…,9,0),"safe")"safe"

Same broken column index. IFNA leaves the #REF! visible; IFERROR hides it. Use IFNA when only a missing match is expected.

ISERR vs ISERROR — the #N/A blind spot

test on #N/Aresult
ISNA(#N/A)TRUE
ISERROR(#N/A)TRUE
ISERR(#N/A)FALSE

Measured: ISERR is TRUE for every error except #N/A. Use it to flag "real" errors while ignoring expected missing matches — the complement of ISNA.

Pick your fallback: 0 vs "" vs text

fallbackAVERAGECOUNTA
0counts (drags down)counts
""skippedcounts
"Not found"skippedcounts

A 0 fallback plots on charts and pulls an AVERAGE down; "" is skipped by AVERAGE but still counts as non-empty for COUNTA. Choose deliberately — "" is not a truly blank cell.

// 03 — Try it live

Interactive IFNA playground

Edit the product table or type any formula — the HyperFormula engine evaluates it instantly. Load a preset to see IFNA catch #N/A, miss #VALUE!/#REF!, IFERROR catch everything, and the 0-vs-blank fallback difference in action.

A1Sample data — click any cell to edit, the formula re-evaluates live
Result
—
✓ readyHyperFormula 3.5
// 04 — Error library

The real-world error library

12 failure patterns mined from actual user reports on Reddit, Stack Overflow and Super User — each with the authentic symptom, root cause, a fix, and a runnable formula. Not textbook theory.

// 05 — Cross-platform

Where IFNA works

IFNA arrived in Excel 2013 (so perpetual 2016 already has it, unlike IFS). Older Excel returns #NAME? — here's where it lands across eight platforms and the IF(ISNA(...)) fallback.

PlatformSupportNotesGotcha
✓ Supported full IFNA◐ Partial works with caveatsCompiled from public docs · verify against your build
// Go deeper

Master error handling

IFNA is the surgical guard. The full course walks the error toolkit end to end — IFNA vs IFERROR vs the IS* tests, choosing fallbacks that don't wreck your averages, and composing guards with lookups so real bugs stay visible.

  • IFNA · IFERROR · ISNA · ISERR · ISERROR — choosing the right guard
  • Fallbacks: 0 vs "" vs text, and their effect on AVERAGE / COUNTA / charts
  • Composing IFNA with VLOOKUP / MATCH / XLOOKUP for real workflows
  • Backward compatibility: IF(ISNA(...)) for pre-2013 Excel
Free while in beta
Browse the function library

No account needed. Every page has a live playground.

// 07 — FAQ

Frequently asked