+ Reply to Thread
Results 1 to 7 of 7

Military time subtraction

Hybrid View

mattcr40 Military time subtraction 12-05-2007, 06:13 PM
shg Just subtract the smaller... 12-05-2007, 06:44 PM
Paul A formula like this could... 12-05-2007, 06:51 PM
daddylonglegs Do you have times shown as... 12-05-2007, 08:00 PM
mattcr40 The times are shown without a... 12-06-2007, 11:15 AM
  1. #1
    Registered User
    Join Date
    12-05-2007
    Posts
    3

    Military time subtraction

    How can I subtract military time over a date range, and get a minute output.

    ex. 2300 on 01/01/08 is subtracted from 0100 on 01/02/08 to get 120 minutes.

    I can't even get to the point of getting a positive number, much less adding a formula to give me minutes.

    Someone please help!!

  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
    Just subtract the smaller from the larger, and format as [m]

  3. #3
    Forum Expert Paul's Avatar
    Join Date
    02-05-2007
    Location
    Wisconsin
    MS-Off Ver
    2016/365
    Posts
    6,887
    A formula like this could also work:
    =IF(A1>=B1,(B1-A1+1)*1440,(B1-A1)*1440)

  4. #4
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    Microsoft 365
    Posts
    14,702
    Do you have times shown as 2300, without a colon, or 23:00 with a colon. Do you have the dates in the worksheet or just times? If you have dates then are they in the same cells as the times?

    If you have time and date in the same cells (in recognisable time/date format) then you can use shg's suggestion or

    =(B1-A1)*1440

    format as number

    where B1 contains the later time/date and A1 the earlier time/date. If A1 and B1 contain just times in recognisable excel format (i.e. with a colon) try

    =MOD(B1-A1,1)*1440

    format as number

  5. #5
    Registered User
    Join Date
    12-05-2007
    Posts
    3
    The times are shown without a colon but if i have to i will go through the spreadsheet and add colon, it will just take me forever, unless someone know how to add colons to an entire column.

  6. #6
    Forum Contributor
    Join Date
    02-28-2006
    Posts
    690
    say A1 contains 2347

    in B1 put =concatenate(left(A1,2),":",right(A1,2)

    this gives 23:47

    copy down the column

    highlight column B, edit copy, edit paste special values

    delete column A

+ 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