#DIV/0! error: what it means and how to fix it

The formula divided by zero, or by a cell that is empty (an empty cell counts as zero).

The usual causes

How to fix it

  1. Check that the divisor points at the right cell.
  2. Show a blank until there is data: =IF(C2=0,"",B2/C2).
  3. AVERAGE returns #DIV/0! for a range with no numbers; AVERAGEIF too when nothing matches.

Fix a broken formula live

C2, the number of deals, is still empty. Cell D2 shows #DIV/0!. Change the formula in the bar until the error goes away, or press “Show the fix”.

ABCDEF
1
2
3
4
5
6
7
8

#DIV/0! The formula divided by zero, or by a cell that is empty (an empty cell counts as zero).

How to fix #DIV/0! →

Runs in your browser; nothing you type is sent anywhere. Works like Excel, Google Sheets and LibreOffice Calc for the common functions.

Learn the skill behind it

Write your first formulas, free →

Other spreadsheet errors