LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,231
Default calculate average from non contiguous column, ignoring (0) values

Jesse wrote...
....
. . . I have a need to have 0 in a range of cells (instead of blank). . . .

....

There could be alternatives.

How can I create an Average formula that ignores cells with 0 value?


But in case there aren't alternatives, the most general way would be

=SUM((B2,B9,B16,B23))/INDEX(FREQUENCY((B2,B9,B16,B23),{0}),2)

If your value cells were always every 7th row beginning with row 2,
you could use an array formula like

=AVERAGE(IF(MOD(ROW(B2:B23),7)=2,IF(B2:B230,B2:B2 3)))

If you don't know what an array formula is, look for it in online Help.
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Summing Contiguous Values in a Column? Confused_in_Houston[_2_] Excel Discussion (Misc queries) 6 March 12th 10 09:51 AM
average of different cells ignoring zero values awais Excel Discussion (Misc queries) 1 June 14th 08 11:45 PM
how to calculate average value in a row ignoring values below "x" ed both Excel Discussion (Misc queries) 3 July 25th 07 05:56 PM
Calculate the average of numbers, ignoring multiple values Quintessence Excel Discussion (Misc queries) 2 May 30th 07 04:35 PM
average values in non-contiguous cells, ignoring 0 values RWormdahl Excel Worksheet Functions 3 October 30th 06 01:06 AM


All times are GMT +1. The time now is 12:31 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"