What you will fix

You will reproduce #DIV/0! in D2 by dividing 10 by 0, identify C2 as the zero denominator, then use an intentional IFERROR fallback in E2 and verify the result is 0.

Learning objectives

Open the practice workbook

HANDS-ON PRACTICE

Practice in your own copy

Make your own Google Sheets copy with the same data, formulas, formatting, filter and frozen header. The original remains unchanged.

Make a Google Sheets copy (access required) ↗View original

Sign in to Google. If the original is not publicly shared, download the full workbook and import it into Google Sheets, or paste the example data into your own sheet.

Sample data

CaseInput AInput BBroken resultFixed result
Example100

Keep B2=10 and C2=0 unchanged while reproducing and fixing the error.

Google Sheets practice workbook showing the complete source table before the division formulas are entered.

Reproduce, diagnose, and fix the error

Step 1: Select D2, enter =B2/C2, and press Enter. Because B2 is 10 and C2 is 0, D2 must display #DIV/0!.

=B2/C2
Google Sheets with D2 selected, =B2/C2 visible in the formula bar, #DIV/0! displayed in D2, and B2=10 with C2=0 visible.

Step 2: Confirm C2 is the cause before hiding the error. Decide what a zero denominator should mean in your model. A numeric 0, a blank, and a warning message communicate different meanings.

Step 3: For this exercise, select E2, enter =IFERROR(B2/C2,0), and press Enter. Confirm E2 displays 0 while D2 remains #DIV/0! so the original failure stays visible for comparison.

=IFERROR(B2/C2,0)
Google Sheets with E2 selected, =IFERROR(B2/C2,0) visible in the formula bar, 0 displayed in E2, and the original #DIV/0! still visible in D2.

Checkpoint

CellExpected
B210
C20
D2#DIV/0!
E20

The source inputs remain unchanged. D2 proves the zero-denominator error, and E2 proves the exercise fallback works.

Common mistakes and fixes

If E2 still errors, inspect B2 and C2 and confirm the formula references. If 0 is not a meaningful business result, replace the fallback with an intentional blank or message rather than silently reporting zero.

Independent practice

Temporarily change C2 from 0 to 2. Verify D2 and E2 both recalculate to 5, then restore C2 to 0 and confirm the checkpoint returns to #DIV/0! in D2 and 0 in E2.

Key takeaways

  • ✓#DIV/0! appears when a formula attempts to divide by zero.
  • ✓Inspect the denominator before adding an error-handling wrapper.
  • ✓Keep the broken example visible while testing a correction.
  • ✓Choose a fallback that communicates the intended meaning; 0, blank, and warning text are not interchangeable.
  • ✓Verify both the original error in D2 and the corrected exercise result in E2.
QUICK CHECK

Check your understanding

Answer four questions about the practice sheet.

1. Why does =B2/C2 return #DIV/0! in this lesson?
2. What should you do before wrapping a failing division in IFERROR?
3. What should E2 display after =IFERROR(B2/C2,0) is entered for this exercise?
4. Why might 0 be the wrong fallback in a real model?

Next lesson

Continue with Fix #NAME? errors.