Time Series Analysis VBA Transformation

WillRust

New Member
Joined
Jul 19, 2012
Messages
22
Hello!

I have data from two water pumps - the data is given in start/stop times for the pump activation.
So in column A I have dd/mm/yyyy hh:mm:ss and in column B; then "Start"/"Stop". So something like this for each pump...

30-Jul-11 01:22:42RUNNING
30-Jul-11 01:28:20STOPPED
30-Jul-11 05:46:39RUNNING
30-Jul-11 05:53:04STOPPED
30-Jul-11 07:09:30RUNNING
30-Jul-11 07:17:21STOPPED
30-Jul-11 08:04:34RUNNING
30-Jul-11 08:16:19STOPPED
30-Jul-11 08:58:56RUNNING
30-Jul-11 09:13:55STOPPED

<tbody>
</tbody>

<tbody>
</tbody>


I have this for two pumps (Pump A and Pump B) - each pump has its own pumping rate (Pump Rate A and Pump Rate B) (in litres / second) and in addition, when both pumps in operation at the same time, they pump with another pump rate (Pump Rate C).

Essentially I need to transform this data into a time series where each discrete time unit either has, Pump rate A, Pump Rate B, Pump Rate C or No Pump Active.

I also need a way of summing the total pumped volume between a given time period each day - so for the data available the total cumulative VOLUME (i.e. litres) pumped at each individual pump rate between 1am and 5am (or whatever time period is specified).

Any help / ideas would be much appreciated!!!

Cheers,
Will
 

Excel Facts

Ambidextrous Undo
Undo last command with Ctrl+Z or Alt+Backspace. If you use the Undo icon in the QAT, open the drop-down arrow to undo up to 100 steps.

Forum statistics

Threads
1,214,833
Messages
6,121,868
Members
449,053
Latest member
Mesh

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