ISNA(value)One free generation or explanation per browser, shared across Excel and Google Sheets. Account usage limits apply afterward.
value:
The value or expression that you want to check for the #N/A error. This can be a cell reference, a formula, or a constant value.
The ISNA function in Google Sheets is a useful tool that checks whether a given value is the #N/A error. This function is particularly helpful when working with lookup functions like VLOOKUP or XLOOKUP, as it allows you to handle errors gracefully. Instead of displaying an error message, you can use ISNA to return a custom message or value when a lookup does not find a match.
In simpler terms, ISNA helps you identify when a value is not available in your data set, allowing you to manage errors effectively.
Imagine you are managing a list of students and their grades stored in a Google Sheets document:
| StudentID | StudentName | Grade |
|---|---|---|
| 1 | Alice | A |
| 2 | Bob | B |
| 3 | Charlie | C |
| StudentID | Grade |
|---|---|
| 1 | A |
| 2 | B |
| 4 | D |
You want to find the grade for each student in the Students Table using the Grades Lookup Table. If a student does not have a grade listed, you want to display "Grade Not Found".
To achieve this, you would use the ISNA function in combination with a lookup function like VLOOKUP as follows:
=IF(ISNA(VLOOKUP(A2, Grades!A:B, 2, FALSE)), "Grade Not Found", VLOOKUP(A2, Grades!A:B, 2, FALSE))In this formula:
A2 is the cell containing the StudentID from the Students Table.Grades!A:B is the range where the function will look for the StudentID in the Grades Lookup Table.2 indicates that the function should return the value from the second column of the range.FALSE specifies that the function should look for an exact match."Grade Not Found" is the value that will be returned if there is no match found.When you apply the ISNA formula to the Students Table, the output would look like this:
| StudentID | StudentName | Grade |
|---|---|---|
| 1 | Alice | A |
| 2 | Bob | B |
| 3 | Charlie | Grade Not Found |
In this case, since Charlie's StudentID (3) does not exist in the Grades Lookup Table, the formula returns "Grade Not Found".
ISNA is beneficial because it helps you manage errors in your spreadsheets effectively. Instead of displaying an error message that can confuse users, you can provide a clear and informative message. This enhances the usability of your spreadsheets and ensures that your data presentation is professional.
ISNA is an essential function for anyone working with data in Google Sheets, providing a powerful way to enhance data integrity and user experience.
Happy spreadsheeting!
You have a table with product IDs in Column A and their prices in Column B. Using the ISNA formula with VLOOKUP, you can check if a product ID entered in another cell exists. If it returns TRUE, you know the product is not listed, allowing for quick inventory checks.
Sign up for Better Analyst and get unlimited AI-powered formula generation, explanations, and advanced data analysis.
Browse our complete library of Google Sheets formula guides
Compare your options
Open a neutral research prompt in the AI tool you already use. Compare capabilities, limitations, and fit before you choose.
AI answers can be incomplete. Check source links, current pricing, and product documentation before deciding.