The Excel ISNA function is use to check if a formula returns a #N/A error. If a supplied value is a #N/A error then it will return TRUE, else False. It can check if a references, formula and values is an #N/A error or not.
Syntax of ISNA
Value: It can be anything, a Value, a reference or a excel formula.
Lets see some examples of ISNA function in EXCEL.
If Cell A2 Contains #N/A, then below formula will return TRUE.
The Cell A3 Contains #Value, the below formula will return FALSE.
Note: ISNA function will return TRUE for #N/A error. For any other error it will return false. To trap any error us ISERROR function in Excel.
In this ISNA example we will supply an VLOOKUP Formula as argument to ISNA to check if the formula returns #N/A error.
In above data, I want to find Raju and Reena. I would like to see TRUE if they are not in list else False.
Write this formula in E2 and copy in below cell.
Since Reena is not in list, it shows TRUE, and RAJU it is False because he is in list. If you want to understand VLOOKUP function read this quick article.
Now you would like do something when you get to know that the given function returns a #N/A error. Like showing “Value Not Found” instead of blunt TRUE or FALSE. Its more meaningful.
Write this IF-ISNA-VLOOKUP function to get more meaningful returns.
IF’s first argument is always a test. Since ISNA is part of IS Function group that do test and returns TRUE-FALSE, they are ideal for IF’s test argument. You can learn more about Excel IF function here.
IF checks Value returned by ISNA and returns value specified for TRUE and FALSE.
This same thing can be done by using IFNA. IFNA is available to users since Excel 2013.
The applications/code on this site are distributed as is and without warranties or liability. In no event shall the owner of the copyrights, or the authors of the applications/code be liable for any loss of profit, any problems or any damage resulting from the use or evaluation of the applications/code.