#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3
Default Rolling Averages

I have an excel spread sheet in column A I have week commencing dates for a
whole year and column B contains the sales data for each of these weeks. I
need excel to give me a continual rolling average for the latest 4 weeks
entered, so that when I enter another week the first week "drops" out and a
new average is calculated.
I am being told that this enters into the realms of programming and nearly
impossible to do! Can anyone help?

Charlotte
X
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default Rolling Averages

This will average the last 4 numbers in column B assuming the data is
entered as a contiguous block. Numbers start in cell B2.

=IF(COUNT(B:B)<4,"",AVERAGE(OFFSET(B2,COUNT(B:B)-1,,-4)))

If there aren't at least 4 numbers to average the formula returns a blank
cell.

--
Biff
Microsoft Excel MVP


"Charliechoo" wrote in message
...
I have an excel spread sheet in column A I have week commencing dates for a
whole year and column B contains the sales data for each of these weeks. I
need excel to give me a continual rolling average for the latest 4 weeks
entered, so that when I enter another week the first week "drops" out and
a
new average is calculated.
I am being told that this enters into the realms of programming and nearly
impossible to do! Can anyone help?

Charlotte
X



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 860
Default Rolling Averages

Hi Charlotte

Assuming your data starts in row 2
Put this in C5
=AVERAGE(B2:B5)
and drag it down as far as needed, the cell references
will update as you drag.

If you want to drag it past the end of your data to allow for
future input use
=IF(B5="","",AVERAGE(B2:B5)

HTH
Martin


"Charliechoo" wrote in message
...
I have an excel spread sheet in column A I have week commencing dates for a
whole year and column B contains the sales data for each of these weeks. I
need excel to give me a continual rolling average for the latest 4 weeks
entered, so that when I enter another week the first week "drops" out and
a
new average is calculated.
I am being told that this enters into the realms of programming and nearly
impossible to do! Can anyone help?

Charlotte
X



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
Dynamic reporting rolling averages Newbee Excel Worksheet Functions 2 January 2nd 07 08:27 PM
rolling dustin Excel Worksheet Functions 2 August 3rd 06 10:17 PM
Need help creating 3-month rolling averages... Chunklet Excel Discussion (Misc queries) 1 May 18th 06 08:32 AM
Rolling 3 mth Average dallin Excel Worksheet Functions 1 November 22nd 05 04:10 PM
Z Chart i.e. top rolling annual bottom rolling monthly middle cum. wat prin Excel Worksheet Functions 0 January 28th 05 03:43 PM


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