Error proof Average?

dwgnome

Active Member
Joined
Dec 18, 2005
Messages
441
Hi,

Trying to average column of numbers based on a monthly basis. The date column B is in ascending order, data to average is in column D. The formula I am using in G7 is:

=SUMPRODUCT(--(MONTH($B$7:$B$58)=MONTH(F7))*(ISNUMBER($B$7:$B$58)),--(ISNUMBER($D$7:$D$58)),$D$7:$D$58)/IF(SUMPRODUCT(--(MONTH($B$7:$B$58)=MONTH(F7))*(ISNUMBER($B$7:$B$58)),--(ISNUMBER($D$7:$D$58)))=0,1,SUMPRODUCT(--(MONTH($B$7:$B$58)=MONTH(F7))*(ISNUMBER($B$7:$B$58)),--(ISNUMBER($D$7:$D$58))))


Where F7 is 1/1/2010, F8 is 2/1/2010 etc.

I need the formula to ignore displayed errors (#NAME?, #VALUE! and #DIV/0!) within the data in column D.

=SUMIF( $D$7:$D$58,"<>#NAME?" ) works but I need for all errors and to be included somehow in my original formula above.

Thanks.
 

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