Average in Multiple Sheets

Paiwand

New Member
Joined
Apr 14, 2018
Messages
7
Hello Dear.

I have an workbook which is consist of 13 sheets, starts form (Jan,Feb,Mar,...Dec) plus (Annual), at the Annual Sheet i would like to getting an cell's average which is exist in all sheets and its (D17) the average should exclude and unconsidered zero and blank. i have used the below formula but it doesn't work.

=AVERAGEIFS(Jan!D17;Feb!D17;Mar!D17;Apr!D17;May!D17;Jun!D17;Jul!D17;Aug!D17;Sep!D17;Oct!D17;Nov!D17;Dec!D17;"0%")

Please your kind help.

Best regards.
 

Excel Facts

Excel Joke
Why can't spreadsheets drive cars? They crash too often!
it seems work but its also consider 0 ! i want to exclude 0.

thanks a million for your prompt reply.
 
Upvote 0
If there are formulas in D17, have the formulas return a null string instead of a zero.
=IF(your_formula = 0, "", your_formula)

If D17 is just a numeric value, perhaps put a formula in another cell IF(D17=0,"",D17) then average those values.
 
Upvote 0
Hi,

I am using a similar construct
Code:
=[COLOR=#0000cd]SUM(First:Last!$C$10:$C$33)/MAX(1,INDEX(FREQUENCY(First:Last!$C$10:$C$33,0),2)[/COLOR])

It works until one of the cells has an error in it #DIV/0! Is there a way to modify this formula to ignore errors. I tried using AGGREGATE instead of SUM, but that did not work.
 
Last edited:
Upvote 0
Hi,

I am using a similar construct
Code:
=[COLOR=#0000cd]SUM(First:Last!$C$10:$C$33)/MAX(1,INDEX(FREQUENCY(First:Last!$C$10:$C$33,0),2)[/COLOR])

It works until one of the cells has an error in it #DIV/0! Is there a way to modify this formula to ignore errors. I tried using AGGREGATE instead of SUM, but that did not work.

Can't you rewrite the formula which causes this error?
 
Upvote 0
Although I generally know how to avoid such errors, unfortunately in this case, I can't do that as the sheet is password protected.
 
Upvote 0

Forum statistics

Threads
1,214,789
Messages
6,121,590
Members
449,039
Latest member
Arbind kumar

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