VBA Excel / summing values by time window

jonas100

New Member
Joined
Feb 28, 2018
Messages
1
Hi, i am looking some advice to make a script in VBA.

I need to get some values summed in time frames that range from 5 seconds to 60 seconds from cells that are updating all the time with 10 to 50 updates per second.
Lets say that in 5 seconds I get the values 1 2 3 4 5 1 2 1 2 1 2. I would need a way to sum these values in a 5 second window and to get the value of 24. In the end of 5 seconds the process will restart to sum the next values in the next 5 seconds.
I would like to choose the time window above the cell I am getting the sums. Say the sums are running in C4 and in C3 I would put 5sec or 15sec to get sums of 5 second loops or 15 second loops.
An example in video
https://youtu.be/QF112qcya2o

Is this possible to do in VBA with good performance?
Many thanks
Jonas
 

Excel Facts

Copy a format multiple times
Select a formatted range. Double-click the Format Painter (left side of Home tab). You can paste formatting multiple times. Esc to stop

Forum statistics

Threads
1,223,888
Messages
6,175,205
Members
452,618
Latest member
Tam84

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