Calculating Time elapsed

B

bhomer

I am trying to calculate how many business hours have elasped from a
certain start dateand time. my business hours are m-f 7:00am-6:00 pm.
When someone issues a service request I have 8 business hours to
complete, if the call comes in at 4:00pm, (i have 2 hours in that day,
plus 6 hours in the next day = 1:00 PM.....That is the date that I want
populated so i can look down the list and see what is due
 
B

Bernie Deitrick

Bhomer,

If you enter your service request time as

11/21/2005 04:00:00 PM

in cell A2, then this formula (in a cell with date time formatting) will work:

=IF(A2+TIMEVALUE("08:00:00")>(INT(A2)+TIMEVALUE("18:00:00")),A2+TIMEVALUE("21:00:00"),A2+TIMEVALUE("08:00:00"))

Make sure that your take out any line feeds that were inserted by the mail readers...

HTH,
Bernie
MS Excel MVP
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top