Google Sheets ISNA Function: How to Use and Examples
In this article
The ISNA function in Google Sheets is used to check if a specific cell or formula result equals the #N/A error. It returns TRUE if the value is #N/A and FALSE if the value is anything else (including other error types like #VALUE! or #DIV/0!). This is primarily used to handle "Not Available" errors that occur when lookup functions, such as VLOOKUP, HLOOKUP, or MATCH, cannot find a requested value in a data range.
What You'll Need
- A Google account with access to Google Sheets.
- A spreadsheet containing data, ideally with a lookup formula (like VLOOKUP) that is currently producing #N/A errors.
Step-by-Step
- Identify the Error: Locate the cell where your lookup formula is returning an #N/A error. For example, if you have a VLOOKUP in cell B2 that cannot find a matching ID, it will display #N/A.
- Select a Target Cell: Click on an empty cell where you want the TRUE/FALSE result to appear, or select the cell containing the formula if you intend to wrap the ISNA function around it.
- Enter the Basic Formula: Type
=ISNA(into the cell. - Reference the Value: Click the cell that contains the #N/A error (e.g., B2) or enter the formula that is causing the error. Your formula should now look like
=ISNA(B2)or=ISNA(VLOOKUP("Item", A1:B10, 2, FALSE)). - Close and Execute: Type the closing parenthesis
)and press Enter. The cell will now display TRUE if the result was #N/A, and FALSE if the result was a valid value or a different type of error. - Combine with IF for Custom Results: Since a TRUE/FALSE result is often not useful for final reports, wrap the ISNA function inside an IF function to display a custom message. Use this syntax:
=IF(ISNA(B2), "Not Found", B2). This tells Google Sheets: "If the value in B2 is #N/A, write 'Not Found'; otherwise, show the actual value of B2."
Common Mistakes
- Confusing ISNA with ISERROR: A common mistake is using ISNA when you actually want to catch all errors. ISNA only catches #N/A. If your formula results in #REF! or #VALUE!, ISNA will return FALSE. If you need to catch every possible error, use the ISERROR function instead.
- Incorrect Nesting: When using ISNA inside an IF statement, users often forget to provide the "value if false" argument. If you only provide the "value if true," Google Sheets will display the word "FALSE" whenever the data is found.
- Forgetting Parentheses: Because ISNA is often nested inside other functions, it is easy to miss a closing parenthesis, which results in a formula parse error.
Tips
- Use IFERROR for Simplicity: If you do not specifically need to distinguish between #N/A and other errors, the IFERROR function is a shorter alternative.
=IFERROR(VLOOKUP(...), "Not Found")does the same job as the IF(ISNA()) combination but with less typing. - Data Validation: Use ISNA to create a "Check" column in your spreadsheets. By dragging
=ISNA(Cell)down a column, you can quickly filter for TRUE values to find missing entries in your database. - Conditional Formatting: Instead of a new column, use ISNA in a Conditional Formatting custom formula. Go to Format > Conditional formatting > Custom formula is, and enter
=ISNA(A1)to highlight all missing data cells in red.
Troubleshooting
If the ISNA function is not behaving as expected, try these steps in order:
- Check the Error Type: Hover your mouse over the cell displaying the error. If the tooltip says something other than "#N/A" (such as "#VALUE!" or "#NAME?"), ISNA will return FALSE because it is designed specifically for "Not Available" errors. Switch to ISERROR.
- Verify Cell References: Ensure the cell reference inside the ISNA parentheses is correct. If you are referencing a range instead of a single cell, the function may not return the expected result unless used as an ArrayFormula.
- Check for Hidden Spaces: If a VLOOKUP is returning #N/A but you can clearly see the value in your data, the issue is likely trailing or leading spaces in your cells, not the ISNA function itself. Use the TRIM function to clean your data.
- Refresh the Sheet: If the formula seems stuck, refresh your browser tab to ensure all calculations are updating in real-time.
Frequently Asked Questions
What is the difference between ISNA and ISERROR?
ISNA only returns TRUE for the #N/A error, which typically means a value was not found. ISERROR returns TRUE for any error, including #DIV/0!, #VALUE!, #REF!, and #NAME?.
Can I use ISNA with an ArrayFormula?
Yes. By wrapping ISNA within an ArrayFormula, you can check an entire column for #N/A errors at once without having to drag the formula down manually.
Why does my ISNA formula return FALSE even though I see an error?
This happens if the error is not an #N/A error. For example, if your formula has a typo in the function name, it produces a #NAME? error, which ISNA ignores.
Does ISNA slow down my spreadsheet?
No, ISNA is a lightweight logical function. However, using thousands of nested IF(ISNA()) statements in a very large sheet can impact performance; in those cases, using a single ArrayFormula is more efficient.
Can ISNA be used to find empty cells?
No. An empty cell is not an error; it is a null value. To find empty cells, use the ISBLANK function.