+ Reply to Thread
Results 1 to 5 of 5

Cell Formatting

  1. #1
    Registered User
    Join Date
    11-07-2012
    Location
    Manchester, UK
    MS-Off Ver
    Excel 2010
    Posts
    63

    Cell Formatting

    Hi all,

    Quick question regarding cell formatting. I want a cell to appear "05 Years, 10 Months, 22 Days" with the cells format. How would I put that into a format code?

    Thanks

  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: Cell Formatting

    so what would you be putting in the cell?
    "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
    11-07-2012
    Location
    Manchester, UK
    MS-Off Ver
    Excel 2010
    Posts
    63

    Re: Cell Formatting

    Sorry for the late reply. My colleague has shown me how to do this in work.

    Thank you for the help though

  4. #4
    Forum Expert Kevin UK's Avatar
    Join Date
    12-07-2010
    Location
    Radstock, Somerset
    MS-Off Ver
    365
    Posts
    1,922

    Re: Cell Formatting

    Hi

    Perhaps it might be worth sharing, since you did ask the question.
    Others might come here looking for the same thing!

    Kevin

  5. #5
    Registered User
    Join Date
    11-07-2012
    Location
    Manchester, UK
    MS-Off Ver
    Excel 2010
    Posts
    63

    Re: Cell Formatting

    Quote Originally Posted by Kevin UK View Post
    Hi

    Perhaps it might be worth sharing, since you did ask the question.
    Others might come here looking for the same thing!

    Kevin
    Of course. Turned out to be extremely simple. I wasn't putting in the commas in the quotation marks resulting in it not recognizing it and producing an error.

    The formula is
    dd "Days," mm "Months," yy "Years"
    resulting in
    05 Days, 12 Months, 11 Years
    Hope this helps those who need it!

+ 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