How to Stop #DIV/0! from showing

posfog

Board Regular
Joined
Jun 2, 2009
Messages
171
<style type="text/css"><!--td {border: 1px solid #ccc;}br {mso-data-placement:same-cell;}--></style>
#DIV/0!

<tbody>
</tbody>
Morning All,
I have a number of different formulas within a work book which look at a data set which sometimes shows zero's or no information, So as you would expect the formula's bring back #DIV/0!

Is there a way that the formulas could infact then show nothing or a single zero and not the #DIV/0!


Here is examples of the formulas in question

=ABS(SUM($R$8/$R$15)-100%)
=VLOOKUP($R$4,'Off Load Data'!$A:$D,3,FALSE)


Kind Regards
P
 

Excel Facts

How to total the visible cells?
From the first blank cell below a filtered data set, press Alt+=. Instead of SUM, you will get SUBTOTAL(9,)
=ABS(SUM($R$8/$R$15)-100%)
When you have a definite division such as the one above, simply test for the divisor being 0...

=IF($R$15=0,"",ABS(SUM($R$8/$R$15)-100%))



=ABS(SUM($R$8/$R$15)-100%)
=VLOOKUP($R$4,'Off Load Data'!$A:$D,3,FALSE)
The following method will work for the first formula as well as the one immediately above, but note that it will stop all errors, not just #DIV/0! errors...

=IFERROR(VLOOKUP($R$4,'Off Load Data'!$A:$D,3,FALSE),"")
 
Upvote 0
Morning All,
Thanks again for the help so far but i have come up with an issue along the same lines.

So i am using the following Formula
=IFERROR(ABS(SUM($R$9/$R$16)-100%),1)

In todays data R9 is 11 and R16 is 0
The formula still thinks that the scoring should be 100% but i wanted it to show the true negative score.


Is this possible?


Regards and Thanks in advance
 
Upvote 0
Depends what you mean by true negative score??? Whats that meant to be and whats the logic behind the result.
 
Upvote 0
Morning Steve,

Problem i have is the formula will work for:
Example A Where someone has an output of work and any errors raised against it as shown below
Example B Where no output or errors has been raise
ABC
Errors9 11
Output476
Percentage98.11%100%??

<colgroup><col><col span="3"></colgroup><tbody>
</tbody>


But it wont work for example C where errors have been found against that person but no work has been carried out on that day (errors can be raised due to error checking is delayed)


Hope this makes sense?
 
Upvote 0
I dont really see how you can have an either this or that answer but maybe try this:

=IF(B1="",1,IF(B2="",-1,1-B1/B2))
 
Upvote 0

Forum statistics

Threads
1,215,943
Messages
6,127,814
Members
449,409
Latest member
katiecolorado

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top