How to use If Error Function in Excel?

  • Home
  • / How to use If Error Function in Excel?

Would you like to make your worksheets error-free and your formulas crystal-clear?

Rather than getting tricks about how to crack miscalculations, you should be acknowledged enough how to escape from making errors.

In the beginning, let’s discuss the IFERROR function with minor details.

What is the IF Error Function in Excel?

Under the leading category of logical functions, Excel has an IFERROR function that lets you explore errors if appear in the sheet. Similar functions to IF Error include ISERR, ISERROR, and ISNA. Using this function will get you a modified result that comes in terms of a text. Usually, it happens when an error is found in the assessment of the formula.

When it comes to financial assessment, you have to confront formulas as well as different sorts of data. Not always but often you may get some errors with a formula. It happens when the formula is not practiced correctly. If Error function in Excel is generally exercised for dealing with errors. You can use it for handling errors including #REF!, #N/A, #VALUE!, #NUM!, #DIV/0!, #NAME? or #NULL!.

Let’s have a look at the syntax of this If Error function in Excel:

=IFERROR (value, value_if_error)

In this syntax, ‘value’ indicates the functioning that helps check for errors. You may call it a formula, an expression, or cell reference.

Moreover, ‘value_if_error’ shows that the value returned from the function if an error exists. Remember that it may be a cell reference blank cell, an empty string, a numeric value, a line of text, or another formula or expression.

How to Use If Error Function in Excel

Together with other Excel functions, the If Error function is practiced to deal with returning error values. If Error function is joinable in the presence of reference functions such as HLOOKUP, VLOOKUP, MATCH, XLOOKUP, INDEX. In addition, the If Error function is also combinable with other conditional aggregate functions including IF, SUMIF, COUNTIF, AVERAGEIF.

Using IFERROR in Excel Formula

Now, let’s start digging into how the If Error function in Excel is used. Do you really want to know if an expression is returning an error or not? Interestingly, you may use this function to check the expressions, which can return errors and handle them.

Using the If Error function in Excel, you can return a particular value if a formula assesses an error, or else it may return the result of the formula.

If an error is detected, you may have a string, a Value, or another Expression.

On the other hand, the IFERROR function is used with such formulas that allow returning errors at some points or false data inputs. Moreover, some text or value is returned when the formula returns an error. 

Price banner Earn and Excel

Use of IFERROR with IF Statement

Conditional or logical checks are easy to make with IFERROR in the episode of IF statements. Let’s have a look at how convenient IFERROR is to use with IF statement in Excel formula. Here we have an example to show some details about this function. Some amount is being entered at Range B1 and the IF formula evaluated the Discount Price as Result. 

Here is the element:

IF Formula =IF(B1>1000,B1*0.1,B1*0.05)

IFERROR + IF Formula =IFERROR(IF(B1>1000,B1*0.1,B1*0.05), “Please Enter Valid Data”)

IF Formula – Valid Data: It helps in calculating and gives an answer when valid data is entered.

IF Formula – Invalid Data: It helps in calculating the Error (#VALUE!) and gives an answer when the invalid number is entered.

IFERROR +IF Formula – Valid Data: It helps in the calculation when valid data is entered.

IFERROR + IF Formula – Invalid Data: In case you add some invalid number IF function lets you find it and give an ideal error #VALUE!. IFERROR assesses the error while making the modifying messages.


If there is an error in the functioning, the IFERROR function allows you to find it while producing a Blank string. Below you will have a look at the IFERROR Blank Example formula.

Excel If Error Then Blank

Excel will return Blank with the help of IFERROR, in case any error is detected in the formula. Let’s have a simple formula that returns blank while in the presence of an error in the formula.

In the second argument of the IFERROR function, you may pass the blank string in order to make a blank string. Or else, you may leave the second parameter empty without entering any value.

Blank String: In the following formula, you will witness a BLANK string is an expression that assesses an Error. You can make a Blank string character (“”) as the second parameter of the IFERROR function.  


Empty Argument: In the following formula, you will notice an Empty Cell if an error is identified. In this section, the second parameter is not available of the IFERROR function. Have a look:


Difference between Providing the Second Argument and Leaving Empty: A Blank String Character (“”) is made, function overwrites the built-in cell format while passing the second character. Leaving it blank may make a cell with a built-in format.

How IFERROR Works in Reality

  • It simply needs two arguments to execute the function.
  • It can exercise the first argument and authorize the assessed value.
  • The result of the first argument is declared if the first argument returns the value that is not an error such as #DIV/0!, #VALUE!, #N/A, #NUM!, #REF!, #NULL!, and #NAME?.
  • The second argument will start processing if the first argument returns an error. 

Things to Consider about Excel IFERROR Function

  • Remember that the IFERROR function in Excel deals with all sorts of errors such as #NAME?, #DIV/0!, #N/A, #NUM!, #NULL!, #VALUE!, and #REF!.
  • Based on the value_if_error argument’s content, the IFERROR function is free to replace errors with any text, number, date, or logical value you would like to add. It can be a formula or an empty string.
  • In Excel 2007, the IFERROR function was introduced first and now it is available in all later versions of Excel 2010, Excel 2013, Excel 2016, Excel 2021, and Excel 365.
  • In case you found the value argument is a blank cell, don’t consider it as an error because it is an empty string (“”).


Price banner Earn and Excel

Write your comment Here