View Single Post
  #3   Report Post  
Posted to microsoft.public.excel.misc,microsoft.public.excel
Gary''s Student Gary''s Student is offline
external usenet poster
 
Posts: 11,058
Default Average Non-consecutive Cells

AVERAGE() ignores blanks, but includes zeros. Change the quarter formulas to
something like:

=IF(old_quarter_formula=0,"",old_quarter_formula)

The yearly average will not be skewed by incomplete data. By the way, you
can do something similar for the quarter formulas themselves.
--
Gary''s Student - gsnu2007g


" wrote:

Been trying to figure this one out...

I track several parameters month/quarterly/annually in this fashion:

| Jan | Feb | Mar | Q1 | Apr | May | Jun | Q2 | Jul | Aug | Sep | Q3 |
Oct | Nov | Dec | Q4 | Annual |

In the monthly columns, I have values linked from another spreadsheet.
The Quarterly columns are the average of the preceding three months.
This part works fine with {=AVERAGE(IF(A154:C154<0,A154:C154,0))} in
Q1 for example. I use the array to eliminate a skew by future numbers,
i.e., it only averages non-zero cells.

Here's my quandary - to get the same functionality in the "Annual"
column, currently I'm placing the values from Q1,Q2, Q3 and Q4 in
contiguous cells elsewhere in the spreadsheet and using the same type
of array formula in the "Annual" cell on that block.

Is there a way to eliminate this step? The current setup just doesn't
seem elegant to me. I can't seem to figure out a formula that I can
place in "Annual" that will average the non-zero values from Q1,Q2, Q3
and Q4 since they aren't consecutive cells.

Thanks in advance...

Dave