Public Schedule Face-to-Face & Online Instructor-Led Training - View dates & book

formulas

ResolvedVersion 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

Excel tip:

Paste with Live Preview in Excel 2010

Did you know you can preview what you are about to paste? Here's how to do it.

Copy what you are about to paste
Position the cursor where you want to paste
Right click to display the shortcut menu
Place the cursor over the Paste Options and this will give you a preview of the what you are about to paste.

View all Excel hints and tips

Connect with us:

0207 987 3777

Call for assistance

Request Callback

We will call you back

Server loaded in 0.1 secs.