+ Reply to Thread
Results 1 to 6 of 6

Time Calculation (Spanning Dates and using Military Time)

  1. #1
    Registered User
    Join Date
    04-30-2014
    Location
    Texas
    MS-Off Ver
    Excel 2010
    Posts
    10

    Post Time Calculation (Spanning Dates and using Military Time)

    Hello

    I have 4 distinct columns.

    Adm Date Adm Time Trans Date Trans Time
    1/16/2014 937 1/16/2014 1045
    1/1/2014 121 1/1/2014 121
    1/14/2014 800 1/11/2014 735
    1/30/2014 100 1/30/2014 205
    1/13/2014 800 1/12/2014 1202

    I would like to calculate the difference (# hours spanned from the dates shown). Unfortunately when we transfer the data the COLON is dropped from MILITARY TIME so I am having problems in the calculation. This is also made more difficult as some of the calculates span over two dates.

    Any help would be appreciated.

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

    Re: Time Calculation (Spanning Dates and using Military Time)

    A
    B
    C
    D
    E
    F
    1
    Adm Date
    Adm Time
    Trans Date
    Trans Time
    Time Diff
    2
    01/16/2014
    937
    01/16/2014
    1045
    1:08
    E2: =C2 + TEXT(D2, "0\:00") - (A2 + TEXT(B2, "0\:00"))
    3
    01/01/2014
    121
    01/01/2014
    121
    0:00
    4
    01/14/2014
    800
    01/11/2014
    735
    #########
    5
    01/30/2014
    100
    01/30/2014
    205
    1:05
    6
    01/13/2014
    800
    01/12/2014
    1202
    #########


    The ### is the result of negative time differences in those rows.
    Last edited by shg; 07-15-2014 at 01:25 PM.
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Registered User
    Join Date
    04-30-2014
    Location
    Texas
    MS-Off Ver
    Excel 2010
    Posts
    10

    Re: Time Calculation (Spanning Dates and using Military Time)

    Thank you. This works. Can you tell me how I would apply a formula in Row 2 if Column C had indicated 01/17/2014 instead of the same date.

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

    Re: Time Calculation (Spanning Dates and using Military Time)

    Format col E as [h]:mm

  5. #5
    Registered User
    Join Date
    04-30-2014
    Location
    Texas
    MS-Off Ver
    Excel 2010
    Posts
    10

    Re: Time Calculation (Spanning Dates and using Military Time)

    Thank you.

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

    Re: Time Calculation (Spanning Dates and using Military Time)

    You're welcome.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] time calculation with military time
    By JE McGimpsey in forum Excel Formulas & Functions
    Replies: 16
    Last Post: 09-06-2005, 07:05 AM
  2. [SOLVED] time calculation with military time
    By JE McGimpsey in forum Excel Formulas & Functions
    Replies: 24
    Last Post: 09-06-2005, 04:05 AM
  3. time calculation with military time
    By Ron Thetford in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 01:05 AM
  4. [SOLVED] time calculation with military time
    By Ron Thetford in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-05-2005, 10:05 PM
  5. Time calculation (in hh.mm) spanning more than one day
    By dtencza in forum Excel General
    Replies: 8
    Last Post: 08-16-2005, 05:05 PM

Tags for this Thread

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