+ Reply to Thread
Results 1 to 5 of 5

converting time from "hundred hours" to actual time format time

  1. #1
    Registered User
    Join Date
    07-14-2010
    Location
    Hildale, Utah
    MS-Off Ver
    Excel 2003
    Posts
    3

    converting time from "hundred hours" to actual time format time

    Hello Excel Forum,

    This is my first post here, so let me know if this is the wrong forum.

    I have a list of numbers in a column that represent time, but they aren't formatted as time (and can't be). I need the numbers changed from their existing format to time format. The following is an example of my issue:

    Current Format Needs to be
    400 4:00
    1130 11:30
    1200 12:00
    630 6:30
    500 5:00
    100 1:00

    Is there a way I can change these to be formatted as time? I hope my message is clear enough for you to understand my issue.

    Thanks in advance!

  2. #2
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: converting time from "hundred hours" to actual time format time

    Here's one way; Format the cell as time and

    =(LEFT(A1,LEN(A1)-2)&":"&RIGHT(A1,2))+0

    Does that work for you?
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  3. #3
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675

    Re: converting time from "hundred hours" to actual time format time

    With 400 in A1 you can convert in B1 with this formula

    =TEXT(A1,"00\:00")+0

    format as time
    Audere est facere

  4. #4
    Registered User
    Join Date
    07-14-2010
    Location
    Hildale, Utah
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: converting time from "hundred hours" to actual time format time

    Quote Originally Posted by ChemistB View Post
    Here's one way; Format the cell as time and

    =(LEFT(A1,LEN(A1)-2)&":"&RIGHT(A1,2))+0

    Does that work for you?
    Yes this works just fine. Thanks a lot!

  5. #5
    Registered User
    Join Date
    07-14-2010
    Location
    Hildale, Utah
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: converting time from "hundred hours" to actual time format time

    Quote Originally Posted by daddylonglegs View Post
    With 400 in A1 you can convert in B1 with this formula

    =TEXT(A1,"00\:00")+0

    format as time
    This works too... Thanks.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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