IFNA
Conditional Functions

Basic Description

The Excel IFNA function tests if an initial supplied value (or expression) evaluates to the Excel #N/A error. If so, the function returns a second supplied value; Otherwise the function returns the first supplied value.

The IFNA function is new to Excel 2013, so is not available in earlier versions of Excel.

The syntax of the function is:

IFNA( value, value_if_na )

Where the arguments are as follows :

value - The value or expression to be tested
value_if_na - Alternative value or expression to be returned if the first supplied value evaluates to the #N/A error.

IFNA Function Examples

The following spreadsheet shows two examples of the Excel IFNA function.

 Formulas:
 ABCD
1 Lookup List Jim's Class: =IFNA( VLOOKUP( "Jim", A2:B6, 2, FALSE ), "not found" )
2 Beth Class 1 Mary's Class: =IFNA( VLOOKUP( "Mary", A2:B6, 2, FALSE ), "not found" )
3 Bob Class 2    
4 Alf Class 2    
5 Jim Class 3    
6 Ann Class 3    
 Results:
 ABCD
1 Lookup List Jim's Class: Class 3
2 Beth Class 1 Mary's Class: "not found"
3 Bob Class 2    
4 Alf Class 2    
5 Jim Class 3    
6 Ann Class 3    
Excelq.com doing business as a Service of Venttraffic Media Inc. Excel and other words on this site may be trademarks or registered trademarks of Microsoft Corporation. Microsoft Corporation is not connected in any way with this website, and makes no endorsement of the site or its related contents. All rights reserved. Website powered by Venttraffic Media Inc.