Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Janet T
 
Posts: n/a
Default Calculation using rolling 4 week amounts

Folks
A colleague has developed a spreadsheet into which he inputs numbers over 4
weeks. These numbers are added together and divided by 4 to give an average
amount. this average amount is used in a number of other calculations around
the spreadsheet.

Is it possible to write a formula which will automatically add the next
week's amount, and drop off the previous 4th week? If not, any ideas what
the best solution will be? He is currently changing everything manually.

Eg
weeks might be
31/10/05 07/11/05 14/11/05 21/11/05

how can he automatically drop off 31/10/05 and include 28/11/05.

Thanks for all your help
Janet
  #2   Report Post  
topola
 
Posts: n/a
Default Calculation using rolling 4 week amounts

That's simple.
A1:E1: DATES
A1:D1: Date1, Date2, Date3, Date4...
A2:D2: Val1, Val2, Val3, Val4...

$A$4=COUNT(A1:E1)-4 or
$A$4=COUNT(DATES)-4

Moving 4-Period Formula:
=SUM(OFFSET(A2,0,$A$4,1,4))

Remark: Insert New Column BEFORE last column which is E.
--
HTH
Tomek Polak, http://vba.blog.onet.pl

  #3   Report Post  
Posted to microsoft.public.excel.misc
Janet T
 
Posts: n/a
Default Calculation using rolling 4 week amounts

Thanks Topola - that was a great help :-)

"topola" wrote:

That's simple.
A1:E1: DATES
A1:D1: Date1, Date2, Date3, Date4...
A2:D2: Val1, Val2, Val3, Val4...

$A$4=COUNT(A1:E1)-4 or
$A$4=COUNT(DATES)-4

Moving 4-Period Formula:
=SUM(OFFSET(A2,0,$A$4,1,4))

Remark: Insert New Column BEFORE last column which is E.
--
HTH
Tomek Polak, http://vba.blog.onet.pl


  #4   Report Post  
Posted to microsoft.public.excel.misc
topola
 
Posts: n/a
Default Calculation using rolling 4 week amounts

I just saw it. Simpler method:
=SUM(OFFSET($E$2,0,-4,1,4))
Isn't Excel funny? TP

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
Moving week numbers Bob Excel Worksheet Functions 0 November 3rd 05 10:27 AM
Formula for If Term is on Certain Date then Count Krisjhn Excel Worksheet Functions 3 August 30th 05 07:57 PM
user defined function Brian Rogge Excel Worksheet Functions 5 May 23rd 05 06:21 PM
Line or bar graphs for tracking stocks profit and loss. Mocity Charts and Charting in Excel 1 January 21st 05 01:21 AM
I need week number in excell from a date, first week must be mini. jPeich Excel Discussion (Misc queries) 4 January 5th 05 01:21 AM


All times are GMT +1. The time now is 03:26 AM.

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"