Excel IFNA Function

IFNA returns a fallback result only when a formula returns #N/A.

Use it when missing lookup matches should be handled cleanly, while other formula errors should remain visible for debugging.

1
Evaluate a formula Excel calculates the main value
2
Check for #N/A Only that error triggers the fallback
3
Return a clean result Use the value or replacement

IFNA syntax & arguments

Syntax

=IFNA(value, value_if_na)
Required Optional
  1. 1

    value

    Required

    The formula, expression, or value Excel should evaluate first.

  2. 2

    value_if_na

    Required

    The fallback result to return only when value evaluates to #N/A.

Example

=IFNA(VLOOKUP(A2, E2:F10, 2, FALSE), "Not found")

Return the matching VLOOKUP result, or Not found when VLOOKUP returns #N/A.

IFNA caveats

IFNA is narrower than IFERROR, which makes it better when only missing values should be replaced.

  • It only catches #N/A

    Errors such as #VALUE!, #DIV/0!, #REF!, and #NAME? still show up.

  • It is especially useful for lookups

    Missing matches often return #N/A, so IFNA can replace expected misses without hiding broken formulas.

  • Blank fallbacks can be ambiguous

    Returning "" keeps a cell visually blank, but it can make a missing lookup hard to distinguish from valid blank data.

Using modern lookups? XLOOKUP also has an if_not_found argument for missing-match fallbacks so IFNA is not needed.

Intro IFNA practice problem

Solve the intro problem directly here, or open it on its own page.

Open full problem

Advanced IFNA practice problems

Use IFNA alongside other Excel functions in realistic, less-prescriptive challenges.