+ Reply to Thread
Results 1 to 5 of 5

Converting text to time

  1. #1
    Registered User
    Join Date
    06-21-2020
    Location
    London
    MS-Off Ver
    macOS Catalina
    Posts
    7

    Converting text to time

    I have extracted date from a radiology programme that has times of exams but it is shown in DD HH MM format (days, hours, minutes)

    I would like to easily convert this to a time format so I can find minimum, maximum and average time values. I have over 5000 data entries so I would prefer not to do this all manually.

    For instance, how would i convert text of 00D 01H 46M (in cell A1) into a time format showing hh:mm.

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,895

    Re: Converting text to time

    In B1 =MID(A1,5,2) &":"&MID(A1,9,2)
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  3. #3
    Forum Guru
    Join Date
    04-23-2012
    Location
    New Jersey, USA
    MS-Off Ver
    Excel 365
    Posts
    2,416

    Re: Converting text to time

    Based on which forum and the way you asked your question, I am guessing you want a formula solution. If so, give this formula a try...

    =0+SUBSTITUTE(MID(A1,5,6),"H ",":")

    Note: You will have to format the cell you put this formula in with the time display format of your choosing before you copy it down or across (depending on how your data is laid out).

  4. #4
    Registered User
    Join Date
    06-21-2020
    Location
    London
    MS-Off Ver
    macOS Catalina
    Posts
    7

    Re: Converting text to time

    Amazing! Worked first time. Thank you very much

  5. #5
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,895

    Re: Converting text to time

    Based on your last post it seems that you are satisfied with the solution(s) you've received but you haven't marked your thread as SOLVED. If your problem has not been solved you can use Thread Tools (located above your first post) and choose "Mark this thread as unsolved".
    Thanks.

    Also, as a relatively new member of the forum, you may not be aware that you can thank those who have helped you by clicking the small star icon located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of those who helped.

+ 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 clock time to standard text (Zeitgeber time (ZT0))
    By ckfaber in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-22-2020, 12:40 AM
  2. [SOLVED] Converting Plain Text Time Stamps to an Excel Time Value
    By WhamBamm in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 06-28-2019, 02:44 PM
  3. Converting from Text to Time
    By KRISHLAL in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 06-10-2015, 11:47 PM
  4. [SOLVED] Converting Text to Time
    By SimecekKJ in forum Excel General
    Replies: 5
    Last Post: 02-24-2014, 01:26 PM
  5. [SOLVED] Converting Text into Time
    By VKS in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 01-20-2013, 12:45 PM
  6. Converting text to time
    By rats123 in forum Excel General
    Replies: 2
    Last Post: 04-04-2011, 07:50 PM
  7. converting text value into a time value
    By maya2000 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 09-05-2007, 08:34 AM

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