← Level 2 – Formula kid

9 / 12 ⏱ 18 minutes

Fixing errors (#DIV/0!)

What the red bangs mean and how to fix them.

An error is not a punishment — it is a signal

When a cell shows #DIV/0!, the formula divides by zero. The spreadsheet cannot do “infinity”. Something in the denominator is 0 or empty.

Other common ones:

ErrorMeaningCause
#DIV/0!divide by zero/0 or an empty cell
#VALUE!wrong typetext + number
#NAME?unknown functiona typo AVERGE
#REF!a broken referencea deleted sheet/row
💡

Click the cell with the error. A bubble with an explanation appears. In Excel a small yellow triangle. Read it — it often says which cell.

Make an error on purpose

  1. Ghi chús G1 10, H1 0. I1 =G1/H1. Enter. #DIV/0!

  2. Change H1 to 2. I1 shows 5. The error disappeared.

  3. Delete H1 (empty). Empty = 0 for division. The error again.

A fix with an average

=AVERAGE(B3:B8) when all cells are empty → #DIV/0!. Add a grade or narrow the range.

When in the range there is text two#VALUE!. Fix to 2.

IFERROR — hide an error nicely (không bắt buộc)

=IFERROR(G1/H1,"—")

English IFERROR. When division fails, it shows a dash instead of a bang. In Czech Sheets sometimes IFERROR, sometimes a local version. If it does not exist, fix the input — do not hide the error forever.

⚠️

IFERROR is not a data fix. If you hide #DIV/0! on an average of empty grades, you still have no grades. Data first, then maybe IFERROR for a nice display.

Pocket money — dividing average daily spend

A12 Average spend, B12 =SUM(C2:C8)/COUNT(C2:C8).

When C2:C8 are all zeros, SUM 0, COUNT 7 — result 0, not an error.

When =SUM(C2:C8)/COUNT(A2:A8) and A has text days — COUNT on A does not count text → 0 → #DIV/0!. Fix: divide by COUNT(C2:C8).

  1. Find or make a formula with an error. Fix the input, not only the cell colour.

  2. Check the average on Grades — no #REF! after inserting rows? Widen the range.

🏫 Grade average One sheet, two columns: subject and grade. At the bottom a sum and an average.
💰 Pocket money Rows = days, columns = income / spend / left.
📊 Class survey One question, answers in one column, later a chart.
🏆 Mini dashboard Three numbers at the top and one chart. Numbers as a link, not copied by hand.

Now you 💪

  1. On purpose you saw #DIV/0! and fixed the divisor.
  2. You know #VALUE! = text instead of a number.
  3. The grade average does not show an error — or you know why (an empty range).
  4. After inserting a row you checked ranges in formulas.
  5. You know IFERROR as an optional wrapper — not a stand-in for data.

Check: A red cell does not scare you. You know where to look.

What to take from this lesson