Hi All,
I have recently started to write some vba/macro's to assist with calculating information at work to make my job easier. As such I do not know best practice and have just been managing to get stuff done through tedious trial and error until I find something that works.
I have a csv report that shows what the phone activity for all of our staff in our call centre.
The report has [Agent Name], [AgentState], [StartTime], [EndTime] columns. (It has other columns but I am not concerned about those)
For example.
Homer Simpson, WaitForCall, 08:00, 08:01
Homer Simpson, CallInbound, 08:01, 08:16
Homer Simpson, CallOnHold, 08:16, 08:18
Homer Simpson, CallInbound, 08:18, 08:19
Homer Simpson, WaitForCall, 08:19, 08:20
What I want to do is display current Workload (in seconds) for each 15-minute increment so I can see how we tracked throughout the day.
Workload is only CallInbound and CallOnHold time - not WaitForCall etc.
For example.
08:00 - 20,000
08:15 - 45,000
08:30 - 63,000
08:45 - 101,000
Now I am trying to figure out how to do this the best way without writing repetitive code for each and every 15-minute increment.
Now I don't know if my code below will make sense so please do ask questions if it will help to clarify.
Also if anyone has any advice or suggestions I am definitely keen to listen as I want to learn to do these kind of things so they run efficiently as well because I am working with >10,000 rows of data usually. Also if it's better to have an example spreadsheet attached let me know so I can create something to attach.
So far I have this (And I am sorry if it looks badly written as I am only learning this type of thing recently)
Please Login or Register to view this content.
Bookmarks