How to Use IFERROR Then Blank in Excel

Using IFERROR with blank result in Excel allows you to handle errors in your formulas and return a blank cell instead of the default error messages, like "#N/A," "#VALUE!", or "#DIV/0!".

To use IFERROR with a blank result, follow these steps:

  1. Open Excel and enter your data or formulas in the cells.
  2. Click on the cell where you want to apply the IFERROR function.
  3. Enter the IFERROR formula in the following format:
=IFERROR(original_formula,"")

Replace "original_formula" with the formula you want to handle the error for.

  1. Press Enter to apply the formula.

Example

Let's say you have a dataset in cells A1 to A5, and you want to calculate the average value. However, there might be cells with no data, which can cause an error in the AVERAGE function. In this case, you can use the IFERROR function to return a blank cell if there is an error:

  1. Click on cell B1 to apply the IFERROR formula.
  2. Enter the following formula:
=IFERROR(AVERAGE(A1:A5),"")
  1. Press Enter to apply the formula.

If there are any errors in the AVERAGE function (e.g., dividing by zero or non-numeric values), the IFERROR function will catch them and display a blank cell in B1. Otherwise, the calculated average will be displayed.

Did you find this useful?