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

Copy a format multiple times
Select a formatted range. Double-click the Format Painter (left side of Home tab). You can paste formatting multiple times. Esc to stop
Hello,

So im on 2003 and have tried the iserror

=IF(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)))),"",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))))

However the computer wont even execute the formula it just high lights the ""

Completely puzzled ?

REgards

Ian
 
Upvote 0
Thanks everyone, ive come up with a hybred solution

Ive spilt the count part of the formula into another column, and added in the iserror into my formula

Thanks for your help and time

:-)

Ian
 
Upvote 0
Instead of ISERROR, try testing the countif for 0

=IF(count(if..)=0,"",sum(if..)/count(if..))
 
Last edited:
Upvote 0
If a 0 is acceptable instead of blank...
Give this a shot

Code:
=LOOKUP(9.99999999999999E307,CHOOSE({1,2},0,AVERAGE(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))))))

CTRL + SHIFT + ENTER
 
Upvote 0

Forum statistics

Threads
1,224,587
Messages
6,179,738
Members
452,940
Latest member
Lawrenceiow

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