<< Go back to all functions

IFNA

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.

Function Syntax and Parameters

Syntax: IFNA(value, value_if_na)

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