HOWTO: Calculate ticket resolution time considering Business Hours (excluding non-working hours, weekends and holidays)
By default, HappyFox Reports compute data taking into account the entire day for calculation of first response time, average response time etc.
To calculate the ticket resolution time, accounting only Business Hours, follow the below steps:
- Open the appropriate report under HappyFox --> Reports section
- Scroll down to the bottom of the report, ensure you are in Tabular View and click on the Export Excel option to export the report data as Excel.
- Open the Excel document
- Insert a new column between Last Closed At (column U) and Last Closed By (Column V). Once inserted, give the header as "Time to close in Business Hours".
- Go to cell BB2 and input your work schedule start time say 9:00 AM.
- Go to cell BB3 and input your work schedule end time say 6:00 PM.
- Add a list of holidays with exact dates (in dd-MMM-yyyy format) which should be excluded while calculating time to closure. Once this is done, select the all the cells where you have the holiday list and create a range named "Holidays" without the double quotes. Now the Excel sheet will look something like the screenshot shown below.
- Important Note: When you export the report, the date/time stamps are based on the timezone settings of the staff. This being the case, please ensure the work schedule Start Time and End time are based on the same time zone settings.
- Now go to first cell in column "Time to close in Business Hours" (cell V2) and insert the below formula
Where Y is "Last Closed at" column and L is "Created By".
- Now auto fill/copy & paste the formula to all the rows of the column.
- Format the entire "Time to close in Business Hours" (column V) with the custom format as [h]:mm as shown in the screenshot below.
- Now, you can see the column V filled with "Time to closure in business hours" for all the closed tickets (tickets with Last Closed At column filled).
Please find attached a sample Excel document which contains two rows with the "Time-to-closure in business hours" filled using the above steps.