+ Reply to Thread
Results 1 to 4 of 4

Excel 2007 : Elaped military time when actual start time before scheduled start time

  1. #1
    Registered User
    Join Date
    03-27-2012
    Location
    Rhode Island
    MS-Off Ver
    Excel 2007/2010
    Posts
    2

    Elaped military time when actual start time before scheduled start time

    Scenerio:
    D24 scheduled start time 3/26 13:15
    F24 actual start time 3/26 13:09
    I was using =(F24-D24)+IF(F24<D24,1) successfully for this spreadsheet until it came to situations where the actual start time began before the scheduled start time. This statement works well for situations where the time spans across midnight. Is there an additional statement that can be added to the existing statement to address the actual start time beginning before the scheduled start time?
    Thank you.

  2. #2
    Forum Expert DGagnon's Avatar
    Join Date
    02-23-2012
    Location
    Ontario, Canada
    MS-Off Ver
    Excel 2003, 2007
    Posts
    1,645

    Re: Elaped military time when actual start time before scheduled start time

    is this what you are looking for? it will return the difference between the 2 numbers, and include a - if it is negative number.

    =IF(F24<D24,"-","")&TEXT(ABS(D24-F24),"hh:mm")
    If you liked my solution, please click on the Star -- to add to my reputation

    If your issue as been resolved, please clearly state so and mark the thread as [SOLVED] using the thread tools just above the first post.

  3. #3
    Registered User
    Join Date
    03-27-2012
    Location
    Rhode Island
    MS-Off Ver
    Excel 2007/2010
    Posts
    2

    Re: Elaped military time when actual start time before scheduled start time

    That did the trick. Thank you!

  4. #4
    Forum Expert DGagnon's Avatar
    Join Date
    02-23-2012
    Location
    Ontario, Canada
    MS-Off Ver
    Excel 2003, 2007
    Posts
    1,645

    Re: Elaped military time when actual start time before scheduled start time

    no problem, glad to help.

+ 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