Rolling Averages in Excel?
May 21, 2006 8:51 AM
Subscribe
Excelfilter: how do I compute a rolling seven-day average for something that happens at sporadic intervals?
I keep an exercise log and I'd like to have both entries for how much I'm swimming as well as how much swimming I've done in the preceding seven days [not like a Sunday to Saturday week, just the last seven days] and how it compares to previous seven day increments. I swim four out of seven days on no particular schedule. My spreadsheet, such as it is, looks like this, with about seven months of data.
Date Laps
1/2/06 17
1/3/06 27
1/6/06 24
. .
. .
. .
I've got a chart with daily values over time and a trendline. I'd really like to be able to figure out how to make a chart with just seven day averages, but I'm not sure how to go about it. Most of the examples I've seen are for things where there are regular data elements that need to be dealt with, like daily revenues. I'm good with spreadsheets in general, but not super smart with functions so the more explanation the better where functions are involved. Thanks.
posted by jessamyn to computers & internet (21 comments total)
If you don't have the Data Analysis option, or want a way to do it while you're still gathering your data, I might make a new column of data called "Moving average" next to "Laps". Its entries would look like (assuming your data really starts in cell B2)
=Average(B2:B8). Copying and pasting that formula into each successive cell in the row will get you your moving average.posted by boo_radley at 9:05 AM on May 21, 2006