Knowing what causes the #DIV/0! error in Excel is the fastest way to get rid of it. The error appears when a formula tries to divide a number by zero or by an empty cell, and Excel cannot return a result. The fix usually takes less than a minute once the problem cell is found.
Key Takeaways
- The #DIV/0! error appears when the divisor in a formula is zero, blank, or evaluates to zero.
- Click the cell with the error and use Formulas, then Evaluate Formula, to find the exact divisor causing it.
- Fix the source by entering a valid number in the divisor cell, or correct the formula reference.
- Use IF or IFERROR to show a blank or custom message when a zero divisor is expected.
- Errors that spread through totals clear automatically once the source cell is fixed.
Step-by-Step Guide to Clear the #DIV/0! Error in Excel
Picture a sales sheet where one column holds revenue and another holds units sold, and a third calculates price per unit. A single empty units cell is enough to throw the error. These steps track it down and clear it.
- Step 1: Click the cell that shows #DIV/0! and look at the formula in the formula bar. Note which cell sits after the division sign (/), since that is the divisor.
- Step 2: Click the divisor cell and check its contents. If it is empty, contains 0, or holds a formula that returns 0, that is the cause.
- Step 3: Enter a valid, non-zero number in the divisor cell. The error disappears as soon as the formula recalculates.
- Step 4: If the divisor cell is supposed to be empty or zero for now, wrap the formula in IFERROR. For example, change =B2/C2 to =IFERROR(B2/C2,”). Press Enter to confirm.
- Step 5: To fill the fix down the column, select the corrected cell, then double-click the fill handle (the small square at the bottom-right corner of the cell). Every row now handles zero divisors the same way.
Find the Source With Evaluate Formula
When the formula is long or nests several cell references, guessing the divisor gets tedious. Excel can walk through the calculation one piece at a time.
- Step 1: Select the cell that shows the error.
- Step 2: Go to the Formulas tab and click Evaluate Formula in the Formula Auditing group.
- Step 3: Click Evaluate repeatedly. Excel replaces each reference with its value, and the step that produces a zero or blank divisor shows the problem.
- Step 4: Click Close, then fix the divisor cell as shown above.

Tip: Use Trace Precedents on the Formulas tab to draw arrows from every cell feeding the formula. A cell that looks populated but contains a formula returning 0 is easy to spot this way.
Use IF to Check the Divisor First
IF gives more control than IFERROR because it tests only the divisor. The formula =IF(C2=0,”,B2/C2) shows a blank when C2 is zero and divides normally otherwise. A message works too, such as =IF(C2=0,’No units’,B2/C2).
Tip: IFERROR hides every error type, not only #DIV/0!. When other errors such as #REF! or #NAME? should still be visible, the IF method is safer because it only catches the zero divisor.
Common Problems and Fixes
The Divisor Cell Looks Blank but the Error Remains
The cell may contain a space or a formula returning an empty text string. Click the cell and check the formula bar. Press Delete to clear it completely, or enter the correct number.
Several Cells Show the Error After One Fix
Totals and averages that reference the broken cell also display #DIV/0!. Fix the original cell first and the dependent cells recalculate on their own. If they do not, press F9 to force a recalculation.
AVERAGE Returns #DIV/0! on a Range
AVERAGE divides by the count of numeric cells, so a range with no numbers returns the error. Make sure the range contains at least one number, or use =IFERROR(AVERAGE(A1:A10),”) to show a blank until data is entered.
The Formula Still Shows the Error After Adding IFERROR
Check that the entire original formula sits inside the IFERROR parentheses, and that calculation is not set to manual. On the Formulas tab, open Calculation Options and select Automatic.
A Percentage Formula Returns #DIV/0! at the Start of the Month
Formulas that compare current figures to a prior period fail when the prior value is zero. Wrap the formula with IF to test the prior value, such as =IF(B2=0,”,(C2-B2)/B2).
Frequently Asked Questions
What does #DIV/0! mean in Excel?
It means a formula is trying to divide by zero or by an empty cell. Excel cannot calculate that, so it shows the error instead of a result.
What causes the #DIV/0! error in Excel most often?
The most common cause is a blank cell used as the divisor, usually because data has not been entered yet. A divisor cell containing 0 is the second most common cause.
How do I remove #DIV/0! without changing the formula logic?
Wrap the formula in IFERROR, such as =IFERROR(A2/B2,”). The cell then shows a blank when the division fails and the normal result otherwise.
What is the difference between IF and IFERROR for this error?
IF tests a specific condition, such as whether the divisor equals zero. IFERROR catches any error type. IF is more precise, while IFERROR is quicker to write.
Can a formula return #DIV/0! even if the divisor cell has a number?
Yes. If the divisor cell holds a formula that evaluates to zero, or if the formula references the wrong cell, the error still appears. Evaluate Formula helps confirm what the divisor actually is.
Why does AVERAGE show #DIV/0!?
AVERAGE needs at least one number in the range. When every cell in the range is empty or contains text, there is nothing to divide by and the error appears.
Why do other cells show #DIV/0! after one cell has the error?
Any formula that references the error cell inherits the error. Fixing the source cell clears the dependent cells automatically.
How can I find every #DIV/0! error in a worksheet?
Press Ctrl+G, click Special, select Formulas, and check only Errors. Excel highlights every cell that contains an error value so each one can be reviewed.
Does the error affect printing or charts?
Yes. Error values print as shown and can break chart data. Using IF or IFERROR to return a blank keeps printouts clean and avoids chart gaps caused by the error text.
