Results 1 to 5 of 5
  1. #1
    3 Star Lounger Jimmy-W's Avatar
    Join Date
    Jan 2001
    Location
    Helena, Montana, USA
    Posts
    220
    Thanks
    13
    Thanked 0 Times in 0 Posts

    Calculating Time (2002)

    What is the function or formula to subtract a number of seconds from a specific time? For example, if a time is formatted as 19:14:29, how can I subtract 3400 seconds from that time and have the result expressed in the same format, i.e., 00:00:00? Thanks!
    JimmyW
    Helena, MT

  2. #2
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: Calculating Time (2002)

    Dates and times are in fact numbers, expressed in units of 1 day = 86400 seconds. So if 19:14:29 is in cell A1, and 3400 is in cell A2, use =A1-A2/86400 to subtract. Then use the format painter to copy the format of cell A1 to the result.

  3. #3
    Uranium Lounger
    Join Date
    Jan 2001
    Location
    South Carolina, USA
    Posts
    7,295
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Calculating Time (2002)

    If the time is in A1, then:

    <pre>=A1-3400/86400
    </pre>


    86400 is the number of seconds in one day.
    Legare Coleman

  4. #4
    3 Star Lounger Jimmy-W's Avatar
    Join Date
    Jan 2001
    Location
    Helena, Montana, USA
    Posts
    220
    Thanks
    13
    Thanked 0 Times in 0 Posts

    Re: Calculating Time (2002)

    Thanks very much!!!!
    JimmyW
    Helena, MT

  5. #5
    2 Star Lounger
    Join Date
    Jan 2001
    Location
    Melbourne, Victoria, Australia
    Posts
    199
    Thanks
    8
    Thanked 0 Times in 0 Posts

    Re: Calculating Time (2002)

    Hi Jimmy-W,

    You need to understand that time is recorded in Excel as a decimal of one day, so your 19 hours is recorded as 0.8017 etc. To subtract 3400 seconds you need to divide this amount by (24*60*60) the number of seconds in a day and you should get 18:17:49.

    To find out more about times and dates checkout Chip Pearson's site at :

    http://www.cpearson.com/excel/datetime.htm#AddingTimes

    Good Luck!

    Peter Moran

Posting Permissions

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