How to use ISNA function in Excel?

The ISNA function in Excel is used to check whether a cell contains the #N/A error. This is particularly useful when you’re dealing with functions that can return #N/A, such as VLOOKUP or MATCH, and you want to handle these situations gracefully.

Here’s how to use the ISNA function:

Syntax

=ISNA(value)
  • value: The value or expression you want to test for the #N/A error.

Example Usage

Suppose you have a VLOOKUP function in cell B2 that sometimes returns #N/A when it doesn’t find a match. You can use ISNA to check for this error:

=ISNA(VLOOKUP(A2, D2:E10, 2, FALSE))

In this example, if the VLOOKUP function returns #N/A, the ISNA function will return TRUE. Otherwise, it will return FALSE.

Practical Example

If you want to provide a default value or a custom message instead of displaying #N/A in your spreadsheet, you can combine ISNA with an IF function:

Assume you have a list of items and their prices, and you want to look up prices but return “Price not found” instead of #N/A. You can use:

=IF(ISNA(VLOOKUP(A2, D2:E10, 2, FALSE)), "Price not found", VLOOKUP(A2, D2:E10, 2, FALSE))

Steps to Use ISNA

  • Select the Cell: Click on the cell where you want the result.
  • Enter the ISNA Formula: Type `=ISNA(` and then enter the necessary function or cell reference inside the parentheses.
  • Close the Parentheses: Finish with a closing parenthesis `)`.
  • Press Enter: Hit Enter to complete the function and see the result.

Notes

  • Common Errors: If the ISNA function is not behaving as expected, ensure all parentheses match and the value or expression inside ISNA is correctly referenced.
  • Alternative Functions: Consider using `IFERROR` for a more generalized error handling which can cover all types of errors, not just #N/A.

By understanding how to leverage the ISNA function, you can make your spreadsheets more robust and user-friendly by managing errors effectively.

Unlock Your Potential

Excel

Basic - Advanced

Access

Access Basic - Advanced

Power BI

Power BI Basic - Advanced

Help us grow the project