+ Reply to Thread
Results 1 to 4 of 4

Time Conversion

  1. #1
    Registered User
    Join Date
    02-09-2009
    Location
    Australia
    MS-Off Ver
    Excel 2003
    Posts
    4

    Time Conversion

    HI,

    I'm importing times into excel that are in the current format :

    1.25.73
    (as an example this would mean 1 minute, 25 seconds, 73 one hundrenths of a second).

    Does anyone know how if excel can convert this to seconds so it would read :

    85.73

    I have tried to format the cells but I don't think excel can recognise a time with two decimal points ???

    Any help would be appreciated.

    Thanks.

  2. #2
    Chris Bode
    Guest

    Re: Time Conversion

    Well, you can use some mathematics to derive the result as predicted
    Suppose that you have the data 1.25.73 in A4 then select any other cell and write following formula
    =CONCATENATE(MID(A4,1,FIND(".",A4)-1)*60+MID(A4,FIND(".",A4,2)+1,2),".",MID(A4,FIND(".",A4,2)+1,2))

    Hope this works for you…

    Have a nice time


    Chris
    Last edited by VBA Noob; 02-15-2009 at 06:35 AM.

  3. #3
    Registered User
    Join Date
    02-09-2009
    Location
    Australia
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: Time Conversion

    Many thanks Chris...works great !!

  4. #4
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Time Conversion

    If the time you noted is in cell E1, this does it, too:

    =(E1-INT(E1))*86400

    EDIT: I just noticed the non-standard time format. This formula works off Excel's normal time format of 00:01:25.73
    Last edited by JBeaucaire; 02-09-2009 at 03:20 AM.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

+ 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