IFNA function

This article describes the formula syntax and usage of the IFNA function (function: A prewritten formula that takes a value or values, performs an operation, and returns a value or values. Use functions to simplify and shorten formulas on a worksheet, especially those that perform lengthy or complex calculations.) in Microsoft Excel.

Description

Returns the value you specify if the formula returns the #N/A error value; otherwise returns the result of the formula.

Syntax

IFNA(value, value_if_na)

The IFNA function syntax has the following arguments.

  • Value    Required. The argument that is checked for the #N/A error value.
  • Value_if_na    Required. The value to return if the formula evaluates to the #N/A error value.

Remarks

  • If Value or Value_if_na is an empty cell, IFNA treats it as an empty string value ("").
  • If Value is an array formula, IFNA returns an array of results for each cell in the range specified in value.

Example

The workbook below shows examples of this function. Inspect them, change existing formulas, or enter your own formulas to learn how the function works.

To work more in-depth with the example data in Excel, download the embedded workbook to your computer, and then open it in Excel.

Top of Page Top of Page

 
 
Applies to:
Excel 2013, Excel Online