SLA Time Calculation

Muka

New Member
Joined
May 20, 2022
Messages
10
Office Version
  1. 365
  2. 2016
Need SLA Hour calculation base on created date and Resolved date.
1. Holiday given
2. Weekend given
3. SLA Priority and TAT hour given.

CREATION DATEMODIFY DATECLOSING TIMELAST REPLIER NAMERESOLVED DATEPrioritySLA HourHoliday
02/08/2024​
Weekend HolidaySaturday and Sunday
06/08/2024 11:11​
########​
06/08/2024 11:11​
westsaathi@gmail.com
06/08/2024 11:11​
P4HH:MM:SS
06/08/2024 11:00​
########​
06/08/2024 11:04​
06/08/2024 11:04​
P1
06/08/2024 10:16​
########​
06/08/2024 10:31​
06/08/2024 10:31​
P1SLAHour
06/08/2024 09:53​
########​
06/08/2024 09:57​
06/08/2024 09:57​
P1P1
4​
06/08/2024 09:45​
########​
06/08/2024 09:49​
06/08/2024 09:49​
P1P2
8​
05/08/2024 20:01​
########​
-ramanjeet.singh
06/08/2024 10:47​
P3P3
32​
05/08/2024 20:00​
########​
-rahul.das
06/08/2024 10:45​
P3P4
48​
05/08/2024 19:41​
########​
-ramanjeet.singh
06/08/2024 10:48​
P3
05/08/2024 17:10​
########​
05/08/2024 17:18​
05/08/2024 17:18​
P1
05/08/2024 17:07​
########​
05/08/2024 17:19​
05/08/2024 17:19​
P4
05/08/2024 17:01​
########​
05/08/2024 17:01​
westsaathi@gmail.com
05/08/2024 17:01​
P1
05/08/2024 15:29​
########​
-
05/08/2024 15:36​
P4
05/08/2024 14:58​
########​
05/08/2024 15:06​
Panja enterprises
05/08/2024 15:06​
P4
05/08/2024 14:52​
########​
05/08/2024 14:57​
westsaathi@gmail.com
05/08/2024 14:57​
P4
05/08/2024 14:30​
########​
-lalit.thakur
05/08/2024 14:49​
P3
05/08/2024 14:06​
########​
05/08/2024 14:40​
05/08/2024 14:40​
P3
05/08/2024 13:45​
########​
-
05/08/2024 15:02​
P4
05/08/2024 13:43​
########​
-
05/08/2024 15:02​
P4
05/08/2024 13:11​
########​
05/08/2024 15:40​
Danbahua
05/08/2024 15:40​
P1
05/08/2024 13:09​
########​
-pankaj.kumar
05/08/2024 14:46​
P3
05/08/2024 12:45​
########​
05/08/2024 12:45​
westsaathi@gmail.com
05/08/2024 12:45​
P1
05/08/2024 12:34​
########​
-rajanikant.tripathi
05/08/2024 12:55​
P3
05/08/2024 12:30​
########​
05/08/2024 12:37​
05/08/2024 12:37​
P1
05/08/2024 12:23​
########​
05/08/2024 14:05​
05/08/2024 14:05​
P4
05/08/2024 11:58​
########​
05/08/2024 11:58​
westsaathi@gmail.com
05/08/2024 11:58​
P1
 

Attachments

  • SLA Detailpng.png
    SLA Detailpng.png
    52.7 KB · Views: 19

Excel Facts

Ambidextrous Undo
Undo last command with Ctrl+Z or Alt+Backspace. If you use the Undo icon in the QAT, open the drop-down arrow to undo up to 100 steps.
Can you explain in more detail how the SLA hours should be calculated? What does the P1-P4 mean? That you work 48 h per day on the proyect for P4 for example?
Is this example data correct? For row 1 you have a proyect completed in 0 hours (creation and resolve datetimes are the same).
 
Upvote 0
Can you explain in more detail how the SLA hours should be calculated? What does the P1-P4 mean? That you work 48 h per day on the proyect for P4 for example?
Is this example data correct? For row 1 you have a proyect completed in 0 hours (creation and resolve datetimes are the same).
Our Business Working Hour is 12 hour. For P1 i.e Priority 1 it is 4 Hr it mean ticket should close in 4 hour. If it is not it ment Not Achived. If ticket resolved within 4 hour then Achived. Similarly it is for P2 ,P3 and P4. For P2 it is 8 hour For P3 it is 32 hour and For P4 it is 48 hour.
 
