+ Reply to Thread
Results 1 to 4 of 4

How to handle time format hh:mm:ss:xxx

  1. #1
    Registered User
    Join Date
    12-06-2012
    Location
    Germany
    MS-Off Ver
    Excel 2010
    Posts
    2

    How to handle time format hh:mm:ss:xxx

    Hello everyone,

    I hope this question hasn't already been asked.

    I have a datalogger that has a time format output of the form hh:mm:ss:xxx and would like Excel to realize that it is dealing with a time. Now I know that usually in Excel the normal time format would be hh:mm:ss.xxx (or a "," instead of "." if using the German version). Is there any way to define a custom time format such that Excel realizes that what I have is a time format (and how would I have to define it to work) or, alternatively, if there is a simple way to exchange the last ":" for "." (or ",")?

    Help is appreciated. Thanks.

  2. #2
    Valued Forum Contributor
    Join Date
    08-14-2012
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    573

    Re: How to handle time format hh:mm:ss:xxx

    To convert last : to ".", you can use substitue formula =SUBSTITUTE(E3,":",".",3) Replace E3 with your cell reference

  3. #3
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: How to handle time format hh:mm:ss:xxx

    To get it to recognize it as time.
    1. Format column B (or any empty column) to Custom hh:mm:ss.0;@
    2. Building on Sindhus' formula
    =TIMEVALUE(SUBSTITUTE(A2,":",".",3))
    Does that work for you?

    You can then copy>Paste Special>values back over top of your original data (will need to custom format that column also)
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  4. #4
    Registered User
    Join Date
    12-06-2012
    Location
    Germany
    MS-Off Ver
    Excel 2010
    Posts
    2

    Re: How to handle time format hh:mm:ss:xxx

    Both things work for me. Thanks a lot!

+ 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