Hi All,
I usually think with enough googling and time I can my head round most issues but this one has me a bit stumped.
I have a log of recording status On/Off (could have other states too) with the start and end time. E:G
I would like to Sum the total time 'ON' during the interval in column A and B -
With just one time period i.e 8:00-9:00 I can do it on the lines in the log by making an adjustments to the start and end time based on the criteria, I suppose I could have a column for each period with an upper and lower criteria for each column...but that seems a messy solution.
So for example in the data below C4 = 00:42 C5 = 00:30 as it is only on for 30min between 9:00-10:00
Any help or pointers in the right direction would be greatly appreciated
Many thanks
I usually think with enough googling and time I can my head round most issues but this one has me a bit stumped.
I have a log of recording status On/Off (could have other states too) with the start and end time. E:G
I would like to Sum the total time 'ON' during the interval in column A and B -
With just one time period i.e 8:00-9:00 I can do it on the lines in the log by making an adjustments to the start and end time based on the criteria, I suppose I could have a column for each period with an upper and lower criteria for each column...but that seems a messy solution.
So for example in the data below C4 = 00:42 C5 = 00:30 as it is only on for 30min between 9:00-10:00
Sum Times.xlsx | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
A | B | C | D | E | F | G | H | |||
1 | Interval | 01:00 | ||||||||
2 | Status | Ac Start | Ac End | Duration | ||||||
3 | Start | End | Duration On | ON | 08:15 | 08:57 | 00:42 | |||
4 | 08:00 | 09:00 | OFF | 08:57 | 09:30 | 00:33 | ||||
5 | 09:00 | 10:00 | ON | 09:30 | 10:50 | 01:20 | ||||
6 | 10:00 | 11:00 | OFF | 10:50 | 11:10 | 00:20 | ||||
7 | 11:00 | 12:00 | ON | 11:10 | 12:00 | 00:50 | ||||
8 | 12:00 | 13:00 | OFF | 12:00 | 13:00 | 01:00 | ||||
9 | 13:00 | 14:00 | ON | 13:00 | 18:00 | 05:00 | ||||
10 | 14:00 | 15:00 | ||||||||
11 | 15:00 | 16:00 | ||||||||
12 | 16:00 | 17:00 | ||||||||
13 | 17:00 | 18:00 | ||||||||
Sheet1 (3) |
Any help or pointers in the right direction would be greatly appreciated
Many thanks