FormulaRescue

Fix #DIV/0! errors in Excel

A #DIV/0! error appears when a formula divides by zero or by a blank cell treated like zero.

FormulaRescue can help rewrite the formula to handle zero or blank denominators safely.

Formula repair
Excel errors
No workbook upload

Common examples

=A1/B1

Needs handling when B1 is zero or blank.

=IFERROR(A1/B1,0)

Returns 0 instead of #DIV/0!, if that is intended.

=IF(B1=0,"",A1/B1)

Leaves the result blank when the denominator is zero.

FAQ

Why does Excel show #DIV/0!?

The formula is dividing by zero or a blank denominator.

Should the fix return 0 or blank?

That depends on your spreadsheet. Add context if you have a preference.

Can FormulaRescue fix percentage formulas?

Yes, common ratio and percentage formulas are a good fit.

Try FormulaRescue

Paste your broken Excel formula into the main FormulaRescue tool and get a corrected version back.

Rescue a formula

Related Excel formula pages