+ Reply to Thread
Results 1 to 8 of 8

Time format

Hybrid View

  1. #1
    Forum Contributor
    Join Date
    11-15-2011
    Location
    South Africa
    MS-Off Ver
    Office 365
    Posts
    101

    Time format

    Hey guys just a quick one, but its frustrating me. How can I type a value and have it returned as a time, eg. if I type 1430, it must return as 14:30, if I use the time format it keeps returning to 00:00, I still have to use the ':' to have it display the time correctly. Is there any way not to have to type the ':' ?

  2. #2
    Registered User
    Join Date
    09-02-2013
    Location
    India
    MS-Off Ver
    Excel 2010
    Posts
    87

    Re: Time format

    A b c
    1 1430 14:30 =concatenate(left(a1,2),":",right(a1,2))

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

    Re: Time format

    But that won't work if morings are entered as 930, so try
    =CONCATENATE(LEFT(A1,LEN(A1)-2),":",RIGHT(A1,2))

  4. #4
    Forum Expert
    Join Date
    12-11-2011
    Location
    Netherlands
    MS-Off Ver
    office 365
    Posts
    3,661

    Re: Time format

    or try this
    =TIME(LEFT(A1,LEN(A1)-2),RIGHT(A1,2),0)
    Willem
    English is not my native language sorry for errors
    Please correct me if I'm completely wrong

  5. #5
    Forum Contributor
    Join Date
    11-15-2011
    Location
    South Africa
    MS-Off Ver
    Office 365
    Posts
    101

    Re: Time format

    toemaar Willem myne ook nie! Thanx guys but I found a more simple solution, I just formatted the block as 00":"00 and it works like a bomb!

    now, if I want to type in a block the month, ie Jan it must return Jan-14???? Hhhm cant get this one to work.... Help!

  6. #6
    Forum Expert Ace_XL's Avatar
    Join Date
    06-04-2012
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    6,074

    Re: Time format

    Custom cell format

    @"-14"

    Note: This will store the value as text and not as a number
    Life's a spreadsheet, Excel!
    Say thanks, Click *

  7. #7
    Forum Contributor
    Join Date
    11-12-2013
    Location
    Delhi
    MS-Off Ver
    Excel 2016
    Posts
    135

    Re: Time format

    =TEXT(LEFT(B14,LEN(B14)-2)&":"&RIGHT(B14,2),"hh:mm")

    try this

  8. #8
    Forum Contributor
    Join Date
    11-15-2011
    Location
    South Africa
    MS-Off Ver
    Office 365
    Posts
    101

    Re: Time format

    yup it worked thanx!

+ 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 format of lots of data cell to a time format
    By dazza67 in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 03-24-2013, 03:24 PM
  2. Convert date and time in serial number format to text format
    By nda13112 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 03-11-2013, 02:45 PM
  3. Excel: How to convert time format into number format that can be added?
    By Frances Jones in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 09-17-2012, 04:10 PM
  4. Replies: 4
    Last Post: 07-14-2010, 03:17 PM
  5. Display time in time format instead of decimal format
    By CasualVisitor in forum Excel General
    Replies: 5
    Last Post: 07-03-2009, 06:24 PM

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