#DIV/0!Supported on: Microsoft Excel® & Google Sheets™
How to Fix the #DIV/0! Error in Excel & Google Sheets
The #DIV/0! error occurs when a formula attempts to divide a number by zero (0) or by a blank/empty cell that the spreadsheet interprets as zero.
Formula Syntax Comparison
Broken Formula
=(Current_Revenue - Prior_Revenue) / Prior_Revenue
Corrected Formula
=IF(Prior_Revenue=0, 0, (Current_Revenue - Prior_Revenue) / Prior_Revenue)
Manual Step-by-Step Fix
1
Step 1
Check if the denominator cell contains valid non-zero data.
2
Step 2
Wrap the calculation in an IF check: =IF(B2=0, 0, A2/B2).
3
Step 3
Wrap in IFERROR: =IFERROR(A2/B2, 0).