+ Reply to Thread
Results 1 to 13 of 13

Upper case month names in custom formatting

  1. #1
    Valued Forum Contributor
    Join Date
    04-22-2014
    Location
    Auckland, New Zealand
    MS-Off Ver
    Office 365 (work) and Excel 2013 (home)
    Posts
    1,167

    Upper case month names in custom formatting

    Hi

    I am using a custom formatting for a date in a cell that is "ABC COMPANY REPORTING TIMETABLE FOR "MMM YY

    When I enter 1/7/14 in the cell (we use D/M/YY in NZ) I would like it to appear in the cell as ABC COMPANY REPORTING TIMETABLE FOR JUL 14

    Unfortunately it is showing as ABC COMPANY REPORTING TIMETABLE FOR Jul 14

    As it is a heading I was wanting it all in upper case. Does anybody out there know how to get a custom format to show upper case characters?

    Thanks in advance.

    Glenn
    Please add reputation by clicking on the * if I have helped.
    Please mark the thread SOLVED if your issue has been resolved.
    Thanks, Glenn.

  2. #2
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: Upper case month names in custom formatting

    What about using Upper() function with Text() function like this?

    In A1 Cell

    01/07/2014


    In B1 Cell

    =UPPER(TEXT(A1,"MMM YY"))

    Or

    ="COMPANY REPORTING TIMETABLE FOR "&UPPER(TEXT(A1,"MMM YY"))


    If your problem is solved, then please mark the thread as SOLVED>>Above your first post>>Thread Tools>>
    Mark your thread as Solved


    If the suggestion helps you, then Click *below to Add Reputation

  3. #3
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,938

    Re: Upper case month names in custom formatting

    try this...
    ="aaa "&UPPER(TEXT(A1,"MMM YY"))
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  4. #4
    Forum Guru sktneer's Avatar
    Join Date
    04-30-2011
    Location
    Kanpur, India
    MS-Off Ver
    Office 365
    Posts
    9,648

    Re: Upper case month names in custom formatting

    This can be achieved with the help of a VBA code. If you are open to a VBA solution to this, try this......

    Right Click on the Sheet Tab --> View Code --> Paste the code given below in the opened code window --> Close VBA Editor --> Save your workbook as Excel Macro-Enabled Workbook.
    Please Login or Register  to view this content.
    The code work for any change in the cell A1 (red range reference in the code). Change it as per your requirement.
    In the attached sheet, input a date in A1 to see if you get the desired output.
    Attached Files Attached Files
    Regards
    sktneer


    Treat people the way you want to be treated. Talk to people the way you want to be talked to.
    Respect is earned NOT given.

  5. #5
    Valued Forum Contributor
    Join Date
    04-22-2014
    Location
    Auckland, New Zealand
    MS-Off Ver
    Office 365 (work) and Excel 2013 (home)
    Posts
    1,167

    Re: Upper case month names in custom formatting

    Quote Originally Posted by :) Sixthsense :) View Post
    What about using Upper() function with Text() function like this?
    Thanks, but I was wanting to avoid having a separate cell for the date and the heading.

  6. #6
    Valued Forum Contributor
    Join Date
    04-22-2014
    Location
    Auckland, New Zealand
    MS-Off Ver
    Office 365 (work) and Excel 2013 (home)
    Posts
    1,167

    Re: Upper case month names in custom formatting

    Quote Originally Posted by FDibbins View Post
    try this...
    ="aaa "&UPPER(TEXT(A1,"MMM YY"))
    Thanks Ford, but I tried it and got the following error message:
    Mircosoft Excel cannot use the number format you typed
    Try using one of the built-in number formats.
    For more information about custom number formats, click Help.

  7. #7
    Valued Forum Contributor
    Join Date
    04-22-2014
    Location
    Auckland, New Zealand
    MS-Off Ver
    Office 365 (work) and Excel 2013 (home)
    Posts
    1,167

    Re: Upper case month names in custom formatting

    Quote Originally Posted by sktneer View Post
    This can be achieved with the help of a VBA code.
    Thanks sktneer, but I'm not the only one using this sheet and others can be wary of enabling content.

  8. #8
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,938

    Re: Upper case month names in custom formatting

    Quote Originally Posted by gak67 View Post
    Thanks Ford, but I tried it and got the following error message:
    Mircosoft Excel cannot use the number format you typed
    Try using one of the built-in number formats.
    For more information about custom number formats, click Help.
    Worked fine for me, and is pretty much identical to shat sktmeer suggested as well

  9. #9
    Valued Forum Contributor
    Join Date
    04-22-2014
    Location
    Auckland, New Zealand
    MS-Off Ver
    Office 365 (work) and Excel 2013 (home)
    Posts
    1,167

    Re: Upper case month names in custom formatting

    Quote Originally Posted by FDibbins View Post
    Worked fine for me, and is pretty much identical to shat sktmeer suggested as well
    Can you show it working on the attached sheet and re-upload it?02 Reporting Timetable with dates.xlsx I can't get it to work. As soon as I type an E (as in UPPER) in the custom format it tries to treat it as an exponential.

  10. #10
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,938

    Re: Upper case month names in custom formatting

    aahh OK now I undersdand. I did not read (*blames his dirty specs*) that you said you was custom formatting

    Im not sure you can do what you want with regular formatting/fomrmulas An alternative would be to to enter your date in A1 (like now) but make it white text on a while background (so it doesnt show), then in B2, use...
    ="ABC COMPANY FINANCE REPORTING TIMETABLE FOR "&UPPER(TEXT(A1,"mmm yy"))

    Sorry for the mis-understanding

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

    Re: Upper case month names in custom formatting

    Another way is to keep your current custom format but change the font for that cell to a font which only allows UPPER case letters, e.g. I have one called "Stencil" that does that.....
    Audere est facere

  12. #12
    Valued Forum Contributor
    Join Date
    04-22-2014
    Location
    Auckland, New Zealand
    MS-Off Ver
    Office 365 (work) and Excel 2013 (home)
    Posts
    1,167

    Re: Upper case month names in custom formatting

    Quote Originally Posted by FDibbins View Post
    I did not read (*blames his dirty specs*) that you said you was custom formatting
    Must be very dirty considering it was in both the title and the first line (excluding the "Hi") of the OP

    The white text option won't work as if somebody else starts this file for the new month they would need to know which cell to change.

    And the font idea of daddylonglegs is one I hadn't thought of, but there is a consistency to the fonts and layouts here that means it's not likely to be widely accepted.

    I think my best bet is to simply flag the uppercase heading idea and just capitalise each word, eg ABC Company Finance Reporting Timetable for Jul 14.

    Thanks for your suggestions everybody.

  13. #13
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: Upper case month names in custom formatting

    As I remember I use the > symbol for Upper Case and Less than Symbol for lower case in access Field Format.

    I checked the excel VBA Format() function which also works like access.

    In Immediate Window

    ? Format("message",">")

    But Text() function is not working like VBA Format() function as intended

    =TEXT("message",">")

+ 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. Conditional Formatting Duplicate Values (Upper & Lower Case)
    By Orangeworker in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 03-05-2010, 04:01 AM
  2. [SOLVED] Conditional Formatting based on Upper case
    By cs_vision in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 04-28-2006, 03:40 PM
  3. [SOLVED] Formatting Upper Case letters
    By Greegan in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-29-2006, 02:15 AM
  4. Replies: 14
    Last Post: 08-25-2005, 10:05 PM
  5. Replies: 1
    Last Post: 03-09-2005, 05:06 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