Remember Me?

#1
July 9th 08, 06:39 AM posted to microsoft.public.excel.misc
 external usenet poster First recorded activity by ExcelBanter: Jul 2008 Posts: 1
averaging separate cells in excel excluding 0 values

Is it possible to average separate cells (i.e. H18,H22,H28,H30 and only
those cells, not columns) And have it display the average of those in B30?
mean while excluding all 0 values?

#2
July 9th 08, 09:33 AM posted to microsoft.public.excel.misc
 external usenet poster First recorded activity by ExcelBanter: Apr 2007 Posts: 11,501
averaging separate cells in excel excluding 0 values

Hi,

Try this

=AVERAGE(IF(ISNUMBER(MATCH(ROW(H1:H30),{18,22,28,3 0},0))*(H1:H300),H1:H30))

This an array which must be commited using Ctrl+Shift+Enter NOT by simply
pressing Enter. If you do it correctly Excel will put curly brackets {}
around the formula. you cannot type these yourself.

Mike

"Hopless & Challenged" wrote:

Is it possible to average separate cells (i.e. H18,H22,H28,H30 and only
those cells, not columns) And have it display the average of those in B30?
mean while excluding all 0 values?

#3
July 9th 08, 10:13 AM posted to microsoft.public.excel.misc
 external usenet poster First recorded activity by ExcelBanter: Apr 2007 Posts: 11,501
averaging separate cells in excel excluding 0 values

Ah,

You said exceluding 0 and not greater than zero so you need this slight
modification

=AVERAGE(IF(ISNUMBER(MATCH(ROW(H1:H30),{18,22,28,3 0},0))*(H1:H30<0),H1:H30))

Mike

"Mike H" wrote:

Hi,

Try this

=AVERAGE(IF(ISNUMBER(MATCH(ROW(H1:H30),{18,22,28,3 0},0))*(H1:H300),H1:H30))

This an array which must be commited using Ctrl+Shift+Enter NOT by simply
pressing Enter. If you do it correctly Excel will put curly brackets {}
around the formula. you cannot type these yourself.

Mike

"Hopless & Challenged" wrote:

Is it possible to average separate cells (i.e. H18,H22,H28,H30 and only
those cells, not columns) And have it display the average of those in B30?
mean while excluding all 0 values?

 Posting Rules Smilies are On [IMG] code is On HTML code is OffTrackbacks are On Pingbacks are On Refbacks are On

 Similar Threads Thread Thread Starter Forum Replies Last Post DaS Excel Worksheet Functions 2 June 17th 08 05:03 PM Farhad Excel Discussion (Misc queries) 3 May 29th 06 08:45 PM Glenda Excel Worksheet Functions 4 January 30th 06 04:22 PM n_gineer Excel Worksheet Functions 3 January 12th 06 03:32 PM neda5 Excel Discussion (Misc queries) 2 July 10th 05 11:59 PM

All times are GMT +1. The time now is 03:42 PM.