Contact

ISNA Function in Microsoft Excel: Examples, Pitfalls & Compatibility

Information Beginner Microsoft Excel

ISNA in Microsoft Excel: test specifically for the #N/A error value. Includes worked examples and application-specific cautions.

Verification status: See the evidence and test scope described in this guide. How formula examples are checked

Quick answer: Use ISNA in Microsoft Excel to test specifically for the #N/A error value. The official ISNA reference is the source for the function definition and platform-specific rules described below.

Availability and version history

  • Introduced: Introduction version not established by the official history reviewed.
  • Availability: Official help lists Excel for Microsoft 365, Excel for Microsoft 365 for Mac, Excel 2024, Excel 2024 for Mac, Excel 2021, Excel 2021 for Mac, Excel 2019, Excel 2016, Excel Web App.
  • Checked: October 14, 2026; official ISNA reference. Documentation check, not a new native test; existing example-verification notes retain their scope.

Syntax and arguments

=ISNA(value)

value (required): A value, formula result or reference to the single cell being classified.

Examples use English function names, comma argument separators and decimal points. Adapt formula separators to your workbook settings, not punctuation inside quoted text.

When to use it

Use ISNA when a missing lookup result should be distinguished from an invalid reference or failed arithmetic. It answers a narrow type question rather than deciding whether a record is otherwise acceptable.

Three worked examples

Each example is independent. Where input cells are listed, enter those values first; otherwise the formula is self-contained. Expected outputs are independently checked calculations or documented error expectations, not captured results from Microsoft Excel.

Example 1: Detect a deliberate missing-value marker

=ISNA(NA())

Expected result: TRUE.

NA() produces the actual #N/A error, so the narrow predicate is TRUE.

Example 2: Do not classify division by zero as missing data

=ISNA(1/0)

Expected result: FALSE.

The expression fails, but its error is not #N/A. A separate error flag is needed for this condition.

Example 3: Distinguish a text label

=ISNA("#N/A")

Expected result: FALSE.

The quoted characters are a label, not an error-typed value.

Advanced example: a matched source error can look like a missing key

Build a two-row lookup source in H2:I3 with code A01 and numeric 6 in the first row, and code A02 and the formula =NA() in the second. Put A01, A02, A99 in K2:K4. In L2 enter and fill down:

=VLOOKUP(K2,$H$2:$I$3,2,FALSE)

Expected raw outcomes are 6, #N/A, #N/A. In M2 fill =ISNA(L2) down, giving FALSE, TRUE, TRUE. A02 exists, but its return cell contains #N/A; A99 is absent. The predicate correctly identifies the error in both cases and cannot by itself identify its cause.

The explicit FALSE requests exact matching in VLOOKUP. Keep the source and raw lookup available before replacing #N/A with a display label. A status such as Unavailable is safer than asserting Key missing when matched return values have not been checked.

For comparison, =ISNA(0) is FALSE, so a genuine zero is not an unavailable-value error. These expected controls are documentation-based classifications, not native lookup-engine or complete cross-version tests.

Put it to work safely

Create a diagnostic column beside the calculation being checked and fill down one row at a time. Test a known numeric result, a deliberate #N/A, a division error and a quoted error label before using the flag in a larger report. Do not overwrite the underlying calculation while investigating. Once the desired replacement policy is clear, IFERROR or IFNA may provide a more direct presentation formula.

Common mistakes and fixes

Quoted error text is not detected as an error. A string such as “#N/A” is ordinary text. An actual error value is a different data type.

A FALSE result is treated as proof the input is valid. A predicate only tests its named error condition. Text, blanks and out-of-range business values can still require separate validation.

A useful diagnostic disappears. Do not replace every error with zero without considering the meaning. Preserve enough information to distinguish missing data from a broken calculation.

Microsoft Excel-specific notes

Microsoft’s grouped IS-function reference distinguishes ISERR, ISERROR and ISNA and explains that the tests do not convert quoted text into the corresponding value type. Keep the actual lookup result separate from a display label such as “not found”. See the vendor reference for the current definition.

Excel and Google Sheets comparison

Both official references distinguish actual errors from normal text and distinguish the scope of these three predicates. The classic error cases here do not certify the treatment of every newer, application-specific error or a complex array formula.

Compare the ISNA guide for Google Sheets and its official documentation. Having a guide in both libraries establishes two documented references, not a certificate of identical behavior across releases, locales or file conversions.

Evidence and testing scope

Editorial verification: Official references retrieved on 2026-10-12. The three worked cases are included in this release’s reproducible Python checking suite. It checks the stated arithmetic, calendar or text model and the expected documented error classification; it is not the Microsoft Excel calculation engine. No native application run, UI screenshot, maximum-size benchmark or cross-version certification is claimed. Review the editorial testing standards before relying on a formula in a critical workbook.

October 14, 2026 review scope

The complete guide and its original examples were reviewed against the direct Microsoft ISNA reference. Added classifications and arithmetic are independently modeled; no native Excel run or complete coercion/evaluation-order matrix is claimed. The availability block retains the separately reviewed product list and introduction evidence.