1. Home
  2. Functions
  3. Logical
  4. IFNA

IFNA function

Returns a value of your choice when a formula gives #N/A, otherwise the formula result.

Syntax

=IFNA(value, value_if_na)

Arguments

ArgumentRequiredDescription
valueRequiredThe value or formula to check
value_if_naRequiredThe result to use instead of #N/A

How to use IFNA

IFNA takes 2 required arguments. Type =IFNA( in a cell and SheetsBat shows the arguments as you go. Optional arguments are shown in square brackets; leave them out to use their default.

Examples

Each result below was calculated by the SheetsBat formula engine.

=IFNA(NA(), "missing")Result "missing"
=IFNA(1/0, 0)Result #DIV/0!

Every formula, right in your browser

SheetsBat calculates 536 functions, with charts, pivot tables and live collaboration. Free to start.