Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 65
Default Calculating difference between times on 2 dates

Hello

I want to find out whether an e-mail was replied to within a 3-hour Service
Level Agreement. This involves subtracting one date and time from another.

However, if an e-mail arrives after 4 p.m, as we close at 6 p.m., only 2
hours of that SLA are used up. This gives the team a further hour from 8 a.m.
next morning, to reply within SLA.

In other words, with the working day being 8 a.m. to 6 p.m., what formula
can I use to calculate if a reply is within SLA,i gnoring the hours when we
are closed?

I have the incoming date and time in Column D; the outgoing date and time in
Column E in format: 21/05/2008 18:15 (i.e. UK date format.)


Thanks.
  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,345
Default Calculating difference between times on 2 dates

Did you try it?

D3: 10/6/08 9:00
E3: 10/6/08 12:00

Formula returns 3:00

D3: 0906/08 17:00
E3: 10/06/08 :12:

Formula returns 5:00

Isn't that what you want?

--
HTH

Sandy
In Perth, the ancient capital of Scotland
and the crowning place of kings


Replace @mailinator.com with @tiscali.co.uk


"bollard" wrote in message
...
Hi Sandy

Thanks for your reply, but I don't understand how this would work.

If, for example, an e-mail arrives at 9:00 a.m. and is answered within the
3
hours, this formula wouldn't apply, surely?

"Sandy Mann" wrote:

Try:

=E3-D3-((INT(E3)-INT(D3))*14/24)

--
HTH

Sandy
In Perth, the ancient capital of Scotland
and the crowning place of kings


Replace @mailinator.com with @tiscali.co.uk


"bollard" wrote in message
...
Hello

I want to find out whether an e-mail was replied to within a 3-hour
Service
Level Agreement. This involves subtracting one date and time from
another.

However, if an e-mail arrives after 4 p.m, as we close at 6 p.m., only
2
hours of that SLA are used up. This gives the team a further hour from
8
a.m.
next morning, to reply within SLA.

In other words, with the working day being 8 a.m. to 6 p.m., what
formula
can I use to calculate if a reply is within SLA,i gnoring the hours
when
we
are closed?

I have the incoming date and time in Column D; the outgoing date and
time
in
Column E in format: 21/05/2008 18:15 (i.e. UK date format.)


Thanks.







  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,345
Default Calculating difference between times on 2 dates

Re-reading your original post and want a text return not a time try:

=IF(E3-D3-((INT(E3)-INT(D3))*14/24)<=0.125,"Within SLA","Alan Sugar
saysYou're Fired!")

--
HTH

Sandy
In Perth, the ancient capital of Scotland
and the crowning place of kings


Replace @mailinator.com with @tiscali.co.uk


"Sandy Mann" wrote in message
...
Did you try it?

D3: 10/6/08 9:00
E3: 10/6/08 12:00

Formula returns 3:00

D3: 0906/08 17:00
E3: 10/06/08 :12:

Formula returns 5:00

Isn't that what you want?

--
HTH

Sandy
In Perth, the ancient capital of Scotland
and the crowning place of kings


Replace @mailinator.com with @tiscali.co.uk


"bollard" wrote in message
...
Hi Sandy

Thanks for your reply, but I don't understand how this would work.

If, for example, an e-mail arrives at 9:00 a.m. and is answered within
the 3
hours, this formula wouldn't apply, surely?

"Sandy Mann" wrote:

Try:

=E3-D3-((INT(E3)-INT(D3))*14/24)

--
HTH

Sandy
In Perth, the ancient capital of Scotland
and the crowning place of kings


Replace @mailinator.com with @tiscali.co.uk


"bollard" wrote in message
...
Hello

I want to find out whether an e-mail was replied to within a 3-hour
Service
Level Agreement. This involves subtracting one date and time from
another.

However, if an e-mail arrives after 4 p.m, as we close at 6 p.m., only
2
hours of that SLA are used up. This gives the team a further hour from
8
a.m.
next morning, to reply within SLA.

In other words, with the working day being 8 a.m. to 6 p.m., what
formula
can I use to calculate if a reply is within SLA,i gnoring the hours
when
we
are closed?

I have the incoming date and time in Column D; the outgoing date and
time
in
Column E in format: 21/05/2008 18:15 (i.e. UK date format.)


Thanks.











Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Calculating the difference between 2 dates and times Dom Excel Discussion (Misc queries) 2 December 12th 07 04:56 PM
Calculating difference between two times Jaycatt Excel Worksheet Functions 2 August 8th 06 08:01 PM
Need difference between two dates/times in hours ramsdesk Excel Worksheet Functions 10 April 25th 06 11:33 PM
Difference in dates calculations except between certain times. Steve Hud Excel Discussion (Misc queries) 1 January 13th 06 01:10 PM
Difference between 2 times and dates Stefan Buijs Excel Worksheet Functions 1 May 26th 05 02:21 PM


All times are GMT +1. The time now is 09:24 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"