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>[TABLE="width: 82"]
<tbody>[TR]
[TD="class: xl66, width: 82, align: center"]#DIV/0![/TD]
[/TR]
</tbody>[/TABLE]
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

Create a Pivot Table on a Map
If your data has zip codes, postal codes, or city names, select the data and use Insert, 3D Map. (Found to right of chart icons).
=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
[TABLE="width: 269"]
<colgroup><col><col span="3"></colgroup><tbody>[TR]
[TD][/TD]
[TD]A[/TD]
[TD]B[/TD]
[TD]C[/TD]
[/TR]
[TR]
[TD]Errors[/TD]
[TD]9[/TD]
[TD] [/TD]
[TD]11[/TD]
[/TR]
[TR]
[TD]Output[/TD]
[TD]476[/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]Percentage[/TD]
[TD]98.11%[/TD]
[TD]100%[/TD]
[TD]??[/TD]
[/TR]
</tbody>[/TABLE]


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,224,823
Messages
6,181,184
Members
453,020
Latest member
Mohamed Magdi Tawfiq Emam

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