Excel number format to convert number of month to name of month

microsoft excel

I have a cell which will contain a number from 1-12. I would like to set a number format so that this cell will show "Jan"-"Dec" while still containing the numerical value 1-12. I have tried formatting it as "mmmm" but it interprets the number as a date serial number and always returns "January".

Best Answer

To use any type of format, Excel needs to understand what the number means. There is no basis for Excel to know that 1-12 means Jan-Dec. This means that you need to add functions or some other basis to translate it if you want that cell to display it as a month. Bottom line, there is no way to have a cell contain just the number and display it as a month.

You can use a second cell with the translation, as has been discussed. An alternative is to do it the other way around--store the value in a form Excel can display as a month and then use a function in the formula that references it to translate that back to a number.

Related Question