Results 1 to 2 of 2

Thread: How to find difference between timestamps in Excel

  1. #1
    Join Date
    Dec 2011
    Posts
    49

    How to find difference between timestamps in Excel

    I have two columns which contain timestamps in the format of yyyy-mm-dd, hh:mm:ss:msmsms (the last three digits are the milliseconds). I need to find the difference of the timestamps in ss:msmsms format. I am trying to implement a VB function to do this as there is no predefined
    function available. Can anyone please assist?

  2. #2
    Join Date
    May 2011
    Posts
    448

    Re: How to find difference between timestamps in Excel

    If you have date/time in exactly that format (ie 05 for fifth month not just 5) then this formula will convert your data to Excel's date/time format
    =DATE(LEFT(A1,4),MID(A1,6,2),MID(A1,9,2))+TIME(MID (A1,12,2),MID(A1,15,2),MID(A1,18,2))+RIGHT(A1,3)/1000/60/60/24.
    You will need to format the cell with yyyy/mm/dd hh:mm: ss.000, in my test I changed 2006-06-10 05:45:15:349 to 2006/06/10 05:45:15.349 to get difference, I used =ROUND ((F2-F1)*24*60*60, 3). May this will help you out to find the difference between timestamps in Excel.

Similar Threads

  1. login and logoff timestamps
    By BoanHed in forum Active Directory
    Replies: 4
    Last Post: 17-05-2012, 06:08 AM
  2. Replies: 2
    Last Post: 23-02-2012, 02:56 PM
  3. Replies: 2
    Last Post: 02-02-2012, 04:46 PM
  4. Replies: 1
    Last Post: 06-01-2012, 08:38 PM
  5. Timestamps on Java Console
    By Kshaunish in forum Operating Systems
    Replies: 5
    Last Post: 23-07-2010, 06:02 AM

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
  •  
Page generated in 1,713,878,184.32168 seconds with 17 queries