+ Reply to Thread
Results 1 to 3 of 3

Adding past 24 hours

  1. #1
    Registered User
    Join Date
    12-11-2008
    Location
    Manchester
    Posts
    4

    Adding past 24 hours

    I have a spreadsheet which monitors response time to emails. The spreadsheet looks at the time an email was received, and the time it was replied to, and if the difference is more than 3 hours, it highlights this.

    I achieve this by using, in K1 the following; =IF(NOT(ISBLANK(A1))*AND(J1<=0),"YES","NO")

    Where J1 is the result of the turnaround cell (time taken to reply) minus the SLA cell (3 hours). So if an email was received at 13:00:00 and replied to at 14:00:00 the turnaround cell would show 1:00:00 and J1 would output -2:00:00, resulting in K1 showing YES. This works fine and properly highlights with NO emails that are outside of the SLA. I also use a conditional formatting to change the cell colour in this case. (I also use 1904 date system to display the negative time that results)

    I now need to extend this function where the response time might be over 24 hours, and the formula breaks. I understand this is because excel has some issues with adding up of times but I was hoping there could be some trickery to get around this. Basically I want to be able to do as above but take into account an email received on Monday at 16:00 not being replied to until Tuesday at 17:00, a 25 hour difference.

    I have all of my time cells using a custom format of [h]:mm:ss so excel will count over 24 hours, but I'm just stuck at how to have excel output that 25 hour difference, any help on a formula that has excel output the sum of two times that exceed 24 hours would be greatly appreciated!

    (I have attached an example sheet to show my current method)
    Attached Files Attached Files
    Last edited by CaimanReid; 08-20-2009 at 06:04 AM.

  2. #2
    Registered User
    Join Date
    12-11-2008
    Location
    Manchester
    Posts
    4

    Re: Adding past 24 hours

    I think I might have achieved this, actually using (in the layout of above spreadsheet)

    =SUM(F1:G1)-SUM(C1:D1)

  3. #3
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Adding past 24 hours

    You could put the date and time in a single cell and just subtract normally.

    I see you're using the 1904 date system, which allows you to display negative times. Be aware that most people don't, and any workbook you send them will show a four-year discrepancy in dates.
    Entia non sunt multiplicanda sine necessitate

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1