The #DIV/0! error appears as soon as you divide by an empty cell or by zero. In a marketing report, a channel with no sale yet breaks the whole column. Before IFERROR, people tested the divisor with IF. Today, IFERROR does the same job in a shorter formula.
The following exercise shows you how to move from a raw division to a clean, rounded result, with no error left in the table.
What you will practice in this exercise
You work on marketing spend and sales by channel. You answer 8 questions, one formula per question:
- Calculate the cost per sale (raw division, which returns #DIV/0!)
- Avoid the error by testing the divisor (classic IF)
- Get the same result in a simpler way (IFERROR)
- Round the cost to 2 decimals (IFERROR + ROUND)
- Fill each formula down the list (copy a formula)
Practice with exercises
IFERROR — Customer acquisition cost
Tame the #DIV/0! error and protect your calculations with IFERROR.
Related articles
All the exercises in this series are based on real cases found on Excel forums. Each one answers a question that Excel users really ask.