Hi, been really struggling with this one - I've got a few records that are listed in time order and by company ID, I need to group them together by company and consecutive minutes to total up the count of minutes, so that if there's an entry for 3 consecutive minutes, the first record of the three will show 3, the second 2 etc. Here's an example of what I'm looking for
Company ID Time Duration
AAA 13:09 3
AAA 13:10 2
AAA 13:11 1
BBB 15:04 1
BBB 15:32 1
CCC 18:25 2
CCC 18:26 1
DDD 20:05 4
DDD 20:06 3
DDD 20:07 2
DDD 20:08 1
EEE 22:35 1
Hope this is clear enough, any help with be gratefully received.
Thanks
Company ID Time Duration
AAA 13:09 3
AAA 13:10 2
AAA 13:11 1
BBB 15:04 1
BBB 15:32 1
CCC 18:25 2
CCC 18:26 1
DDD 20:05 4
DDD 20:06 3
DDD 20:07 2
DDD 20:08 1
EEE 22:35 1
Hope this is clear enough, any help with be gratefully received.
Thanks