Results 1 to 6 of 6

Thread: Cell Formatting

  1. #1
    New Member
    Join Date
    Apr 2018
    Posts
    12
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default Cell Formatting

    I don't know why I cannot remember how to do this...but...

    I have a time cell and I just want to type "1753" in the cell and for it to display as "17:53". How do I have it automatically add the ":" to that cell?

  2. #2
    Board Regular
    Join Date
    Dec 2018
    Posts
    51
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default Re: Cell Formatting

    Add 1735 to cell A1 then copy the formula into cell a2
    =LEFT(a1,2)&":"&RIGHT(a1,2)

  3. #3
    Board Regular
    Join Date
    Nov 2009
    Posts
    216
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default Re: Cell Formatting

    Hi

    Excel custom number:

    #?\:??

    or

    #0\:??
    Last edited by ISY; Jun 27th, 2019 at 02:31 PM.

  4. #4
    New Member
    Join Date
    Apr 2018
    Posts
    12
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default Re: Cell Formatting

    Quote Originally Posted by Sparda142 View Post
    Add 1735 to cell A1 then copy the formula into cell a2
    =LEFT(a1,2)&":"&RIGHT(a1,2)
    I was hoping to have it all in one cell. Thank you though!

  5. #5
    New Member
    Join Date
    Apr 2018
    Posts
    12
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default Re: Cell Formatting

    #?\:?? This worked!!! Thanks so much!!!

  6. #6
    MrExcel MVP Rick Rothstein's Avatar
    Join Date
    Apr 2011
    Location
    New Jersey, USA
    Posts
    35,224
    Post Thanks / Like
    Mentioned
    92 Post(s)
    Tagged
    33 Thread(s)

    Default Re: Cell Formatting

    Quote Originally Posted by ISY View Post
    Excel custom number:

    #?\:??

    or

    #0\:??
    Personal preference... I would use zeros instead of question marks and I would drop the leading hash sign as it does nothing for the format there. I would also note that the above format will allow non-valid values to be entered and have the colon inserted (9999 for example). With these comments in mind, perhaps this might be a better Custom Format to use...

    [<=0]"Error";[<2400]0\:00;"Error"
    Rick's "mini" blog... http://www.excelfox.com/forum/f22/
    .
    Want to post a small screen shot? See Part B here.

Some videos you may like

User Tag List

Tags for this Thread

Like this thread? Share it with others

Like this thread? Share it with others

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •