Removing a #Div/0!

Mokolpop

New Member
Joined
Dec 8, 2010
Messages
20
Hello,

Im getting a #div/0! message from the below formula, the input range depending on the scenario, will in most instances always have part of the Input data missing, (This isnt an error its just how the data set will happen)

In the below formula is their something I can add to it that if a Div error message would be returned I can just add a zero ?

Kind Regards

Ian


=SUM(IF('Support Phase 1 Inputs'!$C$5:$C$128=$N100,IF('Support Phase 1 Inputs'!$D$5:$D$128=$O100,IF('Support Phase 1 Inputs'!$G$4:$Q$4=W$99,'Support Phase 1 Inputs'!N$5:N$128))))/COUNT(IF('Support Phase 1 Inputs'!$C$5:$C$128=$N100,IF('Support Phase 1 Inputs'!$D$5:$D$128=$O100,IF('Support Phase 1 Inputs'!$G$4:$Q$4=W$99,'Support Phase 1 Inputs'!N$5:N$128))))
 

Excel Facts

Select all contiguous cells
Pressing Ctrl+* (asterisk) will select the "current region" - all contiguous cells in all directions.
Hi,

You can use IFERROR to supress the error...

=IFERROR(SUM(IF('Support Phase 1 Inputs'!$C$5:$C$128=$N100,IF('Support Phase 1 Inputs'!$D$5:$D$128=$O100,IF('Support Phase 1 Inputs'!$G$4:$Q$4=W$99,'Support Phase 1 Inputs'!N$5:N$128))))/COUNT(IF('Support Phase 1 Inputs'!$C$5:$C$128=$N100,IF('Support Phase 1 Inputs'!$D$5:$D$128=$O100,IF('Support Phase 1 Inputs'!$G$4:$Q$4=W$99,'Support Phase 1 Inputs'!N$5:N$128)))) ,"")
 
Upvote 0
Hi,

Ive just tried it, so the formula becomes

=ISERROR(SUM(IF('Support Phase 1 Inputs'!$C$5:$C$128=$N100,IF('Support Phase 1 Inputs'!$D$5:$D$128=$O100,IF('Support Phase 1 Inputs'!$G$4:$Q$4=W$99,'Support Phase 1 Inputs'!N$5:N$128))))/COUNT(IF('Support Phase 1 Inputs'!$C$5:$C$128=$N100,IF('Support Phase 1 Inputs'!$D$5:$D$128=$O100,IF('Support Phase 1 Inputs'!$G$4:$Q$4=W$99,'Support Phase 1 Inputs'!N$5:N$128)))))

But now instead of the right value it returns a false answer.

Sorry for being daft ?

Regards

Ian
 
Upvote 0
Hi Mike,

So my formula becomes

=IFERROR(SUM(IF('Support Phase 1 Inputs'!$C$5:$C$128=$N100,IF('Support Phase 1 Inputs'!$D$5:$D$128=$O100,IF('Support Phase 1 Inputs'!$G$4:$Q$4=W$99,'Support Phase 1 Inputs'!N$5:N$128))))/COUNT(IF('Support Phase 1 Inputs'!$C$5:$C$128=$N100,IF('Support Phase 1 Inputs'!$D$5:$D$128=$O100,IF('Support Phase 1 Inputs'!$G$4:$Q$4=W$99,'Support Phase 1 Inputs'!N$5:N$128)))),"")

But now instead of the value it returns #name?

Sorry for being a pain

ian
 
Upvote 0
For Gecko's suggestion it needs to be...

=IF(ISERROR( Your Formula ),"",Your Formula)

If your using 2007 or onwards then go with mine.
 
Upvote 0
Excel 2007 onwards IFERROR exists...

=IFERROR( Your Formula, Desired Value if Error)

I'm assuming your on 2003?
 
Upvote 0

Forum statistics

Threads
1,224,586
Messages
6,179,730
Members
452,939
Latest member
WCrawford

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