pivot table order

bigdan

Well-known Member
Joined
Oct 5, 2009
Messages
846
Office Version
  1. 2013
Platform
  1. Windows
Hello

I've got a number of expenses with the month attached. Right now the month column says things like "Aug 2016", "June 2017", in text format.

When I created a pivot table, these months didn't appear in order. At the moment the top says Apr 2016, followed by Apr 2017, then Aug 2016, etc.

What would be the proper way to change the source data, so this appears more organically? I dont have a date, just a month and a year.
 

Excel Facts

Waterfall charts in Excel?
Office 365 customers have access to Waterfall charts since late 2016. They were added to Excel 2019.
If you haven't found a solution, yet, you could try text to columns on your date row in the source data and set the value to M/Y/D format. Excel Should convert the text to a date value (tested, but with my data). Your pivot table will change the date to 07/01/2016 for July 2016, for example, and you can change the format for that column back by selecting the whole column, then using custom format and setting it to mmmm yyyy. There may be a slicker way to do it, but given this is a month old with no responses, I gave a shot at strong-arming it. :) I was able to then sort in chronological order from:

Code:
[TABLE="width: 110"]
<tbody>[TR]
[TD]Row Labels[/TD]
[/TR]
[TR]
[TD]June 2016[/TD]
[/TR]
[TR]
[TD]July 2017[/TD]
[/TR]
[TR]
[TD]August 2014[/TD]
[/TR]
[TR]
[TD]May 2016[/TD]
[/TR]
[TR]
[TD]September 2015[/TD]
[/TR]
</tbody>[/TABLE]

to

Code:
[TABLE="width: 110"]
<tbody>[TR]
[TD]Row Labels[/TD]
[/TR]
[TR]
[TD]August 2014[/TD]
[/TR]
[TR]
[TD]September 2015[/TD]
[/TR]
[TR]
[TD]May 2016[/TD]
[/TR]
[TR]
[TD]June 2016[/TD]
[/TR]
[TR]
[TD]July 2017[/TD]
[/TR]
</tbody>[/TABLE]
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,181
Members
453,022
Latest member
Mohamed Magdi Tawfiq Emam

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