+ Reply to Thread
Results 1 to 7 of 7

Turn imported text feild into excel time.

  1. #1
    Registered User
    Join Date
    05-13-2013
    Location
    marlborough, England
    MS-Off Ver
    Excel 2003
    Posts
    4

    Turn imported text feild into excel time.

    Trying to turn a field into a time but it has an unsual set up. The cells is imported as "hhh mm:ss" which is not an excel accepted timing. Does anyone have an idea on how to accomplish this.
    Last edited by AliGW; 04-03-2019 at 08:56 AM.

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

    Re: Turn imported text feild into excel time.

    There may be an easier way

    =LEFT(A1,3)/24+("00:"&RIGHT(A1,5))+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
    05-13-2013
    Location
    marlborough, England
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: Turn imported text feild into excel time.

    Unfortunately, as you can see below it gives you the incorrect time. using that formula

    excel.PNG

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

    Re: Turn imported text feild into excel time.

    Format the cells as custom using [h]:mm:ss

    What are you expecting to see (you havent said).

  5. #5
    Registered User
    Join Date
    05-13-2013
    Location
    marlborough, England
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: Turn imported text feild into excel time.

    What I am expecting to see for the example of 123 21:37 is what is showing on the site in an excel format saying hhh:mm:ss in this term 123 hours 21 minutes and 31 seconds

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

    Re: Turn imported text feild into excel time.

    " in this term 123 hours 21 minutes and 31 seconds "
    Thats the first time you've mentioned what format the output should take.

    Use this

    =LEFT(A1,3)&" hours "&MID(A1,5,2)&" minutes "&RIGHT(A1,2)&" seconds"

    but that result will be text, you wont be able to manipulate it as a number.

  7. #7
    Registered User
    Join Date
    05-13-2013
    Location
    marlborough, England
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: Turn imported text feild into excel time.

    Using the top forumula and adding the MID. I have been able to get this to show in hhh:mm:ss format. Thanks for the help

+ 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. Excel time Table - with outlook data imported - help
    By timharding in forum Excel General
    Replies: 6
    Last Post: 03-04-2018, 07:18 AM
  2. [SOLVED] Coverting numbers data in one feild into words in another feild
    By 1967chris in forum Access Tables & Databases
    Replies: 3
    Last Post: 07-13-2015, 08:53 PM
  3. Percentage Calculation keeping in mind a text feild
    By Amit Chand in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-10-2014, 09:17 AM
  4. [SOLVED] Calculating turn around time for taskers and ignore text values
    By AndreBlush in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-18-2013, 02:44 PM
  5. add imported text file name above imported data
    By tompie in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-27-2009, 08:18 AM
  6. [SOLVED] convert time imported as text to time format for calculations
    By batfish in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-27-2005, 07:05 PM
  7. [SOLVED] problem working with time data imported from text file
    By afaqm in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-24-2005, 04:06 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