Description
Use this function to return TRUE when a cell contains the #N/A error, and FALSE for any other value or any other error type. Supported in Chains.
Syntax
ISNA(value)
Inputs
This function has the following arguments:
| Name | Required | Description | Valid Input |
|---|---|---|---|
value |
Yes |
The cell that you want to evaluate. | A reference to a cell, or a formula which results in one. |
Examples
Sample data
| A | B | |
|---|---|---|
| 1 | #N/A | 56 |
| 2 | green | 39 |
| 3 | orange | 15 |
| 4 | red | 92 |
| 5 | blue | 22 |
Sample formulas
| Use case | Formula | Explanation and Result |
|---|---|---|
| Check to see if a specific cell has an #N/A error. | =ISNA(A1) |
This formula works in the following manner:
For this data set this formula returns TRUE. (Because cell A1 contains a #N/A error) |
| Check to see if a specific cell has an #N/A error. | =ISNA(B1) |
This formula works in the following manner:
For this data set this formula returns FALSE. (Because cell B1 contains "56".) |
| Display a message if a specific cell has an #N/A error. | =IF(ISNA(A1),"Oops — check this!",A1) |
This formula works in the following manner:
For this data set this formula returns Oops — check this! (because cell A1 contains a #N/A error) |
Notes
- Cell ranges aren't supported.
- ISNA returns FALSE for all values and errors other than #N/A.
Tips
- You can combine ISNA with the IF function to test for #N/A and display a friendly message if the error occurs.
For example, to display a message if A1 contains #N/A and the value of A1 if not:=IF(ISNA(A1),"friendly message",A1
- The IFNA function is a more efficient way to trap the #N/A error.
Related functions
COUNT
COUNTA
COUNTBLANK
COUNTIF
COUNTIFS
ISBLANK
ISERROR
ISNA
ISNUMBER
VALUE