Solved

Rolling average by site

Posted on 2014-02-12
2
205 Views
Last Modified: 2014-02-12
For each unique SiteID listed in column B of the attached Excel sheet, I would like to generate 7-day rolling averages of the data found in columns E, F and G.

I have manually generated the 7-day rolling averages for the first two sites (04CEF-1 and 04COK-1) in columns H, I, and J. The next set of 7-day averages should begin in row 189 (as indicated in the attached spreadsheet).

I am hoping for a solution that will automate the process of generating the 7-day rolling averages by SiteID.

Most of the SiteIDs have 92 days of data, however, this is not always the case so the solution should be able to accommodate varying data counts for each SiteID.

Many thanks in advance for any solutions!
rollingavg.xlsx
0
Comment
Question by:dougf1r
2 Comments
 
LVL 50

Accepted Solution

by:
barry houdini earned 500 total points
ID: 39854765
Try using this formula in H5 copied down and across

=IF(COUNTIF($B2:$B8,$B2)=7,AVERAGE(E2:E8),"")

see attached

regards, barry
rollingavg-barry.xlsx
0
 
LVL 1

Author Comment

by:dougf1r
ID: 39854919
Works great. Many thanks!
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Workbook link problems after copying tabs to a new workbook? David Miller (dlmille) Intro Have you either copied sheets to a new workbook, and after having saved and opened that workbook, you find that there are links back to the original sou…
This article descibes how to create a connection between Excel and SAP and how to move data from Excel to SAP or the other way around.
Graphs within dashboards are meant to be dynamic, representing data from a period of time that will change each time the dashboard is updated with new data. Rather than update each graph to point to a different set within a static set of data, t…
This Micro Tutorial will demonstrate in Microsoft Excel how to add style and sexy appeal to horizontal bar charts.

828 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question