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,082,167
Messages
5,363,528
Members
400,747
Latest member
monty_gl

Some videos you may like

This Week's Hot Topics

  • populate from drop list with multiple tables
    Hi All, i have a drop list that displays data, what i want is when i select one of those from the list to populate text from different tables on...
  • Find list of words from sheet2 in sheet1 before a comma and extract text vba
    Hi Friends, Trying to find the solution on my task. But did not find suitable one to the need. Here is my query and sample file with details...
  • Dynamic Formula entry - VBA code sought
    Hello, really hope one of you experts can help with this - i've spent hours on this and getting no-where. .I have a set of data (more rows than...
  • Listbox Header
    Have a named range called "AccidentsHeader" Within my code I have: [CODE]Private Sub CommandButton1_Click() ListBox1.RowSource =...
  • Complex Heat Map using conditional formatting
    Good day excel world. I have a concern. Below link have a list of countries that carries each country unique data. [URL...
  • Conditional formatting
    Hi good morning, hope you can help me please, I have cells P4:P54 and if this cell is equal to 1 then i want row O to say "Fully Utilised" and to...
Top