custom date format to uppercase months?

lengoldstein

New Member
Joined
Jan 14, 2009
Messages
3
I'd like to be able to take an already-existing date like 3/14/09 and create a custom format to make it MARCH '09. "mmmm 'yy" <mmmm yy=""> results in March '09, but </mmmm>"MMMM 'yy" yields the same result. Is there any way to create an all-cap custom cell format, or do I need a macro/VB to accomplish it? If so, all suggestions gratefully received.
 

Excel Facts

Can you sort left to right?
To sort left-to-right, use the Sort dialog box. Click Options. Choose "Sort left to right"
Sorry but the short answer is no as far as I'm aware, not using a custom format anyway.

You can get any text into upper case using the UPPER worksheet function.
 
Upvote 0
Sorry but the short answer is no as far as I'm aware, not using a custom format anyway.

You can get any text into upper case using the UPPER worksheet function.
Thanks for the swift reply, Norie. Yes, I was afraid custom format wouldn't work, but I thought maybe someone here knew about a secret code Bill Gates had hidden in Excel 0.97--guess not. The UPPER function won't work on its own either, since the native values I'm working with are not text but Excel date serial numbers, and UPPER(39886) is still 39886.

However, thanks to your suggestion I've just found an answer! UPPER by itself doesn't work, but UPPER(TEXT(39886,"mmmm 'yy")) does. Now to make it do it all in one step. I see daylight ahead... Thanks again!
 
Upvote 0
See example Below
Date as mentioned in cell A1 - 27-Feb-2013.

Now I want to convert the month to upper case and put the result in Cell B1.

=DAY(A1)&"-"&UPPER(TEXT(A1,"mmm")&"-"&YEAR(A1))

Result will be 27-FEB-2013
 
Upvote 0
See example Below
Date as mentioned in cell A1 - 27-Feb-2013.

Now I want to convert the month to upper case and put the result in Cell B1.

=DAY(A1)&"-"&UPPER(TEXT(A1,"mmm")&"-"&YEAR(A1))

Result will be 27-FEB-2013

Try:
=UPPER(TEXT(A1,"dd-mmm-yyyy"))
 
Upvote 0

Forum statistics

Threads
1,214,822
Messages
6,121,772
Members
449,049
Latest member
greyangel23

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top