### IFERROR Formula Excel

##### Associated Files Download Links

In this Article

This Excel Tutorial demonstrates how to use the **Excel IFERROR Function** in Excel to test for an error and if one is found do something else, with formula examples.

## IFERROR Function Description:

The IFERROR Function Checks if a formula results in an error. If FALSE, return the original result of the formula. If TRUE, return another specified value.

## Formula Examples:

Example | Formula | Result |
---|---|---|

No Error | =IFERROR(C5,D5) | 1 |

Error | =IFERROR(C6,D6) | “error” |

Error – Display Blank | =IFERROR(C7,””) | |

Error – Do 2nd Calc | =IFERROR(5/C8,5/D8) |

## Syntax and Arguments:

The Syntax for the IFERROR Formula is:

1 |
=IFERROR(VALUE,value_if_error) |

### Function Arguments ( Inputs ):

**value** – An expression. Example: 4/A1

**value_if_error** – Value or Calculation to perform if the previous input results in an error. Example 0 or “” (blank)

## Additional Notes

Use the IFERROR Function to test if a calculation results in an error. If it does, then do something else, if not then keep the original result.

Often the IFERROR Function is used with lookup functions, such as **VLOOKUP**s. If the lookup_value is not found, typically an error is returned, but by adding IFERROR to the formula, the formula can return blank (“”), “not found”, or do something else. Use formulas such as these to make your spreadsheets appear cleaner.

## IFERROR Examples in VBA

You can also use the IFERROR function in VBA. Type:

`application.worksheetfunction.iferror(value,value_if_error)`

For the function arguments (value, etc.), you can either enter them directly into the function, or define variables to use instead.

Return to the List of all Functions in Excel

## How to use the IFERROR Function in Excel:

To use the AND Excel Worksheet Function, type the following into a cell:

`=AND(`

After entering it in the cell, notice how the AND formula inputs appear below the cell:

You will need to enter these inputs into the function. The function inputs are covered in more detail in the next section. However, if you ever need more help with the function, after typing “=IFERROR(” into a cell, without leaving the cell, use the shortcut **CTRL + A** (**A** for **A**rguments) to open the “Insert Function Dialog Box” for detailed instructions:

For more information about the IFERROR Formula visit the

Microsoft Website.