Filters and grouping by month

People usually look at revenue by month, not by day: how much was earned in January, how much in February. But if you build a PivotTable from a column of dates, Excel shows each day as a separate row. Here's what that looks like for orders from early 2025 and early 2026:

fx
A
B
C
D
E
F
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
Date
City
Revenue, $
01.01.2025
Denver
3200
02.01.2025
Boston
12800
05.01.2025
Denver
10100
07.01.2025
Austin
11100
12.01.2025
Boston
8000
20.01.2025
Denver
3500
05.02.2025
Boston
4200
09.02.2025
Denver
6800
10.02.2025
Denver
11700
15.02.2025
Boston
3200
21.02.2025
Boston
4400
02.03.2025
Boston
4700
12.03.2025
Denver
12600
13.03.2025
Austin
11500
18.03.2025
Austin
6900
22.03.2025
Denver
9000
26.03.2025
Denver
9100
07.04.2025
Boston
3000
09.01.2026
Boston
12400
14.01.2026
Denver
12000
17.01.2026
Denver
11600
22.01.2026
Austin
5100
01.02.2026
Austin
3300
03.02.2026
Denver
9300
17.02.2026
Boston
2900
24.02.2026
Boston
8200
25.02.2026
Denver
3700
11.03.2026
Denver
4600
17.03.2026
Boston
9400
23.03.2026
Denver
7400
25.03.2026
Austin
10800
27.03.2026
Denver
7800
28.03.2026
Denver
6800
03.04.2026
Denver
3100
07.04.2026
Boston
7700
08.04.2026
Boston
5700
16.04.2026
Denver
11500
21.04.2026
Denver
3400
22.04.2026
Denver
13400
25.04.2026
Austin
6600
Sheet1
The report came out longer than the table itself: a row for each of the 40 dates.

Days add up to months

In Excel, adding days up into months is called grouping dates. Newer versions of Excel often do it by themselves: put a date field into Rows, and the report is already split by year and month. If the report still shows individual days, as above, right-click any date in the report and choose Group….

The Grouping dialog opens. In its By list, you select what to add the dates up by, and you can select several items at once:

  • Months;
  • Quarters;
  • Years.

The diagram shows twelve orders from the same table, and you can see which of them land in each report row with different steps:

Order year:20252026
Report rowOrdersRevenue, $
Jan
1/121/201/91/22
29,000
Feb
2/52/32/17
16,400
Mar
3/183/113/25
22,300
Apr
4/74/21
11,100
Grand Total78,800

The Months step looks only at the month and ignores the year. That's why January 2025 and January 2026 end up in the same row. If the table holds data for several years, select Months and Years together.

Here are the same forty orders as at the start of the lesson. Their report is grouped with the Months step alone, and the "Jan" row adds up both Januaries. Add years to the months:

fx
A
B
C
D
E
F
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
Date
City
Revenue, $
01.01.2025
Denver
3200
02.01.2025
Boston
12800
05.01.2025
Denver
10100
07.01.2025
Austin
11100
12.01.2025
Boston
8000
20.01.2025
Denver
3500
05.02.2025
Boston
4200
09.02.2025
Denver
6800
10.02.2025
Denver
11700
15.02.2025
Boston
3200
21.02.2025
Boston
4400
02.03.2025
Boston
4700
12.03.2025
Denver
12600
13.03.2025
Austin
11500
18.03.2025
Austin
6900
22.03.2025
Denver
9000
26.03.2025
Denver
9100
07.04.2025
Boston
3000
09.01.2026
Boston
12400
14.01.2026
Denver
12000
17.01.2026
Denver
11600
22.01.2026
Austin
5100
01.02.2026
Austin
3300
03.02.2026
Denver
9300
17.02.2026
Boston
2900
24.02.2026
Boston
8200
25.02.2026
Denver
3700
11.03.2026
Denver
4600
17.03.2026
Boston
9400
23.03.2026
Denver
7400
25.03.2026
Austin
10800
27.03.2026
Denver
7800
28.03.2026
Denver
6800
03.04.2026
Denver
3100
07.04.2026
Boston
7700
08.04.2026
Boston
5700
16.04.2026
Denver
11500
21.04.2026
Denver
3400
22.04.2026
Denver
13400
25.04.2026
Austin
6600
Sheet1
The report came out longer than the table itself: a row for each of the 40 dates.

Only real dates can be grouped. They're aligned to the right edge of the cell. A date at the left edge is stored as text, and the PivotTable won't group it.

Report filter

Sometimes you need a report not on all orders, but on just one city. There's no need to copy the table and delete the other cities from it: the report has a Filters area.

A field in Rows splits the report into rows. A field in Filters doesn't add any rows: it decides which orders get into the report at all. That's why a filter changes all the numbers at once, Grand Total included.

The report by category is already built. Keep only the orders from the cities you need in it, and you can pick more than one:

Move “City” to the filters: click the arrow to the right of the field in the list and choose Add to Report Filter
fx
A
B
C
D
E
F
G
1
2
3
4
5
6
7
8
9
10
11
12
13
14
Date
City
Category
Revenue, $
12.01.2025
Boston
Electronics
8000
20.01.2025
Denver
Clothing
3500
05.02.2025
Boston
Clothing
4200
18.03.2025
Austin
Electronics
6900
09.01.2026
Boston
Electronics
12400
22.01.2026
Austin
Clothing
5100
03.02.2026
Denver
Electronics
9300
17.02.2026
Boston
Clothing
2900
11.03.2026
Denver
Clothing
4600
25.03.2026
Austin
Electronics
10800
07.04.2026
Boston
Electronics
7700
21.04.2026
Denver
Clothing
3400
Sheet1
The report by category counts all 12 orders.

Revenue by month and one city's revenue by category both come from a single table, with no copies and no adding up by hand.