Displaying 1-12 numbers as months of the year

Mary90

New Member
Joined
Sep 8, 2015
Messages
22
Hi guys:rolleyes:

I have a graph that uses the actual numbers 1-12 to display months, but I'd like the data label to display the month written out as text.

Since the number must stay as an integer between 1 and 12, I cannot use date type formulae, since they then need the number to become a date number. Is there a way to create a number format to do this? "mmm" will obviously not work. (i.e., 12 should be "December" and not "12 Jan 1900" as it will currently be interpreted as)

Thanks!
 
Thanks Rick. I appreciate your explanation. As jonmo1 said it is a neat trick!
 
Upvote 0

Excel Facts

Spell Check in Excel
Press F7 to start spell check in Excel. Be careful, by default, Excel does not check Capitalized Werds (whoops)
Thanks Rick. I appreciate your explanation. As jonmo1 said it is a neat trick!
You are welcome. I came up with the idea for that "trick" probably about 10 or so years ago back when I was volunteering answering questions for the compiled version of Visual Basic. If you are familiar with VB/VBA programming, the "trick" works using VB's Format function in the same way as it works in Excel using the TEXT function...
Code:
MsgBox Format(28 * MonthNumber, "mmmm")
 
Upvote 0

Forum statistics

Threads
1,216,106
Messages
6,128,863
Members
449,473
Latest member
soumyahalder4

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