Need help with Formula.

yasser1983

New Member
Joined
Jan 9, 2014
Messages
1
Hi Guys,

I would really appreciate If I could get help with excel formula.

I am trying to create a SLA report.
Tickets would have 3 types of severity:
Critical with SLA of 4 hours
Major with SLA of 8 hours
Minor with SLA of 72 hours.

SLA PrioritySLA WindowStart DateEnd DateSLA Status
Minor72 hours06/01/2014 13.1006/01/2014 14.10
Major8 hours09/01/2014 10.1509/01/2014 20.15
Critical4 Hours10/01/2014 19.0012/01/2014 10.00

SLA status should be SLA Met or SLA not Met depending on whether the ticket was closed within the SLA or not.

Thank you in advance.
 

Excel Facts

Format cells as time
Select range and press Ctrl+Shift+2 to format cells as time. (Shift 2 is the @ sign).
Hi, yasser1983.

This may not be the most elegant solution. (Time calculations can be tricky in Excel.) However, I believe it gets you closer to your goal.

SLA PrioritySLA Window (Hours)Start DateEnd DateTime OpenSLA Status
Minor=TEXT(72/24,"[hh]")41791.548611111141791.5902777778=TEXT(E4-D4, "[hh]:mm")=IF(F4<=C4,"SLA Met","SLA Not Met")
Major=TEXT(8/24,"[hh]")41883.427083333341883.84375=TEXT(E5-D5, "[hh]:mm")=IF(F5<=C5,"SLA Met","SLA Not Met")
Critical=TEXT(4/24,"[hh]")41913.791666666741974.4166666667=TEXT(E6-D6, "[hh]:mm")=IF(F6<=C6,"SLA Met","SLA Not Met")

<tbody>
</tbody>

The result is as follows:
SLA PrioritySLA Window (Hours)Start DateEnd DateTime OpenSLA Status
Minor726/1/14 13:106/1/14 14:1001:00SLA Met
Major089/1/14 10:159/1/14 20:1510:00SLA Not Met
Critical0410/1/14 19:0012/1/14 10:001455:00SLA Not Met

<tbody>
</tbody>

I hope this helps.

Good luck!

--Data Bender
 
Upvote 0
Hi yasser1983,

This is not too different to Data Bender's solution but it determines the "SLA window" from the "SLA Priority" text and doesn't require a helper column ("Time Open").

Sheet1

ABCDE
1SLA PrioritySLA WindowStart DateEnd DateSLA Status
2Minor72 hours6/01/2014 13:106/01/2014 14:10Met
3Major8 hours9/01/2014 10:159/01/2014 20:15Failed
4Critical4 hours10/01/2014 19:0012/01/2014 10:00Failed

<tbody>
</tbody>

Spreadsheet Formulas
CellFormula
B2=LOOKUP(A2,{"Critical","Major","Minor";4,8,72})
E2=IF((D2-C2)<=(B2/24),"Met","Failed")
B3=LOOKUP(A3,{"Critical","Major","Minor";4,8,72})
E3=IF((D3-C3)<=(B3/24),"Met","Failed")
B4=LOOKUP(A4,{"Critical","Major","Minor";4,8,72})
E4=IF((D4-C4)<=(B4/24),"Met","Failed")

<tbody>
</tbody>

<tbody>
</tbody>


Column B has a custom format of Type 0 "hours" to display correctly.

HTH.
 
Upvote 0
That's good too, Teeroy.

How did you get those cool row and column headings into your table images?

--Data Bender
 
Upvote 0

Forum statistics

Threads
1,203,072
Messages
6,053,378
Members
444,660
Latest member
Mingalsbe

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