+ Reply to Thread
Results 1 to 7 of 7

Convert text to time

  1. #1
    Registered User
    Join Date
    01-06-2012
    Location
    London, England
    MS-Off Ver
    Excel 2007
    Posts
    2

    Angry Convert text to time

    I am having trouble converting a text cell to a time cell. Please help as this is driving me mad! I have found several fixes online but none of them specifically address my problem.

    I have time inputted as text, such as 8.40 to indicate 8 hours and 40 minutes. However, if I format the cell as a time cell, it changes the time to 9:36. This is not right. I just want it to display as 08:40. If I go 'find' and 'replace' the full stop with a colon, it doesn't work either, it returns 08:04 which is also wrong. Any help will be very much appreciated PLEASE!!!

    N

  2. #2
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Convert text to time

    it cant be text as find replace would work fine,i just tried it, also formatting as anything else would not change it
    try
    =TIMEVALUE(INT(A1)&":"&TEXT(100*(A1-INT(A1)),"00")) cell formatted as time
    Last edited by martindwilson; 01-06-2012 at 05:59 PM.
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  3. #3
    Registered User
    Join Date
    01-06-2012
    Location
    London, England
    MS-Off Ver
    Excel 2007
    Posts
    2

    Re: Convert text to time

    Brilliant! Thanks! That has worked! Relief!! Thanks so much :-)

  4. #4
    Forum Guru
    Join Date
    05-24-2011
    Location
    India
    MS-Off Ver
    Office 2021
    Posts
    2,237

    Re: Convert text to time

    Try also,

    =SUBSTITUTE(A1,".",":")+0

    format as time
    Regards,
    Haseeb Avarakkan

    __________________________________
    "Feedback is the breakfast of champions"

  5. #5
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Convert text to time

    @Haseeb, that would return 8:04 rather than 8:40

    FWIW, another variant:

    Please Login or Register  to view this content.

  6. #6
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Convert text to time

    see there's always a shorter way!

  7. #7
    Registered User
    Join Date
    04-14-2015
    Location
    India
    MS-Off Ver
    2013
    Posts
    127

    Re: Convert text to time

    I was searching for excel formula to Convert Text to Time Value in excel & this is really a good one.

    Regards,
    Vikas
    Last edited by kisanvikas2015; 05-21-2015 at 02:04 AM.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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