The ISNA function in Google Sheets checks whether a value or formula result is the #N/A error, returning TRUE or FALSE. It's frequently paired with lookup functions to catch missing matches gracefully. Dive into our comprehensive guide to master its use.
Parameters
value: The value or cell reference to check for the#N/Aerror.
Step-by-Step Tutorial
-
Checking for a
#N/Aerror from a lookup:- Example: If
A1contains=VLOOKUP("missing", B1:C10, 2, FALSE)and returns#N/A, then=ISNA(A1)will returnTRUE.
- Example: If
-
Checking a normal value:
- Example:
=ISNA(42) - Result:
FALSE
- Example:
Use Cases and Scenarios
- Lookup Error Handling: Detect when
VLOOKUP,HLOOKUP, orMATCHfail to find a match, so you can display a custom message instead of#N/A. - Data Validation: Flag rows where expected lookup values are missing from a reference table.
- Conditional Logic: Combine with
IFto build formulas like=IF(ISNA(VLOOKUP(...)), "Not Found", VLOOKUP(...)).
Related Functions
IFNA: Returns a specified value if the formula results in#N/A, otherwise returns the formula's result.ISERROR: Checks whether a value is an error.IFERROR: Returns a specified value if the formula results in an error, otherwise returns the formula's result.
Related Articles
No related articles available for the ISNA function.