+ Reply to Thread
Results 1 to 9 of 9

Converting Time Format

  1. #1
    Registered User
    Join Date
    07-15-2015
    Location
    Michigan
    MS-Off Ver
    MS Office 2010
    Posts
    5

    Converting Time Format

    Hello,

    I currently have a notepad document auto-importing time into an excel worksheet. I am currently measuring the time it takes to download a page and it is usually measuring hundredths of a second in this format: 0.0# where # is a digit. For example:

    0.03
    0.50
    12.50
    3min5s

    Sometimes the pages take a minute or more to load, when this happens the above occurs ( 3min5s )3min5s

    What I want to do is somehow convert the cells that come in like the 3min5s to the format the same as the ones above it.

    Any help would be greatly appreciated.

    Regards,

    Vince

  2. #2
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: Converting Time Format

    Try this formula

    =IF(ISNUMBER(--A1),A1,LEFT(A1,FIND("min",A1)-1)+SUBSTITUTE(RIGHT(A1,2),"s","")/100)

    Row\Col
    A
    B
    1
    0.03
    0.03
    2
    0.5
    0.5
    3
    12.5
    12.5
    4
    3min5s
    3.05
    If you like my answer please click on * Add Reputation
    Don't forget to mark threads as "Solved" if your problem has been resolved

    "Nothing is so firmly believed as what we least know."
    --Michel de Montaigne

  3. #3
    Registered User
    Join Date
    07-15-2015
    Location
    Michigan
    MS-Off Ver
    MS Office 2010
    Posts
    5

    Re: Converting Time Format

    You are awesome my friend. Thank you very much.

  4. #4
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: Converting Time Format

    You're welcome. Please don't forget to thank those who helped by clicking on Add Reputation * and please mark thread as "Solved" if your issue has been resolved. (Selecting Thread Tools-> Mark thread as Solved).

  5. #5
    Registered User
    Join Date
    07-15-2015
    Location
    Michigan
    MS-Off Ver
    MS Office 2010
    Posts
    5

    Re: Converting Time Format

    Actually I found one little problem.

    My original times were in hundredths of a second.

    0.03 is actually 3/100 of a second

    So the one's spot is actually one second. Could you tweak that formula a little to make the 3min5s to 185 seconds?

    Thank you again for your help.
    Last edited by VinceT; 07-15-2015 at 03:01 PM.

  6. #6
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: Converting Time Format

    Quote Originally Posted by VinceT View Post
    Actually I found one little problem.

    My original times were in hundredths of a second.

    0.03 is actually 3/100 of a second

    So the one's spot is actually one second. Could you tweak that formula a little to make the 3min5s to 185 seconds?

    Thank you again for your help.
    Sorry, I don't think I follow the logic here.

  7. #7
    Registered User
    Join Date
    07-15-2015
    Location
    Michigan
    MS-Off Ver
    MS Office 2010
    Posts
    5

    Re: Converting Time Format

    Alkey,

    Your formula worked up until the 3min5s.

    This is what I have:

    3.00 (3 seconds)
    0.05 (less than 1 second)
    3min5s

    This is what I'm looking for.

    3.00
    0.05
    185.00

    Or if it's easier for you to convert everything into minutes that would be fine as well.

    Your original formula converted 3min5s to 3.5 seconds.

    Thank you again for your help.

    Regards,
    Vince

  8. #8
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: Converting Time Format

    Try this one

    =IF(ISNUMBER(--A1),A1,LEFT(A1,FIND("min",A1)-1)*60+SUBSTITUTE(RIGHT(A1,2),"s",""))

  9. #9
    Registered User
    Join Date
    07-15-2015
    Location
    Michigan
    MS-Off Ver
    MS Office 2010
    Posts
    5

    Re: Converting Time Format

    That one is perfect. Thank you again for your help. I'll mark your rep and have this marked solved! Thank you again!!!!!

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] converting a time format
    By sambo24 in forum Excel General
    Replies: 14
    Last Post: 06-22-2015, 04:47 AM
  2. Converting time in hh:mm:ss format to decimal format
    By shanekerr in forum Excel General
    Replies: 4
    Last Post: 05-28-2015, 03:25 AM
  3. [SOLVED] Converting an elapsed time in decimal number format to an actual time :S
    By Spicey_888 in forum Excel General
    Replies: 3
    Last Post: 07-20-2014, 08:53 PM
  4. Converting time format
    By a94andwi in forum Excel General
    Replies: 3
    Last Post: 08-07-2013, 06:59 AM
  5. Converting into a time format
    By percyth1 in forum Excel General
    Replies: 5
    Last Post: 02-23-2012, 09:43 PM
  6. Converting number format to time format
    By mbarr in forum Excel - New Users/Basics
    Replies: 1
    Last Post: 01-28-2011, 09:19 AM
  7. [SOLVED] Converting to Time Format
    By Amber in forum Excel General
    Replies: 1
    Last Post: 07-07-2005, 06:05 PM

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