Turn my #div/0 into a 0 please.

S

Steve

In cell D50 I have a countif function. In cell d49 I
have a sum function. What i want to do is divide D49/D50.
If cell D49 is zero, I am getting that damn #div/0. How
can I keep the D49/D50 function and a 0 value also?

Thanks,
Steve
 
J

Justin_Wolfe

It should be as simple as putting,

=IF(D49>0, D49/D50,"")

in the cell you are dividing in. This way if D49 is greater than 0 i
will do the division, and if it isn't.. it will simply return a blan
cell.

Hope this helps,
- Justin
 
D

Dan Elgaard

In cell D50 I have a countif function. In cell d49 I
have a sum function. What i want to do is divide D49/D50.
If cell D49 is zero, I am getting that damn #div/0. How
can I keep the D49/D50 function and a 0 value also?

This one traps ALL errors you may get with your formula:

=IF(ISERROR(D49/D50);0;D49/D50)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top