ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Average (https://www.excelbanter.com/excel-worksheet-functions/221462-average.html)

S. Kissing

Average
 
I have 13 sheets, Jan - Dec and a total sheet. I want to average cells in
the Jan - Dec sheets. If I add my formula to the sheets then my average
counts each sheet (12) I know I can add if statements to divide by only the
shhets with valuses 0 in the cells however it is becoming very very
long...is there a short cut I am missing? Thanks

Shane Devenshire[_2_]

Average
 
Hi,

I'm not sure what the problem is but the basic formula would be:

=AVERAGE(Sheet2:Sheet12!A1)

If cell A1 of each sheet contains a formula which evaluates to 0 maybe you
could modify those formulas to return "" which will not be averaged.


--
If this helps, please click the Yes button

Cheers,
Shane Devenshire


"S. Kissing" wrote:

I have 13 sheets, Jan - Dec and a total sheet. I want to average cells in
the Jan - Dec sheets. If I add my formula to the sheets then my average
counts each sheet (12) I know I can add if statements to divide by only the
shhets with valuses 0 in the cells however it is becoming very very
long...is there a short cut I am missing? Thanks


Eduardo

Average
 
Hi,
try

=SUM(Sheet2:Sheet12!A1)/COUNTIF(Sheet2:Sheet12!A1,"0")

This will divided by the number of cells with values greater than 0, so if
you have a cell with no information it will not consider it

"S. Kissing" wrote:

I have 13 sheets, Jan - Dec and a total sheet. I want to average cells in
the Jan - Dec sheets. If I add my formula to the sheets then my average
counts each sheet (12) I know I can add if statements to divide by only the
shhets with valuses 0 in the cells however it is becoming very very
long...is there a short cut I am missing? Thanks



All times are GMT +1. The time now is 11:46 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com