Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
jd jd is offline
external usenet poster
 
Posts: 91
Default Average weekly maximum

A1-A31 corresponds to days of the month. 3 to 4 times a week lab data is
entered into the corresponding cells B1-B31, some are less than values (<2).
I want to calculate the maximum weekly average, i.e. the highest value of the
4 or so weekly averages and put it at the bottom of the column. I don't want
a column or cell of weekly averages and the <2 values should be counted as 2.

A1 2
A2 2
A3
A4
A5
A6 <2


A8 6
A9
A10 2
A11
A12 <2
A13
A14 2

Answer = 3 (for this 2 week period)

Thanks

--
JD
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 793
Default Average weekly maximum

Your question is not clear.

What I got -
If value is <2 then take it as 2...
take average of values for days 1-7, 8-14, 15-21, 22-29 and then find the
maximum of these four values, right?

"JD" wrote:

A1-A31 corresponds to days of the month. 3 to 4 times a week lab data is
entered into the corresponding cells B1-B31, some are less than values (<2).
I want to calculate the maximum weekly average, i.e. the highest value of the
4 or so weekly averages and put it at the bottom of the column. I don't want
a column or cell of weekly averages and the <2 values should be counted as 2.

A1 2
A2 2
A3
A4
A5
A6 <2


A8 6
A9
A10 2
A11
A12 <2
A13
A14 2

Answer = 3 (for this 2 week period)

Thanks

--
JD

  #3   Report Post  
Posted to microsoft.public.excel.misc
jd jd is offline
external usenet poster
 
Posts: 91
Default Average weekly maximum

That is correct. But I do not want to include an extra column in my
spreadsheet for the weekly averages. Any help is greatly appreciated.
--
JD


"Sheeloo" wrote:

Your question is not clear.

What I got -
If value is <2 then take it as 2...
take average of values for days 1-7, 8-14, 15-21, 22-29 and then find the
maximum of these four values, right?

"JD" wrote:

A1-A31 corresponds to days of the month. 3 to 4 times a week lab data is
entered into the corresponding cells B1-B31, some are less than values (<2).
I want to calculate the maximum weekly average, i.e. the highest value of the
4 or so weekly averages and put it at the bottom of the column. I don't want
a column or cell of weekly averages and the <2 values should be counted as 2.

A1 2
A2 2
A3
A4
A5
A6 <2


A8 6
A9
A10 2
A11
A12 <2
A13
A14 2

Answer = 3 (for this 2 week period)

Thanks

--
JD

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default Average weekly maximum

There is no "elegant" way to do this.

Without using a helper column you'd need to use an array formula** something
like this:

=MAX(formula_week1,formula_week2,formula_week3,for mula_week4,formula_week5)

And each weekly formula would look like this (adjusting the range for each
week):

IF(COUNTA(B1:B7),AVERAGE(IF(B1:B7<"",--MID(B1:B7,(LEFT(B1:B7)="<")+1,10))),0)

So, imagine what 5 of those strung together will look like!

If I were you I'd use a helper column and put this array formula** in C7,
C14, C21, C28 and C31:

=IF(COUNTA(B1:B7),AVERAGE(IF(B1:B7<"",--MID(B1:B7,(LEFT(B1:B7)="<")+1,10))),0)

Then use:

=MAX(C1:C31)

** array formulas need to be entered using the key combination of
CTRL,SHIFT,ENTER (not just ENTER)


--
Biff
Microsoft Excel MVP


"JD" wrote in message
...
That is correct. But I do not want to include an extra column in my
spreadsheet for the weekly averages. Any help is greatly appreciated.
--
JD


"Sheeloo" wrote:

Your question is not clear.

What I got -
If value is <2 then take it as 2...
take average of values for days 1-7, 8-14, 15-21, 22-29 and then find the
maximum of these four values, right?

"JD" wrote:

A1-A31 corresponds to days of the month. 3 to 4 times a week lab data
is
entered into the corresponding cells B1-B31, some are less than values
(<2).
I want to calculate the maximum weekly average, i.e. the highest value
of the
4 or so weekly averages and put it at the bottom of the column. I don't
want
a column or cell of weekly averages and the <2 values should be counted
as 2.

A1 2
A2 2
A3
A4
A5
A6 <2


A8 6
A9
A10 2
A11
A12 <2
A13
A14 2

Answer = 3 (for this 2 week period)

Thanks

--
JD



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
average daily counts to weekly counts Dave Excel Discussion (Misc queries) 0 June 17th 08 06:24 PM
Find monthly average but have average automatically configured kimbafred Excel Discussion (Misc queries) 2 August 8th 07 12:28 AM
Weekly average in pivot Max Stenbäck Excel Worksheet Functions 6 July 17th 07 01:26 PM
with weekly score sheet how do I column a weekly progressive aver. tom Excel Worksheet Functions 2 September 21st 06 08:13 AM
How to calculate the cumulative weekly average over several wksht Amy Excel Discussion (Misc queries) 0 September 16th 05 05:13 PM


All times are GMT +1. The time now is 06:08 AM.

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"