- column
- TECHNOLOGY Q&A
Get Excel to Remove The Dreaded #DIV/0 Error
Please note: This item is from our archives and was published in 2001. It is provided for historical reference. The content may be out of date and links may no longer function.
Related
No Results
TOPICS
-
Uncategorized Article
Q. I prepare model Excel spreadsheets for different groups of people who generally are not—how should I say it—financially or spreadsheet nimble. So when they see that dreaded #DIV/0 error they panic, even though I’ve explained to them that all it means is that Excel (or anyone else, for that matter) can’t divide a number by 0 and Excel shows it as an error by displaying #DIV/0. Is there a way to eliminate that error message?
A. Well, you can’t change the fundamental laws of mathematics, but you can program Excel to explain to novice users what they must do to correct the “error.” One easy way is to apply the IF() function so that if someone tries to divide a number by 0, instead of showing the dreaded #DIV/0, the cell’s message will read something like this: “Please enter a divisor other than 0.” The formula to do that is:
IF(DIVISOR = 0, “Please enter a divisor other than 0”, DIVIDEND/DIVISOR)
So, if you’re dividing B2 by C2, the formula would be:
=IF(C2=0,“Please enter a divisor other than 0”,B2/C2)
This is what it looks like in Excel—with and without the IF formula:

Of course, you can tailor the message to say something else.
Shortcuts
![]() |
Highlight People and enter the name (first, last or both) and your computer will search all the Windows databases for matches. Once the name is found, click on Add to address book and it does just that.