Upvote 0
Thanks for the response. Let me get this straight.
So you calculate SLA Hours, as the time from "CREATION DATE" to "RESOLVE DATE" excluding holidays and weekends.
And then in another column you want to show/calculate if the ticket is resolved comparing the SLA hours with the hour per priority, that is if for example it is P4 and SLA Hours is 4 hours or greater, then it should return a true (or some text)?
 
Upvote 0
How about this?:
I'm assuming that working hours are from 8:00 to 20:00 (which can be adjusted in the formula).

Book9.xlsx
ABCDEFGHIJKLMN
1CREATION DATEMODIFY DATECLOSING TIMELAST REPLIER NAMERESOLVED DATEPrioritySLA HourTicket ResolvedHolidaySLAHour
22024-08-06 11:11westsaathi@gmail.com2024-08-06 11:11P40:00FALSE02/08/2024P14
32024-08-06 11:002024-08-06 15:04P14:04TRUEP28
42024-08-06 10:162024-08-06 10:31P10:15FALSEP332
52004-08-06 09:532024-08-06 09:57P10:00FALSEP448
62004-08-06 09:452024-08-06 09:49P10:00FALSE
72004-08-05 00:01ramanjeet.singh2024-08-06 10:47P30:00FALSE
82004-08-05 00:00rahul.das2024-08-06 10:45P30:00FALSE
92004-08-05 19:41ramanjeet.singh2024-08-06 10:48P30:00FALSE
102004-08-05 17:102024-08-05 17:18P10:00FALSE
112004-08-05 17:072024-08-05 17:19P40:00FALSE
122004-08-05 17:01westsaathi@gmail.com2024-08-05 17:01P10:00FALSE
132024-08-05 15:292024-08-05 15:36P40:07FALSE
142004-08-05 14:58Panja enterprises2024-08-05 15:06P40:00FALSE
152004-08-05 14:05westsaathi@gmail.com2024-08-05 14:57P40:00FALSE
162004-08-05 14:30lalit.thakur2024-08-05 14:49P30:00FALSE
172004-08-05 14:062024-08-05 14:40P30:00FALSE
182004-08-05 13:452024-08-05 15:02P40:00FALSE
192004-08-05 13:432024-08-05 15:02P40:00FALSE
202004-08-05 13:11Danbahua2024-08-05 15:40P10:00FALSE
212004-08-05 13:09pankaj.kumar2024-08-05 14:46P30:00FALSE
222004-08-05 01:45westsaathi@gmail.com2024-08-05 12:45P10:00FALSE
232004-08-05 01:34rajanikant.tripathi2024-08-05 12:55P30:00FALSE
242004-08-05 01:302024-08-05 12:37P10:00FALSE
252004-08-05 01:032024-08-05 14:05P40:00FALSE
262004-08-05 11:58westsaathi@gmail.com2024-08-05 11:58P10:00FALSE
Sheet3
Cell Formulas
RangeFormula
G2:H26G2=LET(s, A2, e, E2, n, ROUND((e-s)/TIME(0,1,0),0), se, VALUE(TEXT(SEQUENCE(n,,s, TIME(0,1,0)), "yyyy-mm-dd hh:mm")), se_time, VALUE(TEXT(MOD(se, 1), "hh:mm")), isWorkingDay, WORKDAY(se-1, 1, Holiday) = INT(se), isWorkingTime, (se_time >= VALUE("08:00"))*(se_time < VALUE("20:00")), workedMinutes, SUM(isWorkingDay*isWorkingTime), workedHours, MROUND(workedMinutes/60, TIME(0,1,0)), workedTime, workedMinutes/24/60, ticketHours, XLOOKUP(F2, $M$2:$M$5, $N$2:$N$5), ticketResolved, workedHours >= ticketHours, IFERROR(HSTACK(workedTime, ticketResolved), {0,FALSE}) )
Dynamic array formulas.
Named Ranges
NameRefers ToCells
Holiday=Sheet3!$K$2:$K$5G2:G26


I'm not sure that is what you need, but it is a starting point.
 
Last edited:
Upvote 0

Forum statistics

Threads
1,221,310
Messages
6,159,176
Members
451,543
Latest member
cesymcox

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top