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...

[TABLE="width: 500"]
<tbody>[TR]
[TD][TABLE="width: 230"]
<tbody>[TR]
[TD]30-Jul-11 01:22:42[/TD]
[TD]RUNNING[/TD]
[/TR]
[TR]
[TD]30-Jul-11 01:28:20[/TD]
[TD]STOPPED[/TD]
[/TR]
[TR]
[TD]30-Jul-11 05:46:39[/TD]
[TD]RUNNING[/TD]
[/TR]
[TR]
[TD]30-Jul-11 05:53:04[/TD]
[TD]STOPPED[/TD]
[/TR]
[TR]
[TD]30-Jul-11 07:09:30[/TD]
[TD]RUNNING[/TD]
[/TR]
[TR]
[TD]30-Jul-11 07:17:21[/TD]
[TD]STOPPED[/TD]
[/TR]
[TR]
[TD]30-Jul-11 08:04:34[/TD]
[TD]RUNNING[/TD]
[/TR]
[TR]
[TD]30-Jul-11 08:16:19[/TD]
[TD]STOPPED[/TD]
[/TR]
[TR]
[TD]30-Jul-11 08:58:56[/TD]
[TD]RUNNING[/TD]
[/TR]
[TR]
[TD]30-Jul-11 09:13:55[/TD]
[TD]STOPPED[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
</tbody>[/TABLE]


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

Lock one reference in a formula
Need 1 part of a formula to always point to the same range? use $ signs: $V$2:$Z$99 will always point to V2:Z99, even after copying

Forum statistics

Threads
1,223,162
Messages
6,170,431
Members
452,326
Latest member
johnshaji

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