Tough One!

Status
Not open for further replies.

holzie

New Member
Joined
Apr 23, 2015
Messages
19
I have a data set that I am trying to calculate a moving average. In the below Data set is the date started, date ended, and value is the simply the number of days between those dates. The moving average I am trying get is a rolling 12 month average shown on a monthly basis. See column of 12 month rolling average that I have started to calculate manually. Any thoughts on how to do this more automatically?


Start DateEnd DateValueMonth/Year12 month Rolling Average
08Mar20074/4/200727Mar-0727
02May20079/6/2007127Apr-0727
28Feb20083/5/20086May-0727
29Feb20088/5/2008158Jun-0727
07Aug20088/25/200818Jul-0727
02Mar20093/4/20092Aug-0727
12Feb20094/7/200954Sep-07(27+127)/2=77
30Apr20105/19/201019Oct-0777
01Mar20106/7/201098Nov-0777
20Aug20109/9/201020Dec-0777
20Aug201010/15/201056Jan-0877
07Sep201010/22/201045Feb-0877
22Jun201011/29/2010160Mar-08(27+127+6)/3=53 All three values occurred in 12 month period.
16Nov201012/2/201016Apr-08(127+6)/2=66.5 The 27 value did not occur in 12 month period so it was excluded to derive new average.
18Jan20111/25/20117May-08
21Jan20112/7/201117Jun-08
25Jan20112/14/201120Jul-08
21Jan20112/18/201128Aug-08
16Mar20113/25/20119Sep-08
16Mar20113/25/20119Oct-08
04Dec20094/14/2011496Nov-08
01Apr20095/4/2011763Dec-08
07Sep20109/27/2011385Jan-09
27Jul201110/3/201168Feb-09
29Nov201012/5/2011371Mar-09

<tbody>
</tbody>
 

Some videos you may like

Excel Facts

What does custom number format of ;;; mean?
Three semi-colons will hide the value in the cell. Although most people use white font instead.
Status
Not open for further replies.

Watch MrExcel Video

Forum statistics

Threads
1,123,312
Messages
5,600,887
Members
414,414
Latest member
neil_c

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Top