Created a column for Month (integer) in a named range, trying to display it as a named Month (ex. "March"), excel keeps reading this integer as a day.

xriphenburg

New Member
Joined
Aug 22, 2017
Messages
1
Right now I am working with a data table, to which I added a 'Month' column, as an integer (1 for January, 2 for February, etc.). While pulling this data into Pivot Tables using the Month column, I wanted to display the months as actual names Months - 'January, February', etc. When I edit the Number Format within the Pivot Table, Excel recognized my integers as days. So when I convert the Format into 'mmmm' everything is showing as 'January'.

So essentially, when I have Month 4 in my column, I want it to display as April in my Pivot Table. But Excel recognized this integer as d, so in d-mmm format it would show as 4-Jan. So all of my months are displaying as 'January' when I want them to show the full month name.

Not having fun. what do?
 

Little_Clubber

New Member
Joined
Nov 10, 2017
Messages
23
I don't know of a way to do that but I know of a work-around...

Create a lookup table on another sheet somewhere where you have the number and its corresponding month.
On your main data page, insert a column anywhere called Month and do a Vlookup
=VLOOKUP(A2,TABLE,2,FALSE)
Where your month number is in A2, and you named your lookup table as "Table"
This would put the month onto your main page, and you could include the month name on your pivot instead of your month number.
 

inactiveuserps07

Banned user
Joined
May 25, 2017
Messages
748
@xriphenburg, another option would be to create a helper column next to your Month column with this formula:

=DATE(YEAR(NOW()),month-column-cell-reference,1)

Then use the helper column instead of the Month column in your pivot table, formatted as "mmmm."

You can hide the helper column if you don't want to see it, or you can format the helper column as Special > mmmm to see the month name in that column.
 

Forum statistics

Threads
1,085,564
Messages
5,384,462
Members
401,902
Latest member
lilytran14

Some videos you may like

This Week's Hot Topics

Top