Month sorting in Pivot table

Trepidatioussaurus

New Member
Joined
Oct 12, 2022
Messages
9
Office Version
  1. 2016
Platform
  1. Windows
Hello there,
I've got a question regarding sorting of months in pivot tables. I want to display rolling 12 months as names in the correct order. E.g., newest month is July AY, oldest August of PY, then newest August AY, oldest September PY and so on. How can I sort this "correctly" within a regular pivot table (no power pivot, no manual adjustments). Here's an example:

Month Sorting.xlsx
BCDEFGHIJKL
2Excel Pivot sorts like this with exact date
3
4Jahre(Alle)
5
6ZeilenbeschriftungenSumme von AYSumme von PY
7Jan478357
8Feb456345
9Mär532437
10Apr449438
11Mai432444
12Jun504442
13Jul483457
14Aug0440
15Sep0443
16Okt0472
17Nov0524
18Dez0534
19Gesamtergebnis33345333
20
21
22
23
24
25That's how Excel should sort (automatically, not manually like I did here)
26
27
28Jahre(Alle)
29
30ZeilenbeschriftungenSumme von AYSumme von PY
31Aug0440
32Sep0443
33Okt0472
34Nov0524
35Dez0534
36Jan478357
37Feb456345
38Mär532437
39Apr449438
40Mai432444
41Jun504442
42Jul483457
43Gesamtergebnis33345333
44
Tabelle2


Thank you in advance. If this is not possible in pivot table, I'll look for alternatives.
Kind regards
Stefan
 

Excel Facts

Excel Wisdom
Using a mouse in Excel is the work equivalent of wearing a lanyard when you first get to college
Hi Sanjay,
Thank you for your reply! The problem for me is to make the sorting dynamic and as far as I can see custom lists are static, so I would have to manually adjust or use a different list every month.
Or am I missing something?
Kind regards
Stefan
 
Upvote 0
I suggest you use an actual date field and format it to just display the month.
 
Upvote 0
Thanks Rory, I think that is what I tried as well but it still sorted the months not by its actual date. I'll provide the underlying dataset. Maybe this helps and maybe it is possible after all. Mind that I need Months sorted "correctly" by their name (for subsequent Pivot chart visualization):

