Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
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 |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
how to automatically delete non-contiguous rows | Excel Discussion (Misc queries) | |||
Macro to repeat 2 contiguous rows to top of each page | Excel Discussion (Misc queries) | |||
Selecting a group of contiguous rows | Excel Discussion (Misc queries) | |||
total column amounts from non-contiguous rows | Excel Discussion (Misc queries) | |||
Averageing Costs | Excel Discussion (Misc queries) |