Number Format - Capitalize

J

Josh O.

Is there a way to get a number format to show capital letters?

For example, I want to display 3/14/2006 as "MAR". I can get it to display
as Mar, but my boss wants it to appear as capital letters.
 
D

Don Guillett

right click sheet tab>view code>insert this>

Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Column <> 2 Then Exit Sub
Target = UCase(Format(Target, "MMM"))

End Sub
 
J

Josh O.

Is there anything I need to do?

Don Guillett said:
right click sheet tab>view code>insert this>

Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Column <> 2 Then Exit Sub
Target = UCase(Format(Target, "MMM"))

End Sub
 
D

daddylonglegs

You could use a font which only displays capital letters.....

or with a formula in another cell

=UPPER(TEXT(A1,"mmm"))
 
D

Don Guillett

Do as I said and any date such as 3/15 entered into any cell in column B
will say MAR
 
B

Big Rick

I quite like this.
Please can you tell me what to change to only have this in one cell. (say A2)

Thanking you in anticipation.
Your help is and always has been very much appreciated.
 
B

Big Rick

Thank you for replying and for quick responce.
This did work but had to change the = to <>.
I must be getting better. I wouldn't of been able to work that one out a
couple of months ago.

Thank you again
 
Top