Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 12
Default AVERAGE last 4 Mondays?

I hope I am not coming to the well too often but the help people provide
here is incredible.

I have a data sheet that will not be seen by users. They input data daily
using a form. Column A has the date and B and C have numbers associated
with that particular date.

Data is entered daily but may always not be in order. The users are not
able to sort the sheet. Since data are entered daily the number of rows of
data will continue to grow over time.

Can someone suggest a formula that will look through all the data and show
the average for the last 4 mondays? I will need to do the same for each day
of the week.

Thank you :)

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11,501
Default AVERAGE last 4 Mondays?

Ted,

Not extensively test but seems ok. Dates in Col A and data in Col B. Note it
ignores any date in the future and any valid date if there are no data
entered in Col B. The formula as posted does the last 4 Sundays. Enter as an
ARRAY and drag down 6 cells for the other 6 days of the week

=AVERAGE(IF(WEEKDAY($A$1:$A$100)=ROW(A1),IF($A$1:$ A$100<=TODAY(),IF($A$1:$A$100TODAY()-28,IF($B$1:$B$100<"",$B$1:$B$100)))))

This is an array formula which must be entered by pressing CTRL+Shift+Enter
'and not just Enter. If you do it correctly then Excel will put curly brackets
'around the formula {}. You can't type these yourself. If you edit the formula
'you must enter it again with CTRL+Shift+Enter.
--
Mike

When competing hypotheses are otherwise equal, adopt the hypothesis that
introduces the fewest assumptions while still sufficiently answering the
question.


"Ted" wrote:

I hope I am not coming to the well too often but the help people provide
here is incredible.

I have a data sheet that will not be seen by users. They input data daily
using a form. Column A has the date and B and C have numbers associated
with that particular date.

Data is entered daily but may always not be in order. The users are not
able to sort the sheet. Since data are entered daily the number of rows of
data will continue to grow over time.

Can someone suggest a formula that will look through all the data and show
the average for the last 4 mondays? I will need to do the same for each day
of the week.

Thank you :)

.

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
Finding Mondays Tanya M Excel Discussion (Misc queries) 7 November 7th 08 07:30 PM
Counting Mondays in Date Range nospaminlich Excel Worksheet Functions 5 February 28th 08 05:41 PM
Count Mondays worked in Month harnagel Excel Worksheet Functions 2 December 8th 05 03:12 PM
Count Mondays worked in Month harnagel Excel Worksheet Functions 6 December 6th 05 09:02 AM
number of mondays in period nico Excel Discussion (Misc queries) 3 June 10th 05 02:07 AM


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

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

About Us

"It's about Microsoft Excel"