Good Morning
I am attempting to help a colleague with a report for work. I'm attaching a file with the data as it is exported from our system as well as after making some slight changes to simplify. What we are looking for is a way to calculate productive vs non productive hours per employee. The problem I'm running into is that the report is different every week based on the non productive codes that are used. Some weeks some codes are used, some are not, some are used more than others etc etc - so each week there are a different number of rows for each employee. I need a formula or macro that can be ran manually that will calculate and output the productive vs non productive hours. Some details regarding the attached spreadsheet:
Tab 1: Raw Data - this is the data in it's raw form when it is exported from our Cisco system. Important columns are - The first column which contains employee names, the fourth column which contains telephone activity codes, and the fifth column which contains the duration for each preceding code.
Tab 2: Formatted Data - this is the data after a macro is ran to simplify the reason codes from column four. It is simply changing the verbiage from the actual activity code to Productive or Non-Productive. I thought that this would be the best way to accomplish the goal as we have several available reason codes that employees can use.
What we would like to see is a macro/formula that can be manually ran and will output something in the format of:
Bunny, Bugs Productive - h:mm:ss
Bunny, Bugs Non-Productive - h:mm:ss
Either on the same worksheet or on a new tab would be fine as we're just using that data in a pivot table for a different workbook.
The actual report that we export has some 1-250 employees and their activities listed. I just attached a simple example, but can upload a more detailed report if necessary.
Any help is much appreciated. Thank you!
Bookmarks