ExcelCSE.com

Menu
  • Excel 101
  • Excel Functions
  • Excel Formula
  • Contact Us
How to Use Excel > Excel Functions > Excel IFNA Function

Excel IFNA Function

How to Use the Excel IFNA Function
Table of contents :
  • What is the Excel IFNA Function?
  • IFNA Syntax
  • How to Use IFNA Function in Excel
  • IFNA Example

Excel IFNA Function

What is the Excel IFNA Function?

The Excel IFNA function returned a custom result when #N/A error occurred; otherwise returns the formula result.

The IFNA function is an improvement provided by Excel to trap and handle #N/A error in a formula without having to write repetitive formulas and IF statement.

IFNA function trap and handle #N/A error only, to trap and handle more errors use excel IFERROR function

IFNA Syntax

IFNA(value, value_if_na)

value, required, the argument to check for N/A error, could be a value, a reference or a formula

value_if_na, required, the custom return value if #N/A error occurred.

How to Use IFNA Function in Excel

IFNA VLOOKUP

The most often discussed error #N/A is when using the VLOOKUP function.

For example, there is data as shown below. There is an item name, and the price is in columns A, B, and C.

The VLOOKUP function is used to find prices in column H. The #N/A error appears in cell H5, the error also causes the formula in cell I5 and cell I8 to produce the #N/A error.

IFNA Excel

How to remove #N/A error in cell H5, so the formula in cell I5 and I8 does not produce a #N/A error?.

The Formula to find the price of each item in column H is as follows

=VLOOKUP(F3,$A$3:$D$15,2,FALSE)

To remove the #N/A error, you should modify the formula above by adding the IFNA function. The value argument is filled with the original VLOOKUP formula, and the value_if_na argument is filled with the number 0 (zero).

The Modified Formula

=IFNA(VLOOKUP(F3,$A$3:$D$15,2,FALSE),0)

The result is as shown below. #N/A error disappears in cell H5, as well the #NA error in cell I5 and I8.

Excel IFNA

Other Alternatives

Before Excel provides the IFNA function in Excel 2013, the only way to trap and handle the #N/A error is to use the IF and ISNA functions.

The Formula

=IF(ISNA(VLOOKUP(F3,$A$3:$D$15,2,FALSE)),0,VLOOKUP(F3,$A$3:$D$15,2,FALSE))

The result is as shown below.

IFNA VLOOKUP

There is no difference in results when using the IFNA function or using IF and ISNA functions. But pay attention to the formula. There are enough differences between the two.

  • The IFNA function produces a simpler formula.
  • The combination of IF functions and the ISNA function forces the same VLOOKUP function to be used twice, first in the logical_test argument and the second in the value_if_false argument.

The Verdict

Use the IFNA function if available in your excel version. The IFNA function is better than the combination of IF functions and ISNA functions.

IFNA Example

Another article using or explain about IFNA Function
  • IFERROR VLOOKUP – Solution for VLOOKUP NA Error

Another Logical Function

Another article about Logical Function
  • Excel IFNA Function
  • Excel AVERAGEIFS Function
  • Excel AVERAGEIF Function
  • Excel IFERROR Function
  • Excel SUMIFS Function
  • Excel SUMIF Function
  • Excel IFS Function
  • Excel IF Statement
  • Excel AND Function
  • Excel OR Function
Usefull links
  • Microsoft IFNA function documentation
Share
Tweet
Google+
Email
Prev Article
Next Article

Related Articles

Excel PRODUCT Function
What is the Excel PRODUCT Function? What does product mean …

Excel PRODUCT Function

Excel MOD Function
What is the MOD function? What does mod stand for …

Excel MOD Function

Excel CHOOSE Function
What is the Excel CHOOSE Function? The excel CHOOSE function …

Excel CHOOSE Function

Excel AGGREGATE Function
What is the Excel AGGREGATE Function? The Excel AGGREGATE function …

Excel AGGREGATE Function

Excel DAY Function
What is the Excel DAY Function? The DAY function returns …

Excel DAY Function

Tags:Excel IFNA Excel IFNA Else IFNA Excel IFNA Formula IFNA Function in Excel IFNA Google Sheets IFNA in Excel IFNA VLOOKUP Logical Function

Categories

  • Excel 101
  • Excel Formula
  • Excel Functions

Recent Posts

  • Get the Original Price from Percentage Increase/Decrease
  • How to Add/Subtract Percentage in Excel
  • How to Extract Day, Month and Year from Date in Excel
  • How to Add Seconds, Minutes and Hours to a Time in Excel
  • How to Add Days, Weeks, Months and Years to a Date in Excel
  • How to Calculate Time Difference in Excel
  • Calculate Number of Days, Weeks, Months and Years Between Two Dates in Excel
  • Flash Fill Excel
  • Paste Special Excel
  • Excel TEXTJOIN Function
  • Excel CONCAT Function
  • Excel CONCATENATE Function
  • Excel REPLACE Function
  • Excel SUBSTITUTE Function
  • Excel REPT Function
  • Excel FIND Function
  • Excel SEARCH Function
  • Excel MID Function
  • Excel RIGHT Function
  • Excel LEFT Function

ExcelCSE.com

The Ultimate Guide How to Use Excel Better
Copyright © 2024 ExcelCSE.com
Contact Us - Privacy Policy - Sitemap | Theme by MyThemeShop.com

Ad Blocker Detected

Our website is made possible by displaying online advertisements to our visitors. Please consider supporting us by disabling your ad blocker.

Refresh