Formula to perform a calculation

jward44

New Member
Joined
Apr 6, 2011
Messages
2
I was wondering if one of you lovely people could help me with the following.<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p></o:p>
<o:p></o:p>
To give a bit of background on what I'm doing, we have a ticketing system that we use to work on issues submitted by our user base. We will assign the ticket a severity and this will apply an SLA. For example a sev 4 may have an SLA of 48 hours. Occasionally we will stop the SLA clock while we gather further info, or change the severity and alter the SLA.<o:p></o:p>
When this happens, the SLA clock on the ticket isn't always accurate which makes it hard to work out when the SLA will breach.<o:p></o:p>
<o:p></o:p>
If the clock ticks 24/7 it's easy enough to work out how long is left. When the support hours are between certain times of the day it gets a bit trickier.<o:p></o:p>
<o:p> </o:p>
That text above only just makes sense to me so I’ll try and give an example:
<o:p> </o:p>
SLA is 48 hours total. Support hours are between 07:00 and 22:00, so the clock only ticks between these hours.
If an issue is logged at 08:00 on day 1 and is resolved on day 2 at 13:00, we took 20 hours of the SLA to fix the issue and so had 28 hours left on the clock.
That’s quite a basic example, as we might see the clock stop/start a few times between It being logged and resolved, but the principle is there.
I’m looking for a way to take the time and date stamps of when the ticket started, stopped etc, however many there are, and have excel calculate the time I have left on the clock.
Hope that makes sense to someone here and I’ll be very grateful for any help with this.
Many thanks
James
 

Excel Facts

How to total the visible cells?
From the first blank cell below a filtered data set, press Alt+=. Instead of SUM, you will get SUBTOTAL(9,)
just as a first attempt, it will be something on the lines of

(enddate_and_time - startdate_and_time in hours) - (numberofdays *9)

which in your example is

29 - (1*9), where 9 is the number of hours between close of play and start the next day

which gives 20

just need to come up with the (end - start) time in hours
 
Upvote 0
Thanks for the reply :)

I've tried your suggestion and it doesn't seem to be working, possibly because i'm doing it wrong...

In my spreadsheet I have for example
A1 - 23/03/2011 08:00:00
B1 - 24/03/2011 13:00:00

which are my start and end dates and times.

C1 - =B1-A1

This gives me
29:00:00

Which is fine.

The number of days will be a variable so I've set field D1 to contain this
D1 - 1

E1 - =D1*9

F1 then would be for my final calculation but this is where it falls down.
F1 - =C1-E1

This gives me a whole lot of ###########

Is this something to do with the format of the data I have in the cells or is it related with how I've set this up do you think?

Thanks again for the help.
 
Upvote 0
ok had a rethink and changed it around so that we multiply the number of days * 15 and add the hours

=TEXT(B1-A1,"d")*15 + TEXT(B1-A1,"h")
 
Upvote 0

Forum statistics

Threads
1,224,514
Messages
6,179,220
Members
452,895
Latest member
BILLING GUY

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