+ Reply to Thread
Results 1 to 3 of 3

Formula to subtract two time stamps

  1. #1
    Registered User
    Join Date
    12-11-2006
    Location
    Melbourne, Australia
    MS-Off Ver
    Excel 2007
    Posts
    86

    Formula to subtract two time stamps

    Hello,

    I need to subtract one timestamp value from another, but I am getting a #VALUE! error whenever I try it.

    The values I am trying to subtract all have the same format as below:

    00:50:26.170

    00:50:26.291
    I need to be able to subtract the lower number from the higher number and display the results as a number value.

    Is there a way to achieve this?
    Last edited by jiminic; 02-13-2013 at 11:04 PM. Reason: Solved.

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,704

    Re: Formula to subtract two time stamps

    Try this:

    =MAX(A1:B1)-MIN(A1,B1)

    This will give a result in time format - if by "number value" you mean you want the fractions of a second, then do this:

    =(MAX(A1:B1)-MIN(A1,B1))*24*60*60

    If you want the result in milliseconds, then multiply by 1000.

    Hope this helps.

    Pete

  3. #3
    Registered User
    Join Date
    12-11-2006
    Location
    Melbourne, Australia
    MS-Off Ver
    Excel 2007
    Posts
    86

    Re: Formula to subtract two time stamps

    Thanks Pete,

    That was perfect!

+ 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