ISNA Function
Tests specifically for the #N/A error.
Syntax
Parameters
| Parameter | Description | Required |
|---|---|---|
| value | The value, cell reference, or formula result to test. | Required |
Basic Example
Test for #N/A directly
=ISNA(NA())NA() returns the #N/A error, which ISNA detects.
Advanced Examples
Example 1: Trap a missing VLOOKUP
Return a friendly message when a lookup fails.Replace #N/A with text using IF and ISNA
=IF(ISNA(VLOOKUP("x", A2:B10, 2, FALSE)), "Not found", VLOOKUP("x", A2:B10, 2, FALSE))Example 2: Other errors are not #N/A
Division by zero.Show ISNA ignores non-#N/A errors
=ISNA(1/0)How ISNA Works
ISNA returns TRUE only when the value is exactly the #N/A error. Other error values (#VALUE!, #REF!, #DIV/0!, #NUM!, #NAME?, #NULL!) and normal values all return FALSE. It is commonly paired with IF to handle lookup misses gracefully.
Important Notes & Limitations
Detects only #N/A; use ISERROR for all error types.
Does not catch #N/A produced indirectly unless the error cell is referenced.
Returns FALSE (not an error) for ordinary values.
Common Errors & Fixes
Using ISNA to catch every errorOnly #N/A returns TRUE.Fix: Use IFERROR or ISERROR to handle all error types.
Computing the lookup twiceIF(ISNA(...),...,original) evaluates the formula twice.Fix: Prefer IFNA or IFERROR, which evaluate once.
Download Practice File
ISNA
isnaPractice ISNA with Real Data
Download a sample CSV file with pre-populated data and practice exercises for the ISNA function. Works in both Excel and Google Sheets.
File format: CSV (comma-separated values) - opens in Excel, Google Sheets, and all spreadsheet apps