Rolling Average and Standard deviation over a range of days

Ren2014

New Member
Joined
Feb 19, 2018
Messages
1
Hello,
My goal is to find the coefficient of variation for eight days of measurements previous so I need to find the average and standard deviation. In my spreadsheet I have the date of the measurements from oldest to newest in column A and I have the measurements in column B. What makes it difficult is that there are not measurements for every day and some days have multiple measurements.

For the average I have tried =AVERAGEIF(A$4:A4,">=" & DATE(YEAR(A4),MONTH(A4),DAY(A4)-8),B$4:B4).
The problem with this is that it calculates the average over the last 8 calendar days and I need the average of the last 8 days that measurements were taken.
I have not found any solution for the standard deviation yet.
I would appreciate any help.
Thanks!

Here is a small section of the data.

Time of Measurement Measurement
7/26/2017 21:39 10.3
7/26/2017 21:40 5.4
7/26/2017 21:41 11.9
7/28/2017 21:53 10.5
7/28/2017 21:53 11.4
7/28/2017 21:54 11.2
7/30/2017 23:08 10
7/30/2017 23:09 10.5
7/30/2017 23:10 10.8
8/2/2017 23:55 9.4
8/2/2017 23:56 11
8/2/2017 23:57 10.5
8/5/2017 22:48 10.9
8/5/2017 22:48 11.3
8/5/2017 22:49 11.6
8/8/2017 23:26 10.6
8/8/2017 23:27 10.7
8/8/2017 23:28 11.3
8/10/2017 21:21 9.3
8/10/2017 21:22 11
8/10/2017 21:23 11.1
8/14/2017 21:44 11.2
8/14/2017 21:45 11.7
8/14/2017 21:46 11.1
 

Excel Facts

What is =ROMAN(40) in Excel?
The Roman numeral for 40 is XL. Bill "MrExcel" Jelen's 40th book was called MrExcel XL.

Forum statistics

Threads
1,223,268
Messages
6,171,100
Members
452,379
Latest member
IainTru

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
Back
Top