ABCDEFGHIJKLMNOPQRSTUVWXYZ
1
MonthCountryStat1Stat2Stat3Stat4Submitter
2
01-2026Albania16853Peter Parker
3
01-2026Albania512212Tom Holland
4
01-2026Albania512212Toby Mac
5
01-2026Poland42118Micky Mouse
6
01-2026Poland2656Donald Duck
7
01-2026Poland87144Snow White
8
9
10
11
12
Notes:
(from my troubleshooting)
13
1. Data is sorted by Month, then by Country
14
2. If the number of rows in the first Country is 1 or 2, then we see the problem where the last month Total row and the last country row are swapped.
15
3. If I add more rows to Albania, then the problem goes away.
16
4. I am not manually inserting or moving any of the SUBTOTAL rows.
17
18
Steps:
19
1. Select entire worksheet
20
2. Click on "Subtotal" and then Remove All
21
3. In the main worksheet highlight the data, from A1 to G6
22
4. Click on "Subtotal" and select "at each change in " Month, "use function" Sum, "add subtotal to" for each Stat column; select "replace current subtotals"; click OK
23
5. Click on "Subtotal" and select "at each change in " Country, "use function" Sum, "add subtotal to" for each Stat column, UNSELECT "replace current subtotals"; click OK
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100