ExcelCSE.com

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

Excel IFERROR Function

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

Excel IFERROR Function

What is the Excel IFERROR Function?

The Excel IFERROR function returned a custom result when an error occurred; otherwise returns the formula result.

The IFERROR function is an improvement provided by Excel to trap and handle errors in a formula without having to create multiple if statement

IFERROR Syntax

IFERROR(value, value_if_error)

value, required, the argument to check for an error, could be a value, a reference or a formula

value_if_error, required, the custom return value if an error occurred.

Usage Notes:

  • The IFERROR functions, trap and handles seven error types, #N/A, #VALUE!, #REF!, #DIV/0!, #NUM!, #NAME?, or #NULL!.
  • If you want to trap #N/A error only, you can use the excel IFNA function (available in Excel 2013 or newer version).
  • If the value or value_if_error argument is an empty cell, IFERROR function treats it as an empty string value (“”).

How to Use IFERROR Function in Excel

IFERROR VLOOKUP

Use the IFERROR function to handle the most frequent error when using the VLOOKUP function, which is the #N/A error.

For example, there is data as shown below. You can’t see the total amount bill because of the #N/A error. The error appears because there is “not in the price list” order. How to remove errors so you can see the total bill amount.

IFERROR Excel

The Formula for the price

Use VLOOKUP function to find out the price for a tall size.

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

The Formula for Subtotal

Use the multiplication formula to calculate the Subtotal.

=G3*H3

The Formula for Total Amount

Use SUM function to calculate the Total Amount bill

=SUM(I3:I6)

The #N/A error appears in cell H5, I5, and I8. What to do to remove #N/A error? The solution is using the IFERROR function. Please modify the formula to find the prices.

The Modified Formula

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

The value argument remains the previous VLOOKUP function, while the value_if_false argument is filled with number 0, it means if an error occurs, could be #N/A error or other errors, the IFERROR function return zeroes 0 not an error anymore.

IFERROR VLOOKUP

After modifying the formula to find prices, the #N/A error in cell H5 disappears, the same error in cell I5 and I8 disappears too.

IFERROR INDEX MATCH

The INDEX function and MATCH function if used together can replace the VLOOKUP function, of course with some advantages.

Using the same data as the previous example. Error #N/A appear too when you use the INDEX function and the MATCH function.

The Formula for the price

Use INDEX function and MATCH function to find out the price for a tall size.

=INDEX($B$3:$B$15,MATCH(F3,$A$3:$A$15,0),1)

The formulas for “Subtotal” and “Total Amount” are the same as the previous example.

The result is as shown below.

IFERROR Function in Excel

Error #N/A appears in the same place as the previous example.

The solution is using the IFERROR function, the same as the previous example.

The Modified Formula

=IFERROR(INDEX($B$3:$B$15,MATCH(F3,$A$3:$A$15,0),1),0)

The value argument uses the same INDEX and MATCH function; the value argument is filled with the number zero. The result, no error in cell H5, I5, and I8.

IFERROR INDEX MATCH

IFERROR Example

Another article using or explain about IFERROR Function
  • IFERROR VLOOKUP – Solution for VLOOKUP NA Error
  • Excel Divide by Zero 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
Share
Tweet
Google+
Email
Prev Article
Next Article

Related Articles

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

Excel SEARCH Function

Excel Weekday Function
What is the Excel WEEKDAY Function? Excel WEEKDAY function returns …

Excel WEEKDAY Function

Excel ISEVEN Function
What is the Excel ISEVEN Function? Even numbers are an …

Excel ISEVEN Function

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

Excel SUBSTITUTE Function

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

Excel LEFT Function

Tags:Excel IFERROR Blank Excel IFERROR VLOOKUP How to Use IFERROR How to Use IFERROR in Excel How to Use IFERROR With VLOOKUP IFERROR And VLOOKUP IFERROR Blank IFERROR Excel IFERROR Formula IFERROR Function in Excel IFERROR INDEX MATCH IFERROR VLOOKUP Logical Function Nested IFERROR What Is IFERROR in Excel

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