Free Excel guide
How to Use IFERROR in Excel
A campaign report divides spend by responses. When no responses have arrived, a fallback shows that the rate is still unavailable.
Try it yourselfFormula syntax
=IFERROR(value, value_if_error)Give IFERROR the calculation to try and the value to return if it raises an Excel error.
Example formula
=IFERROR(B2/B3,"Pending")With 180 in B2 and zero in B3, division raises #DIV/0! and the example returns Pending. With 6 in B3 it returns 30.
Common mistakes
- Inspect the underlying calculation first. IFERROR also catches errors such as broken references.
- Use a clear fallback. A zero can look like a valid measured cost in a report.
Try it yourself
In B7, use IFERROR to divide B2 by B3 and return the fallback in B4 if the division raises an error.
Keep practicing with the Excel course
Start with the free SUM exercise. You can try it before creating an account.
Related course lesson: IFERROR function· Premium course lesson