DateYearMonthNumberMonthAYPY
01.01.2022202201Jan01
03.01.2022202201Jan01
04.01.2022202201Jan01
05.01.2022202201Jan01
06.01.2022202201Jan01
07.01.2022202201Jan01
08.01.2022202201Jan01
10.01.2022202201Jan01
11.01.2022202201Jan01
12.01.2022202201Jan01
13.01.2022202201Jan01
14.01.2022202201Jan01
15.01.2022202201Jan01
17.01.2022202201Jan01
18.01.2022202201Jan01
19.01.2022202201Jan01
20.01.2022202201Jan01
21.01.2022202201Jan01
22.01.2022202201Jan01
24.01.2022202201Jan01
25.01.2022202201Jan01
26.01.2022202201Jan01
27.01.2022202201Jan01
28.01.2022202201Jan01
29.01.2022202201Jan01
30.01.2022202201Jan01
31.01.2022202201Jan01
01.02.2022202202Feb01
02.02.2022202202Feb01
03.02.2022202202Feb01
04.02.2022202202Feb01
05.02.2022202202Feb01
06.02.2022202202Feb01
07.02.2022202202Feb01
08.02.2022202202Feb01
09.02.2022202202Feb01
10.02.2022202202Feb01
11.02.2022202202Feb01
12.02.2022202202Feb01
13.02.2022202202Feb01
14.02.2022202202Feb01
15.02.2022202202Feb01
16.02.2022202202Feb01
17.02.2022202202Feb01
18.02.2022202202Feb01
19.02.2022202202Feb01
20.02.2022202202Feb01
21.02.2022202202Feb01
22.02.2022202202Feb01
23.02.2022202202Feb01
24.02.2022202202Feb01
25.02.2022202202Feb01
26.02.2022202202Feb01
27.02.2022202202Feb01
28.02.2022202202Feb01
01.03.2022202203Mrz01
02.03.2022202203Mrz01
03.03.2022202203Mrz01
04.03.2022202203Mrz01
05.03.2022202203Mrz01
07.03.2022202203Mrz01
08.03.2022202203Mrz01
09.03.2022202203Mrz01
10.03.2022202203Mrz01
11.03.2022202203Mrz01
12.03.2022202203Mrz01
13.03.2022202203Mrz01
14.03.2022202203Mrz01
15.03.2022202203Mrz01
16.03.2022202203Mrz01
17.03.2022202203Mrz01
18.03.2022202203Mrz01
19.03.2022202203Mrz01
21.03.2022202203Mrz01
22.03.2022202203Mrz01
23.03.2022202203Mrz01
24.03.2022202203Mrz01
25.03.2022202203Mrz01
26.03.2022202203Mrz01
27.03.2022202203Mrz01
28.03.2022202203Mrz01
29.03.2022202203Mrz01
30.03.2022202203Mrz01
31.03.2022202203Mrz01
01.04.2022202204Apr01
02.04.2022202204Apr01
03.04.2022202204Apr01
04.04.2022202204Apr01
05.04.2022202204Apr01
06.04.2022202204Apr01
07.04.2022202204Apr01
08.04.2022202204Apr01
09.04.2022202204Apr01
11.04.2022202204Apr01
12.04.2022202204Apr01
13.04.2022202204Apr01
14.04.2022202204Apr01
15.04.2022202204Apr01
16.04.2022202204Apr01
17.04.2022202204Apr01
18.04.2022202204Apr01
19.04.2022202204Apr01
20.04.2022202204Apr01
21.04.2022202204Apr01
22.04.2022202204Apr01
23.04.2022202204Apr01
24.04.2022202204Apr01
25.04.2022202204Apr01
26.04.2022202204Apr01
27.04.2022202204Apr01
28.04.2022202204Apr01
29.04.2022202204Apr01
30.04.2022202204Apr01
01.05.2022202205Mai01
02.05.2022202205Mai01
03.05.2022202205Mai01
04.05.2022202205Mai01
05.05.2022202205Mai01
06.05.2022202205Mai01
07.05.2022202205Mai01
08.05.2022202205Mai01
09.05.2022202205Mai01
10.05.2022202205Mai01
11.05.2022202205Mai01
12.05.2022202205Mai01
13.05.2022202205Mai01
14.05.2022202205Mai01
15.05.2022202205Mai01
16.05.2022202205Mai01
17.05.2022202205Mai01
18.05.2022202205Mai01
19.05.2022202205Mai01
20.05.2022202205Mai01
21.05.2022202205Mai01
22.05.2022202205Mai01
23.05.2022202205Mai01
24.05.2022202205Mai01
25.05.2022202205Mai01
26.05.2022202205Mai01
27.05.2022202205Mai01
28.05.2022202205Mai01
29.05.2022202205Mai01
30.05.2022202205Mai01
31.05.2022202205Mai01
01.06.2022202206Jun01
02.06.2022202206Jun01
03.06.2022202206Jun01
04.06.2022202206Jun01
05.06.2022202206Jun01
06.06.2022202206Jun01
07.06.2022202206Jun01
08.06.2022202206Jun01
09.06.2022202206Jun01
10.06.2022202206Jun01
11.06.2022202206Jun01
12.06.2022202206Jun01
13.06.2022202206Jun01
14.06.2022202206Jun01
15.06.2022202206Jun01
16.06.2022202206Jun01
17.06.2022202206Jun01
18.06.2022202206Jun01
20.06.2022202206Jun01
21.06.2022202206Jun01
22.06.2022202206Jun01
23.06.2022202206Jun01
24.06.2022202206Jun01
25.06.2022202206Jun01
26.06.2022202206Jun01
27.06.2022202206Jun01
28.06.2022202206Jun01
29.06.2022202206Jun01
30.06.2022202206Jun01
01.07.2022202207Jul01
02.07.2022202207Jul01
03.07.2022202207Jul01
04.07.2022202207Jul01
05.07.2022202207Jul01
06.07.2022202207Jul01
07.07.2022202207Jul01
08.07.2022202207Jul01
09.07.2022202207Jul01
10.07.2022202207Jul01
11.07.2022202207Jul01
12.07.2022202207Jul01
13.07.2022202207Jul01
14.07.2022202207Jul01
15.07.2022202207Jul01
16.07.2022202207Jul01
17.07.2022202207Jul01
18.07.2022202207Jul01
19.07.2022202207Jul01
20.07.2022202207Jul01
21.07.2022202207Jul01
22.07.2022202207Jul01
23.07.2022202207Jul01
24.07.2022202207Jul01
25.07.2022202207Jul01
26.07.2022202207Jul01
27.07.2022202207Jul01
28.07.2022202207Jul01
29.07.2022202207Jul01
30.07.2022202207Jul01
31.07.2022202207Jul01
01.08.2022202208Aug01
02.08.2022202208Aug01
03.08.2022202208Aug01
04.08.2022202208Aug01
05.08.2022202208Aug01
06.08.2022202208Aug01
08.08.2022202208Aug01
09.08.2022202208Aug01
10.08.2022202208Aug01
11.08.2022202208Aug01
12.08.2022202208Aug01
13.08.2022202208Aug01
14.08.2022202208Aug01
15.08.2022202208Aug01
16.08.2022202208Aug01
17.08.2022202208Aug01
18.08.2022202208Aug01
19.08.2022202208Aug01
20.08.2022202208Aug01
21.08.2022202208Aug01
22.08.2022202208Aug01
23.08.2022202208Aug01
24.08.2022202208Aug01
25.08.2022202208Aug01
26.08.2022202208Aug01
27.08.2022202208Aug01
28.08.2022202208Aug01
29.08.2022202208Aug01
30.08.2022202208Aug01
31.08.2022202208Aug01
01.09.2022202209Sep01
02.09.2022202209Sep01
03.09.2022202209Sep01
04.09.2022202209Sep01
05.09.2022202209Sep01
06.09.2022202209Sep01
07.09.2022202209Sep01
08.09.2022202209Sep01
09.09.2022202209Sep01
10.09.2022202209Sep01
11.09.2022202209Sep01
12.09.2022202209Sep01
13.09.2022202209Sep01
14.09.2022202209Sep01
15.09.2022202209Sep01
16.09.2022202209Sep01
17.09.2022202209Sep01
18.09.2022202209Sep01
19.09.2022202209Sep01
20.09.2022202209Sep01
21.09.2022202209Sep01
22.09.2022202209Sep01
23.09.2022202209Sep01
24.09.2022202209Sep01
25.09.2022202209Sep01
26.09.2022202209Sep01
27.09.2022202209Sep01
28.09.2022202209Sep01
29.09.2022202209Sep01
30.09.2022202209Sep01
01.10.2022202210Okt01
02.10.2022202210Okt01
03.10.2022202210Okt01
04.10.2022202210Okt01
05.10.2022202210Okt01
06.10.2022202210Okt01
07.10.2022202210Okt01
08.10.2022202210Okt01
09.10.2022202210Okt01
10.10.2022202210Okt01
11.10.2022202210Okt01
12.10.2022202210Okt01
13.10.2022202210Okt01
14.10.2022202210Okt01
15.10.2022202210Okt01
17.10.2022202210Okt01
18.10.2022202210Okt01
19.10.2022202210Okt01
20.10.2022202210Okt01
21.10.2022202210Okt01
22.10.2022202210Okt01
23.10.2022202210Okt01
24.10.2022202210Okt01
25.10.2022202210Okt01
26.10.2022202210Okt01
27.10.2022202210Okt01
28.10.2022202210Okt01
29.10.2022202210Okt01
30.10.2022202210Okt01
31.10.2022202210Okt01
01.11.2022202211Nov01
02.11.2022202211Nov01
03.11.2022202211Nov01
04.11.2022202211Nov01
05.11.2022202211Nov01
06.11.2022202211Nov01
07.11.2022202211Nov01
08.11.2022202211Nov01
09.11.2022202211Nov01
10.11.2022202211Nov01
11.11.2022202211Nov01
12.11.2022202211Nov01
13.11.2022202211Nov01
14.11.2022202211Nov01
15.11.2022202211Nov01
16.11.2022202211Nov01
17.11.2022202211Nov01
18.11.2022202211Nov01
19.11.2022202211Nov01
20.11.2022202211Nov01
21.11.2022202211Nov01
22.11.2022202211Nov01
23.11.2022202211Nov01
24.11.2022202211Nov01
25.11.2022202211Nov01
26.11.2022202211Nov01
27.11.2022202211Nov01
28.11.2022202211Nov01
29.11.2022202211Nov01
30.11.2022202211Nov01
01.12.2022202212Dez01
02.12.2022202212Dez01
03.12.2022202212Dez01
04.12.2022202212Dez01
05.12.2022202212Dez01
06.12.2022202212Dez01
07.12.2022202212Dez01
08.12.2022202212Dez01
09.12.2022202212Dez01
10.12.2022202212Dez01
11.12.2022202212Dez01
12.12.2022202212Dez01
13.12.2022202212Dez01
14.12.2022202212Dez01
15.12.2022202212Dez01
16.12.2022202212Dez01
17.12.2022202212Dez01
18.12.2022202212Dez01
19.12.2022202212Dez01
20.12.2022202212Dez01
21.12.2022202212Dez01
22.12.2022202212Dez01
23.12.2022202212Dez01
24.12.2022202212Dez01
25.12.2022202212Dez01
27.12.2022202212Dez01
28.12.2022202212Dez01
29.12.2022202212Dez01
30.12.2022202212Dez01
31.12.2022202212Dez01
01.01.2023202301Jan10
02.01.2023202301Jan10
03.01.2023202301Jan10
04.01.2023202301Jan10
05.01.2023202301Jan10
06.01.2023202301Jan10
07.01.2023202301Jan10
09.01.2023202301Jan10
10.01.2023202301Jan10
11.01.2023202301Jan10
12.01.2023202301Jan10
13.01.2023202301Jan10
14.01.2023202301Jan10
15.01.2023202301Jan10
16.01.2023202301Jan10
17.01.2023202301Jan10
18.01.2023202301Jan10
19.01.2023202301Jan10
20.01.2023202301Jan10
21.01.2023202301Jan10
22.01.2023202301Jan10
23.01.2023202301Jan10
24.01.2023202301Jan10
25.01.2023202301Jan10
26.01.2023202301Jan10
27.01.2023202301Jan10
28.01.2023202301Jan10
29.01.2023202301Jan10
30.01.2023202301Jan10
31.01.2023202301Jan10
01.02.2023202302Feb10
02.02.2023202302Feb10
03.02.2023202302Feb10
04.02.2023202302Feb10
05.02.2023202302Feb10
06.02.2023202302Feb10
07.02.2023202302Feb10
08.02.2023202302Feb10
09.02.2023202302Feb10
10.02.2023202302Feb10
11.02.2023202302Feb10
12.02.2023202302Feb10
13.02.2023202302Feb10
14.02.2023202302Feb10
15.02.2023202302Feb10
16.02.2023202302Feb10
17.02.2023202302Feb10
18.02.2023202302Feb10
19.02.2023202302Feb10
20.02.2023202302Feb10
21.02.2023202302Feb10
22.02.2023202302Feb10
23.02.2023202302Feb10
24.02.2023202302Feb10
25.02.2023202302Feb10
26.02.2023202302Feb10
27.02.2023202302Feb10
28.02.2023202302Feb10
01.03.2023202303Mrz10
02.03.2023202303Mrz10
03.03.2023202303Mrz10
04.03.2023202303Mrz10
05.03.2023202303Mrz10
06.03.2023202303Mrz10
07.03.2023202303Mrz10
08.03.2023202303Mrz10
09.03.2023202303Mrz10
10.03.2023202303Mrz10
11.03.2023202303Mrz10
12.03.2023202303Mrz10
13.03.2023202303Mrz10
14.03.2023202303Mrz10
15.03.2023202303Mrz10
16.03.2023202303Mrz10
17.03.2023202303Mrz10
18.03.2023202303Mrz10
19.03.2023202303Mrz10
20.03.2023202303Mrz10
21.03.2023202303Mrz10
22.03.2023202303Mrz10
23.03.2023202303Mrz10
24.03.2023202303Mrz10
25.03.2023202303Mrz10
26.03.2023202303Mrz10
27.03.2023202303Mrz10
28.03.2023202303Mrz10
29.03.2023202303Mrz10
30.03.2023202303Mrz10
31.03.2023202303Mrz10
01.04.2023202304Apr10
02.04.2023202304Apr10
03.04.2023202304Apr10
04.04.2023202304Apr10
05.04.2023202304Apr10
06.04.2023202304Apr10
07.04.2023202304Apr10
08.04.2023202304Apr10
09.04.2023202304Apr10
10.04.2023202304Apr10
11.04.2023202304Apr10
12.04.2023202304Apr10
13.04.2023202304Apr10
14.04.2023202304Apr10
15.04.2023202304Apr10
16.04.2023202304Apr10
17.04.2023202304Apr10
18.04.2023202304Apr10
19.04.2023202304Apr10
20.04.2023202304Apr10
21.04.2023202304Apr10
22.04.2023202304Apr10
23.04.2023202304Apr10
24.04.2023202304Apr10
25.04.2023202304Apr10
26.04.2023202304Apr10
27.04.2023202304Apr10
28.04.2023202304Apr10
29.04.2023202304Apr10
30.04.2023202304Apr10
01.05.2023202305Mai10
02.05.2023202305Mai10
03.05.2023202305Mai10
04.05.2023202305Mai10
05.05.2023202305Mai10
06.05.2023202305Mai10
07.05.2023202305Mai10
08.05.2023202305Mai10
09.05.2023202305Mai10
10.05.2023202305Mai10
11.05.2023202305Mai10
12.05.2023202305Mai10
13.05.2023202305Mai10
14.05.2023202305Mai10
15.05.2023202305Mai10
16.05.2023202305Mai10
17.05.2023202305Mai10
18.05.2023202305Mai10
19.05.2023202305Mai10
20.05.2023202305Mai10
21.05.2023202305Mai10
22.05.2023202305Mai10
23.05.2023202305Mai10
24.05.2023202305Mai10
25.05.2023202305Mai10
26.05.2023202305Mai10
27.05.2023202305Mai10
28.05.2023202305Mai10
29.05.2023202305Mai10
30.05.2023202305Mai10
31.05.2023202305Mai10
01.06.2023202306Jun10
02.06.2023202306Jun10
03.06.2023202306Jun10
04.06.2023202306Jun10
05.06.2023202306Jun10
06.06.2023202306Jun10
07.06.2023202306Jun10
08.06.2023202306Jun10
09.06.2023202306Jun10
10.06.2023202306Jun10
11.06.2023202306Jun10
12.06.2023202306Jun10
13.06.2023202306Jun10
14.06.2023202306Jun10
15.06.2023202306Jun10
16.06.2023202306Jun10
17.06.2023202306Jun10
19.06.2023202306Jun10
20.06.2023202306Jun10
21.06.2023202306Jun10
22.06.2023202306Jun10
23.06.2023202306Jun10
24.06.2023202306Jun10
25.06.2023202306Jun10
26.06.2023202306Jun10
27.06.2023202306Jun10
28.06.2023202306Jun10
29.06.2023202306Jun10
30.06.2023202306Jun10
01.07.2023202307Jul10
02.07.2023202307Jul10
03.07.2023202307Jul10
04.07.2023202307Jul10
05.07.2023202307Jul10
06.07.2023202307Jul10
07.07.2023202307Jul10
08.07.2023202307Jul10
09.07.2023202307Jul10
10.07.2023202307Jul10
11.07.2023202307Jul10
12.07.2023202307Jul10
13.07.2023202307Jul10
14.07.2023202307Jul10
15.07.2023202307Jul10
17.07.2023202307Jul10
18.07.2023202307Jul10
19.07.2023202307Jul10
20.07.2023202307Jul10
21.07.2023202307Jul10
22.07.2023202307Jul10
23.07.2023202307Jul10
24.07.2023202307Jul10
25.07.2023202307Jul10
26.07.2023202307Jul10
27.07.2023202307Jul10
28.07.2023202307Jul10
29.07.2023202307Jul10
30.07.2023202307Jul10
31.07.2023202307Jul10
 
Upvote 0
You'll need a new column that converts the date column to a consistent date per month (eg 1st or last day). Then use that in the pivot table and format the field as mmm so that only the month abbreviation shows.
 
Upvote 0
Solution

Forum statistics

Threads
1,215,136
Messages
6,123,249
Members
449,093
Latest member
Vincent Khandagale

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