The ISNA function in Google Sheets is a valuable tool for identifying whether a specific value is the `N/A` error. This error usually occurs when a function cannot find a referenced value, making ISNA an essential function for error handling and data analysis. By using ISNA, users can create more robust formulas that gracefully handle missing data.
Syntax
ISNA(value)
- value: The value or expression that you want to check for the `N/A` error.
Example #1
=ISNA(A1)
This function checks if the value in cell A1 is `N/A`. If A1 contains `N/A`, the result will be TRUE; if it has any other value, the result will be FALSE. For instance, if A1 contains `N/A`, the result is TRUE.
Example #2
=ISNA(VLOOKUP("Apple", A1:B10, 2, FALSE))
This example checks if the result of a VLOOKUP searching for “Apple” in the range A1:B10 is `N/A`. If the fruit is not found, it returns TRUE, indicating that no corresponding value exists. For example, if “Apple” is not present in the range, the output will be TRUE.
Example #3
=ISNA(SUM(C2:C10))
This function checks if the sum of the values in cells C2 to C10 results in `N/A`. If the sum is successful, it returns FALSE; otherwise, it will return TRUE. If C2 is `N/A` and C3 is 2, the result of the function will be TRUE.
Error handling
- VALUE! – This error occurs if the argument provided is not a valid reference or data type.
- REF! – This error indicates that the function is trying to reference a cell that does not exist.
- N/A – Returns TRUE if the value is `N/A`, or FALSE if it is not.