Results 1 to 6 of 6

Thread: Date Formatting

  1. #1
    Star Lounger
    Join Date
    Feb 2008
    Posts
    99
    Thanks
    12
    Thanked 0 Times in 0 Posts
    Hello all

    I would like to be able to format the dates so the month is all capital letters, say 13-MAR-2007.

    When I use the custom formatting dd-mmm-yyy, I get the typical 13-Mar-2007. (I tried using MMM, which worked in an old database of mine, but no change.)

    Is it possible to get Excel to do this? (uh.....easily?)

    Oh yes, I do need to have actual dates, as I must sort by date.
    [I have been here for years; I had to get things restarted]

  2. #2
    Super Moderator WebGenii's Avatar
    Join Date
    Jan 2001
    Location
    Redcliff, Alberta, Canada
    Posts
    4,066
    Thanks
    2
    Thanked 5 Times in 5 Posts
    Option 1 - use a formula such as =UPPER(TEXT(A1,"dd-mmm-yyyy")) to convert to uppercase
    Option 2 - format the cells with a font that only has uppercase characters.

    I'll be watching to see if anyone has any better suggestions.
    [b]Catharine Richardson (WebGenii)
    WebGenii Home Page
    Moderator: Spreadsheets, Other MS Apps, Presentation Apps, Visual Basic for Apps, Windows Mobile

  3. #3
    New Lounger
    Join Date
    Dec 2009
    Location
    North Yorks, UK
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts
    This link http://support.microsoft.com/kb/107139 gives two solutions (one of which is similar to Catharine's)

  4. #4
    WS Lounge VIP sdckapr's Avatar
    Join Date
    Jul 2002
    Location
    Pittsburgh, Pennsylvania, USA
    Posts
    11,225
    Thanks
    14
    Thanked 342 Times in 335 Posts
    Note that in these solutions that the cell value ceases to be a date and is instead text that just looks like a date. It will no longer work correctly if the cell is used in calculations...

    Steve

  5. #5
    Star Lounger
    Join Date
    Feb 2008
    Posts
    99
    Thanks
    12
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by Catharine Richardson - WebGenii View Post
    Option 1 - use a formula such as =UPPER(TEXT(A1,"dd-mmm-yyyy")) to convert to uppercase
    Option 2 - format the cells with a font that only has uppercase characters.

    I'll be watching to see if anyone has any better suggestions.
    I just might use that if there is no better way. I can put the date in a separate column, and hide it when I have to print a report.
    [I have been here for years; I had to get things restarted]

  6. #6
    WS Lounge VIP rory's Avatar
    Join Date
    Dec 2000
    Location
    Burwash, East Sussex, United Kingdom
    Posts
    6,280
    Thanks
    3
    Thanked 191 Times in 177 Posts
    The only other way I can think of would be using code in a change event to apply a custom number format based on the month of the date. I'd use Catharine's font idea personally.
    Regards,
    Rory

    Microsoft MVP - Excel

Posting Permissions

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