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

Is there a shortcut key for strikethrough?
Ctrl+S is used for Save. Ctrl+5 is used for Strikethrough. Why Ctrl+5? When you use hashmarks to count |||| is 4, strike through to mean 5.

Forum statistics

Threads
1,223,884
Messages
6,175,171
Members
452,615
Latest member
bogeys2birdies

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