What does IFERROR do?
IFERROR replaces errors with a specified alternative. Use it carefully: it can also hide unexpected data problems.
Workplace example
Calculate actual divided by budget using C2/B2, but show zero if budget is blank or zero.
Example solution
=IFERROR(C2/B2,0)Try the practice question before looking at the solution again. In Excel, formula arguments are separated by commas in many regional settings; your Excel installation may use semicolons.
Practice exercise
Calculate actual divided by budget using C2/B2, but show zero if budget is blank or zero.
Take it further
Consider whether a blank fallback is clearer than zero.
Common mistake: Check that your ranges cover the correct rows and that text criteria are enclosed in quotation marks when required. When copying formulas, pay attention to relative versus absolute references.