I've got a data series with timestamps. e.g.
change date time elapsed
24/07/2011 16:35:20
26/07/2011 11:09:19 42:33:59
26/07/2011 11:09:27 0:00:08
28/07/2011 19:31:12 56:21:45
28/07/2011 19:31:16 0:00:04
29/07/2011 07:25:03 11:53:47
to calculate the elapsed time between two timestamps is easy enough, but now I'd have to split the elapsed time to two componenets - time elapsed in peak time (6:00 - 22:00), and off-peak time (22:00-6:00). I've been looking around, but found only solutions events happening on the same day.
Any ideas? I'm open to VBA solution as well
change date time elapsed
24/07/2011 16:35:20
26/07/2011 11:09:19 42:33:59
26/07/2011 11:09:27 0:00:08
28/07/2011 19:31:12 56:21:45
28/07/2011 19:31:16 0:00:04
29/07/2011 07:25:03 11:53:47
to calculate the elapsed time between two timestamps is easy enough, but now I'd have to split the elapsed time to two componenets - time elapsed in peak time (6:00 - 22:00), and off-peak time (22:00-6:00). I've been looking around, but found only solutions events happening on the same day.
Any ideas? I'm open to VBA solution as well