+ Reply to Thread
Results 1 to 7 of 7

Converting from GMT -> EST and Date & Time in HH.MM.DD.SS.MS format

  1. #1
    Registered User
    Join Date
    03-19-2010
    Location
    Detroit, MI
    MS-Off Ver
    Excel 2003
    Posts
    10

    Question Converting from GMT -> EST and Date & Time in HH.MM.DD.SS.MS format

    Hello all:

    I'm new to the board, but can see this being a valuable resource for me in the future. I am trying to do two things:

    1. Convert date and time in this format from GMT -> EST for these dates / times.

    Current format is: YYYY-MM-DD-HH-MM-SS-MSMSMSMSMSMS
    2010-03-18-03.55.30.477460
    2010-03-18-03.55.30.648572

    2. After converting, I need to find out the difference between the two dates / times.

    Would appreciate any help anyone can provide.

    Thank you in advance!
    Last edited by endora75; 03-23-2010 at 11:48 AM.

  2. #2
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Help Converting from GMT -> EST and Date & Time in HH.MM.DD.SS.MS format

    Does this work for you in your own locale ?

    =SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(A1,"-"," ",3),".",":"),":",".",3)-"05:00"
    format cell as yyyy-mm-dd hh:mm:ss.000

    For the difference between the various times simply subtract results generated by above from one another.

    NOTE: XL will only display to .###s so you might lose some of your ms

  3. #3
    Registered User
    Join Date
    03-19-2010
    Location
    Detroit, MI
    MS-Off Ver
    Excel 2003
    Posts
    10

    Post Re: Help Converting from GMT -> EST and Date & Time in HH.MM.DD.SS.MS format

    Hello DonkeyOte & thank you for your response!

    Based on your feedback, I have:

    2010-03-17-22.55.30.48
    2010-03-17-22.55.30.65

    Is there a way to subtract the two numbers together easily?

    Many thanks again! :O)

  4. #4
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Help Converting from GMT -> EST and Date & Time in HH.MM.DD.SS.MS format

    The formula I provided should based on your sample and my suggested format return:

    2010-03-17 22:55:30.477
    2010-03-17 22:55:30.649

    Dates are Integers / Time is Decimal (ie noon = 0.5) ... on that basis you can establish differences using the same principles as other numerical calculations, ie if the above values reside in B1 & B2 respectively then:

    B3: =B2-B1
    format as [hh]:mm:ss.000

    would return 00:00:00.0172

    If the above is not working for you please post a sample file.

  5. #5
    Registered User
    Join Date
    03-19-2010
    Location
    Detroit, MI
    MS-Off Ver
    Excel 2003
    Posts
    10

    Post Re: Help Converting from GMT -> EST and Date & Time in HH.MM.DD.SS.MS format

    Here is the sample file with the numbers in xls.

    Thank you again!
    Attached Files Attached Files

  6. #6
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Help Converting from GMT -> EST and Date & Time in HH.MM.DD.SS.MS format

    As previously outlined - the difference is simply End - Start, ie formula for F2 being:
    =E2-D2
    format cell as [hh]:mm:ss.000 (or however you wish)

  7. #7
    Registered User
    Join Date
    03-19-2010
    Location
    Detroit, MI
    MS-Off Ver
    Excel 2003
    Posts
    10

    Re: Help Converting from GMT -> EST and Date & Time in HH.MM.DD.SS.MS format

    DO: Many thanks for your quick replies and guidance.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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