Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11
Default AVERAGEing non contiguous rows

Hi,

I have a spreadsheet where the rows are labelled in a repeating sequence
Mon, Tue, Wed, Thu, Fri - the first row (Mon) is 118 and the last row (Fri)
is 1007. There are then a number of columns (C thru T) with numeric values
relating to each respective weekday. I want an expression that will allow me
to average the non zero entries for each weekday. Having read other posts, I
tried
=AVERAGE(IF(MOD(ROW(C$118:C$1007),5)=0,IF(C$118:C$ 10070,C$118:C$1007))) but
the results don't look right - can anyone spot where I'm going wrong?
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11
Default AVERAGEing non contiguous rows

PS. I entered the formula with Ctrl + Shift + Enter

"Mike McLellan" wrote:

Hi,

I have a spreadsheet where the rows are labelled in a repeating sequence
Mon, Tue, Wed, Thu, Fri - the first row (Mon) is 118 and the last row (Fri)
is 1007. There are then a number of columns (C thru T) with numeric values
relating to each respective weekday. I want an expression that will allow me
to average the non zero entries for each weekday. Having read other posts, I
tried
=AVERAGE(IF(MOD(ROW(C$118:C$1007),5)=0,IF(C$118:C$ 10070,C$118:C$1007))) but
the results don't look right - can anyone spot where I'm going wrong?

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default AVERAGEing non contiguous rows

Not sure what result you expect but your formula will average those cells
where the row is divisible by 5: C120, C125, C130, C135, C140 etc and the
value is 0.

--
Biff
Microsoft Excel MVP


"Mike McLellan" wrote in message
...
Hi,

I have a spreadsheet where the rows are labelled in a repeating sequence
Mon, Tue, Wed, Thu, Fri - the first row (Mon) is 118 and the last row
(Fri)
is 1007. There are then a number of columns (C thru T) with numeric
values
relating to each respective weekday. I want an expression that will allow
me
to average the non zero entries for each weekday. Having read other
posts, I
tried
=AVERAGE(IF(MOD(ROW(C$118:C$1007),5)=0,IF(C$118:C$ 10070,C$118:C$1007)))
but
the results don't look right - can anyone spot where I'm going wrong?



Reply
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
how to automatically delete non-contiguous rows Hucleberry Hound Excel Discussion (Misc queries) 2 June 28th 12 04:14 PM
Macro to repeat 2 contiguous rows to top of each page jwmbem Excel Discussion (Misc queries) 2 March 9th 08 03:23 AM
Selecting a group of contiguous rows jfg Excel Discussion (Misc queries) 1 August 7th 07 07:34 AM
total column amounts from non-contiguous rows Irving Excel Discussion (Misc queries) 3 April 18th 07 02:44 AM
Averageing Costs Harlan Excel Discussion (Misc queries) 2 March 5th 07 05:09 AM


All times are GMT +1. The time now is 02:01 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"