Hi, I get a report of chats handled by resources. The resources login in late PM hours and logout in next day morning however, there are some agents who login after midnight and logout in morning. They do take breaks during their shift and they can work on multiple chats at a time. I need to figure out what is the pure occupied time agents are spending on chats, removing all the breaks and any idle time. I've attached an excel sheet with sample data and desired output. Please let me know if you have any doubts. In the example below - the first chat of 11th Dec starts at 23:09 and ends at 23:49 and last chat of this day ends at 6:27 AM. Total chat length of the day is 5:47:54, total login time is 7:18:26, total break time is 1:56:16 and total engage time of the resource is (login time -break time) 5:22:10. If you can help with some formula or macro to make this calculation easy, that would be great.
Start Time | End Time | ResourceID |
12/11/2018 6:10 | 12/11/2018 6:28 | RC1 |
12/11/2018 6:19 | 12/11/2018 6:42 | RC1 |
12/11/2018 6:46 | 12/11/2018 6:56 | RC1 |
12/11/2018 23:09 | 12/11/2018 23:49 | RC1 |
12/12/2018 0:10 | 12/12/2018 0:28 | RC1 |
12/12/2018 0:20 | 12/12/2018 0:48 | RC1 |
12/12/2018 0:50 | 12/12/2018 1:28 | RC1 |
12/12/2018 2:46 | 12/12/2018 4:54 | RC1 |
12/12/2018 5:09 | 12/12/2018 6:27 | RC1 |
12/12/2018 5:10 | 12/12/2018 5:28 | RC1 |
12/12/2018 23:01 | 12/12/2018 23:51 | RC1 |
12/12/2018 23:56 | 12/13/2018 1:38 | RC1 |