Dear Excel Gurus,
I need your help and expertise for some formulas to calculate SLA time for our Helpdesk ticket.
I've some issue calculating between 2 dates and times with the following condition:
Working hours are from 08:00AM to 17:00PM
Lunch time: 12.00PM-13.00PM
1. Exclude Weekends
2. Within the Business hours of 08:00- 17:00 Monday to Friday
3. Exclude Public holiday(Holiday list)
The Formula i used
=(NETWORKDAYS(G2,H2,HolidayList)-1)*("17:00"-"08:00")+ IF(NETWORKDAYS(H2,H2),MEDIAN(MOD(H2,1),"17:00","08:00"),"17:00")- MEDIAN(NETWORKDAYS(G2,G2)*MOD(G2,1),"17:00","08:00")
But above formula failed to calculate If the ticket created after Working hour, closed ticket before Working hour started, calculate including Lunch time and other specific condition the result become 0:00 (hh:mm).
Sample 1:
G2: 5/12/20 17:05 PM
H2: 5/12/20 17:09 PM
Sample 2:
G2: 5/1/20 7:40 AM
H2: 5/4/20 17:16 PM
Sample 3:
G2: 5/20/20 17:39 PM
H2: 5/20/20 7:51 AM
For Sample 1- the formula still calculating the SLA by time consume even created and closed between non-working fours.
Sample 2, SLA will calculating by Working hours.
Sample 3, the SLA will set default total hour = 3hour.
Thank you very much...Please help.
Bookmarks