Averaging values that are a function of milliseconds of time to seconds of time

elaredo

New Member
Joined
Jun 12, 2018
Messages
2
I have data that was created every 100 or so milliseconds over 5 minutes (about 3k data points).

I want to average all data within a length of a second into a single data point.
Here is an example of the raw data vs the desired data.
577839d1528827288-averaging-values-that-are-a-function-of-milliseconds-of-time-to-seconds-of-time-table-example.png


There isn't a consistent amount of data points for each second (sometimes 9 sometimes 10).

Can this be done in excel?
 

Excel Facts

Format cells as date
Select range and press Ctrl+Shift+3 to format cells as date. (Shift 3 is the # sign which sort of looks like a small calendar).
Solution:

Highlight your data and make it into a table (Ctrl T) > Data > From Table (Above Get & Transform)

With the Time column selected, Transform > Extract > First characters > 8 > OK

With the Value column Selected > Transform > Group By > Group by: Time, New Column Name: Average, Operation: Average, Column: Value > OK

Home > Close & Load

Now, all that you have to do is add new data to the bottom of your table and click refresh then your PQ table will be updated.
 
Upvote 0

Forum statistics

Threads
1,215,523
Messages
6,125,317
Members
449,218
Latest member
Excel Master

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