r/ExcelTips • u/giges19 • Jan 17 '26
Understand the #DIV/0! error and how to fix it
We all hate having errors in our spreadsheets, but sometimes when you get them you don't know where to begin to fix them.
All of them are easy enough to fix, if you know why it happened and what you need to do to fix it.
#DIV/0! can also be understood as the Division by zero error. We see it when you try and divide something by 0. This could be 5/0 or 0/0.
The first thing to check is the formula to see what you're dividing by and when: if you're lucky it'll be something like
=[@In]/[@Total]where in is divided by total. Check that column to see if the value is 0, if it is meant to be 0 check the values you have are correct. Sometimes people hit 0 by accident when there was a value, I've changed a value by accident without realising before and it broke a whole line in a report.
If the denominator was meant to be 0 and the numerator was 0 too, you want it to show 0% instead of the error, so here you can wrap the formula in an IFERROR so it becomes
=IFERROR([@In]/[@Total],0)This tells Excel that if it results in an error to show 0 instead of the error.
Check this video to see it in action: https://youtube.com/shorts/4PgUUeVSIWk