98.7% Of all customers recommend us, we're so confident about our results we publish all reviews and stats
View Live Stats View ReviewsForum home » Delegate support and help forum » Microsoft Excel Training and help » Formulas
Formulas
Resolved · Low Priority · Version 2003
Elizabeth has attended:
Excel Intermediate course
Formulas
When the error message shows when dividing by zero. And you actually need to leave that cell as zero but you dont want the error message to appear how can you overcome this??
RE: Formulas
Hello Elizabeth
Thank you for your question and welcome to the forum.
You can use an IF function in the cell/s where you are putting the formula which is doing the division for you, to prevent the #DIV/0! error appearing.
Say for example that you have the following formula in cell C1:
=A1/B1
and cell B1 contains 0.
By changing the formula as follows, you can stop the #DIV/0! error appearing in cell C1 and have a 0 appear instead:
=if(B1=0,0,A1/B1)
which means:
if the value in cell B1 is zero, display zero in cell C1, otherwise display the result of dividing A1 by B1 in cell C1.
I hope this helps.
Kind regards
Amanda
Training information:
See also:
Welcome. Please choose your application (eg. Excel) and then post your question. Our Microsoft Qualified trainers will then respond within 24 hours (working days). Frequently Asked Questions
Any suggestions, questions or comments? Please post in the Improve the forum thread. |
Excel tip:Switching Between SpreadsheetsAs the Alt+Tab key switches between loaded applications or files, Ctrl+Tab switches between loaded or open Excel files. Hold down the Ctrl key until you have tabbed to the correct spreadsheet. |