How to Use the ISNA Function in Excel – 3 Examples

This is an overview.

Excel ISNA Function Overview


The ISNA Function in Excel

The ISNA function is an INFORMATION function in Excel. It checks whether a cell contains the #N/A error and returns TRUE or FALSE.

ISNA Function syntax

Syntax:

ISNA (value)

Arguments:

Argument Required/Optional Explanation
value Required A value or expression to be checked for the #N/A! error

Example 1 – Find the #N/A Error using the ISNA Function

This is the sample dataset.

#N/A is displayed in B5. In the Output column (D), the ISNA function is used to check whether data in B5 is available. As data is Not Available (#N/A), the function returns the answer to the question (is the data in a cell available?) as TRUE.

To show an example of usage of ISNA function

In the second row, there is Text data, in B6.

The ISNA function is used to see if data in B6 is available. The result is FALSE because “Hello” is a text value.

The result is FALSE because “Hello” is a text value

In the other cells the Output is also FALSE.

Rest of our Input has a data type other than #N/A


Example 2 – Using the ISNA with the VLOOKUP and the IF Functions

This is the sample dataset.

A dataset of a few items and their prices

To set the item as the lookup criteria and find the price:

  • Enter the formula:
=VLOOKUP(G4,B5:D8,2,0)

Here,

  • G4 is the lookup value,
  • B5:D8 is the lookup_range,
  • 2 is the column number
  • 0 is used for an exact match.

Using a formula, to complete our task

If the lookup value is unlisted, here Pajamas:

Checking with an unlisted value

The formula returns #N/A .

  • Use the following formula.
=IF(ISNA(VLOOKUP(G7,B5:C8,2,0)),"Not Available",VLOOKUP(G7,B5:C8,2,0))

Use of ISNA with VLOOKUP and IF Functions

It checks whether the VLOOKUP produced #N/A, using the ISNA Function. It is set to display “Not Available”. Otherwise, it performs the VLOOKUP operation.

Instead of #N/A, “Not Available” is displayed.

Important Note:

You can also use the XLOOKUP function.

Read More: How to Use IF with ISNA Function in Excel


Example 3 – Using the ISNA Function with the NOT Logic

The dataset showcases students’ name, gender and address.

A dataset of a few students with their respective gender and address

  • To find the number of male students whose address is not in NY (New York) and SF (San Francisco), use the formula:
=SUMPRODUCT((C5:C10=C12)*ISNA(MATCH(D5:D10,C13:D13,0)))

The MATCH function compares the values and returns them as an array in the ISNA Function. #N/A, is TRUE.  

Use ISNA Function with NOT Logic

It checks the gender and returns the value in an array. These two arrays are multiplied and another array is found. The SUMPRODUCT function adds the arrays and returns the final output:

2 male students are not from NY or SF.


Things to Remember

You can insert #N/A directly into the function.

Inserting #N/A directly into the function

It will return TRUE.

Returning a value TRUE

Remember not to enter #N/A within double quotes.

Remember to not put the #N/A within double quotes

If so, it will be counted as a text string and the function will return FALSE.

That will be counted as a text string and the function will return FALSE


Download Practice Workbook

Download the practice workbook.


<< Go Back to Excel Functions | Learn Excel

Get FREE Advanced Excel Exercises with Solutions!
Shakil Ahmed
Shakil Ahmed

My name’s Shakil. My articles are targeted to support you in enriching knowledge regarding different features related to Microsoft Excel. I am fond of literature, hope some knowledge from them will help me providing you some engaging articles even though some weary technical terms.

We will be happy to hear your thoughts

Leave a reply

Advanced Excel Exercises with Solutions PDF

 

 

ExcelDemy
Logo