+ Reply to Thread
Results 1 to 4 of 4

Need Help on Converting Text to Time format

  1. #1
    Registered User
    Join Date
    07-05-2017
    Location
    Dubai
    MS-Off Ver
    Office 365
    Posts
    15

    Need Help on Converting Text to Time format

    Hello Everyone,

    I hope someone could help me out with providing a formula to convert text to time format. There is a report which I generate and it provide a raw dump in the below text format.

    11m 29s
    0s
    0s
    1h 4m 19s


    I need to convert this text to time so that my Pivot can display the data. I would appreciate it if anyone can provide any suggestions. Thank you!

    Regards,
    Harami
    Last edited by HaramiPollins; 07-05-2017 at 04:50 AM.

  2. #2
    Forum Expert
    Join Date
    03-23-2004
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    7,065

    Re: Need Help on Converting Text to Time format

    This works on the example data you gave in co0lumn A

    in B1
    =SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(A1,"m ",":"),"s",""),"h ",":")+0
    Regards
    Special-K

    Ensure you describe your problem clearly, I have little time available to solve these problems and do not appreciate numerous changes to them.

  3. #3
    Registered User
    Join Date
    07-05-2017
    Location
    Dubai
    MS-Off Ver
    Office 365
    Posts
    15

    Re: Need Help on Converting Text to Time format

    Thank you Special-K.

    I really appreciate your help on this .

    Regards,
    Harami

  4. #4
    Forum Expert
    Join Date
    03-23-2004
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    7,065

    Re: Need Help on Converting Text to Time format

    Mm, This doesn't look like it will work if you have data like

    28s (just seconds but not 0 as above)
    2h (just hours)
    4m (just minutes)
    3h 2m (no seconds)
    7m 12s (no hours)

    Do you have data like this?
    Last edited by Special-K; 07-05-2017 at 05:00 AM.

+ 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. Converting Text to time format
    By Legpi in forum Excel General
    Replies: 2
    Last Post: 10-27-2014, 05:30 PM
  2. Replies: 4
    Last Post: 05-10-2014, 10:45 AM
  3. Converting text (955P) into time format
    By hjohn01 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-05-2013, 12:59 PM
  4. Converting text to time format
    By rengusqui in forum Excel - New Users/Basics
    Replies: 1
    Last Post: 09-04-2012, 05:38 PM
  5. Converting Text to Time format of XX:XX
    By Marck in forum Excel General
    Replies: 3
    Last Post: 02-25-2006, 11:55 AM
  6. Converting text string to a its proper time format
    By Edmund Wong in forum Excel General
    Replies: 3
    Last Post: 10-20-2005, 08:05 PM
  7. [SOLVED] Keep number format after converting time to text
    By DH in forum Excel General
    Replies: 2
    Last Post: 04-28-2005, 03:06 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