+ Reply to Thread
Results 1 to 7 of 7

Text&number characters to change to time

  1. #1
    Registered User
    Join Date
    02-20-2021
    Location
    Poland
    MS-Off Ver
    MS Office 2010
    Posts
    5

    Text&number characters to change to time

    Hello,

    I've stumbled upon a problem of changing text&numbers into actual time values which could be calculated in the sheet.
    Anyone able to help on this one?
    This is part of a report which will contain ca. 5k rows of data and I will need to do this change frequently, i.e. each time I download a source report.
    I'm attaching the problematic column.
    I need to see time in any format.
    Attached Files Attached Files

  2. #2
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    43,984

    Re: Text&number characters to change to time

    Do you want HH:MM time or decimal time as the result?

    Excel does not like negative times... unless you use the 1904 date system for that file... in which case, any and all other dates in that file will be out by 1462 days...
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  3. #3
    Registered User
    Join Date
    02-20-2021
    Location
    Poland
    MS-Off Ver
    MS Office 2010
    Posts
    5

    Re: Text&number characters to change to time

    Quote Originally Posted by Glenn Kennedy View Post
    Do you want HH:MM time or decimal time as the result?
    Good question...
    I think I could start with decimal hours. From there I will be able to transform it to any other time format, it's just that I'm stuck with this text unreadable to excel

  4. #4
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    43,984

    Re: Text&number characters to change to time

    I have overcomplicated this, for sure...

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    In PL, you may need ; instead of ,
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    02-20-2021
    Location
    Poland
    MS-Off Ver
    MS Office 2010
    Posts
    5

    Re: Text&number characters to change to time

    Thank you, Glenn - that's one hell of a chunky formula!

  6. #6
    Forum Guru
    Join Date
    02-27-2016
    Location
    Vietnam
    MS-Off Ver
    2016
    Posts
    5,899

    Re: Text&number characters to change to time

    Or try this:

    =SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(IF(COUNTIF(A1,"*h*"),"","0 h")&A1,"-","")," h",":")," m","")*24*SIGN(--LEFT(A1,2))

  7. #7
    Forum Guru
    Join Date
    02-27-2016
    Location
    Vietnam
    MS-Off Ver
    2016
    Posts
    5,899

    Re: Text&number characters to change to time

    Note:

    Row 134 ('-1 h 43 m), my formula returns -1.71667

+ 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. Change characters in text to other text
    By Jonathan11235 in forum Excel General
    Replies: 1
    Last Post: 02-17-2016, 07:07 AM
  2. [SOLVED] How do I change the number of characters in a field
    By mynameisaron in forum Excel General
    Replies: 5
    Last Post: 04-28-2015, 03:45 PM
  3. To Sum a range containing 3 text Characters then a number
    By chrisandsally in forum Excel Formulas & Functions
    Replies: 14
    Last Post: 04-05-2015, 09:35 AM
  4. [SOLVED] Extract certain text dependant on number of characters in text
    By bjoanmark in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-28-2014, 02:57 AM
  5. [SOLVED] Change letters,characters and moves to an assigned number
    By sherryp5165 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-04-2013, 04:59 PM
  6. Wrap text after x number of characters
    By ccpsc in forum Excel General
    Replies: 1
    Last Post: 01-22-2012, 06:54 AM
  7. [SOLVED] Change text to a single characters
    By Fitri Nadyra in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 07-04-2006, 08:15 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