Back to Functions

IFNA

Evaluates a value. If the value is an #N/A error, returns the specified value.

LogicalIFNA(value, value_if_na)

The IFNA function in Google Sheets is a powerful tool to evaluate a value. If the value is an #N/A error, it returns the specified value. Whether you're handling data errors or creating error handling mechanisms, the IFNA function simplifies the task. Dive into our comprehensive guide to master its application.

Parameters

  • value: The value to evaluate.
  • value_if_na: The value to return if value is an #N/A error.

Step-by-Step Tutorial

  1. Using IFNA with non-error value:

    • Example: =IFNA(10, "No error")
    • Result: 10
  2. Using IFNA with #N/A error:

    • Example: If A1 has the value #N/A, then =IFNA(A1, "Not available") will return "Not available".

Use Cases and Scenarios

  1. Data Analysis: Replace #N/A errors with a custom message or value.
  2. VLOOKUP Error Handling: Handle #N/A errors when using the VLOOKUP function.
  3. Data Validation: Check for errors and display specific values in case of errors.

Related Functions

  • IFERROR: Evaluate a value and return a custom value if an error is encountered.
  • ISNA: Check if a value is the #N/A error.

Related Articles

Newsletter

More IFNA examples coming soon.

We are building short, practical updates for Sheets power users.