?
Solved

Rolling average by site

Posted on 2014-02-12
2
Medium Priority
?
224 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 2000 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: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone 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

Access developers frequently have requirements to interact with Excel (import from or output to) in their applications.  You might be able to accomplish this with the TransferSpreadsheet and OutputTo methods, but in this series of articles I will di…
This article describes how to use a set of graphical playing cards to create a Draw Poker game in Excel or VB6.
This Micro Tutorial demonstrate the bugs in Microsoft Excel for Mac with Pivot Charts.
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

862 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