Pivot Table - Sorting MMM-YY

DaPain

New Member
Joined
Jan 24, 2023
Messages
2
Office Version
  1. 365
Platform
  1. Windows
Hi,

I have a table in the following format:

DateInserted
IdentityNumber
TeamName
MMYY
21/12/2022​
0101040504Team A
Dec-22​
10/05/2022​
0101590849Team A
May-22​
07/06/2022​
0101632916Team A
Jun-22​
06/06/2022​
0101750412Team Z
Jun-22​
25/10/2022​
0101770383Team B
Oct-22​
22/12/2022​
0101830297Team E
Dec-22​
14/11/2022​
0101851162Team B
Nov-22​
10/01/2022​
0101852347Team E
Jan-22​
07/06/2022​
0101889976Team A
Jun-22​


The DateInserted is in a date format. The MMYY column is inserted in from the first column using this formula:
Excel Formula:
=DATE(YEAR(A2),MONTH(A2),1)
and converting it to the date format (MMM-YY)

When I create a Pivot Table then it comes out like this:
PivotTable1.jpg




What I want is the column headers should be in the format of MMM-YY and sorted as months too.
Like Jan 22, Feb 22..........Jan 23, Feb 23 etc.,


I don't want to use the =TEXT(A2,"mmm-yy") formula, as when i sort this in the pivot table, the dates are recognised as text and will be sorted into alphabetical order, not date order.

Thanks in advance.
 

Excel Facts

Why are there 1,048,576 rows in Excel?
The Excel team increased the size of the grid in 2007. There are 2^20 rows and 2^14 columns for a total of 17 billion cells.

Forum statistics

Threads
1,224,811
Messages
6,181,081
Members
453,021
Latest member
Justyna P

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