PDF download Download Article
Become an Excel pro by learning how to make your own IF ISNA formulas
PDF download Download Article

Are you struggling with creating IF ISNA formulas in Excel? While it may seem a little confusing, once you learn the basics of IF statements and the ISNA function, you can easily create sophisticated IF ISNA formulas for your spreadsheets. Keep reading for the step-by-step instructions on how to construct these useful formulas.

Things You Should Know

  • ISNA is a function that asks Excel to print if a cell contains a #N/A error or not, but is usually used with other functions.
  • The most popular function to use with ISNA is VLOOKUP, which looks through a specified array of columns for a value.
  • With an IF ISNA formula, you can print custom Boolean messages if the formula returns a value or an #N/A result.
  1. In Excel, you can use the ISNA function to create an IF formula that will return custom Boolean values instead of the typical #N/A value.[1]
  2. In the formula bar, type =IF(ISNA.
    • The syntax of an IF statement is =IF(logical_test, true_value, false_value). A logical test is something that is either true or false. If the IF function is true, it will execute the true_value. If the function is false, it will execute the_false value.
    • IF functions can have nested functions as their arguments to allow you to create sophisticated spreadsheets.
    Advertisement
  3. One of the most common functions to use with ISNA is VLOOKUP, but you can use other functions such as MATCH. VLOOKUP is an Excel function that searches a vertical selection for a value you specify, and returns the matching value.
    • In this article, we'll teach you how to use VLOOKUP with ISNA to create an IF statement.
  4. The syntax for a proper VLOOKUP function is VLOOKUP(value, table_array, col_index_number, true/false). For example, if you're writing a VLOOKUP formula that searches a fixed two-column wide table array for a student's name and returns a value from the second column (which test they failed), you could write VLOOKUP(A1, $B$1:$C$5, 2, FALSE) (values will differ for your project). Note that the $ signs create an absolute reference, so you can use the formula in other cells without the table array reference shifting.
    • Value: This is the value that should be looked up. It can be a static value, or it can be a cell reference.
    • Table_array: A reference to a range of cells you want VLOOKUP to search through.
    • Col_index_number: The column number that includes the information you want returned. The leftmost column in the table array is 1.
    • True/false: A value that tells the formula whether you're looking for an approximate (true) or exact (false) match. If you omit this value, the function defaults to "true."
  5. Your formula should now look like =IF(ISNA(VLOOKUP(A1, $B$1:$C$5, 2, FALSE)). Be mindful of closing parentheses, or your IF statement won't work properly.
  6. An IF statement will return one of two messages: one message if the function is true, and one message if the function is false, which is known as a Boolean. For an IF ISNA formula, the true_value is your error message and the false_value is your non-error message.
    • If you want the function to print "No failed tests" for a true_value and "Failed" for a false_value, you would write the following function: =IF(ISNA(VLOOKUP(A1, $B$1:$C$5, 2, FALSE)), "No failed tests", "Failed"). Ensure there are quotes around the messages so Excel will print the correct message.
    • If you want the function to print "No failed tests" for a true_value and the name of the failed test for a false_value, you would write the following function: =IF(ISNA(VLOOKUP(A1, $B$1:$C$5, 2, FALSE)), "No failed tests", VLOOKUP(A1, $B$1:$C$5, 2, FALSE)). You can nest formulas with IF statements, and in this example, you would repeat the VLOOKUP formula you wrote earlier to print the name of the test that the student failed.
  7. If you get an error once you've completed your IF ISNA formula or it's not returning the correct value, go through your formula to ensure you've referenced the correct cells and that all parentheses are closed.
  8. Once you've completed your formula, you can easily add it to vertically adjacent cells by dragging the handle in the bottom-right corner of the cell.
    • Cell references will adjust as you drag unless you include a $ sign to denote an absolute reference.
  9. Advertisement

Expert Q&A

Ask a Question
200 characters left
Include your email address to get a message when this question is answered.
Submit
Advertisement

Tips

Submit a Tip
All tip submissions are carefully reviewed before being published
Name
Please provide your name and last initial
Thanks for submitting a tip for review!

You Might Also Like

How Do You Write an if then Formula in Excel Create an IF-THEN Formula in Excel: Basic Syntax, Multiple Conditions, & More
Use If‐Else in Excel Use If‐Else in Microsoft Excel: Step-by-Step Tutorial
Use Vlookup With an Excel Spreadsheet Use VLOOKUP with an Excel Spreadsheet
Match Data in ExcelMatch Data in Excel
Use Index Match Combine INDEX and MATCH in Excel to Create Lookup Formulas
Create a User Defined Function in Microsoft Excel Create a User Defined Function in Excel
Xlookup Multiple CriteriaUsing XLOOKUP with Multiple Lookup Values in Excel: How-to Guide
Find Matching Values in Two Columns in Excel Find Matching Values in Two Columns in Excel
Type Formulas in Microsoft ExcelType Formulas in Microsoft Excel
Fix a Formula in Excel Fix a Formula in Microsoft Excel
Use Summation Formulas in Microsoft Excel Use the SUM Function in Excel to Add Cells, Ranges, & Numbers
Use the Lookup Function in ExcelUse the Lookup Function in Excel
Apply Conditional Formatting in ExcelApply Conditional Formatting in Excel
Convert Measurements Easily in Microsoft Excel Convert Measurements in Excel with the CONVERT Function
Advertisement

About This Article

Hannah Dillon
Written by:
wikiHow Technology Writer
This article was co-authored by wikiHow staff writer, Hannah Dillon. Hannah Dillon is a Technology Writer and Editor at wikiHow. She graduated with a B.A. in Journalism from North Dakota State University in 2013 and has since worked in the video game industry as well as a few newspapers. From a young age Hannah has cultivated a love for writing and technology, and hopes to use these passions in tandem to help others in the articles she writes for wikiHow. This article has been viewed 6,847 times.
How helpful is this?
Co-authors: 3
Updated: November 13, 2023
Views: 6,847
Categories: Microsoft Excel
Thanks to all authors for creating a page that has been read 6,847 times.

Is this article up to date?

Advertisement