Group Pivot Table Items

 

Group Products | Group Dates

This example teaches you how to group pivot table items. Learn how to group products and how to group dates by months.

Below you can find a pivot table. Go back to Pivot Tables to learn how to create this pivot table.

Pivot Table

Group Products

The Product field contains 7 items. Apple, Banana, Beans, Broccoli, Carrots, Mango and Orange.

To create two groups, execute the following steps.

1. In the pivot table, select Apple and Banana.

2. Right click and click on Group.

Group 1

3. In the pivot table, select Beans, Broccoli, Carrots, Mango and Orange.

4. Right click and click on Group.

Group 2

Result:

Two Pivot Table Groups in Excel

Note: to change the name of a group (Group1 or Group2), select the name, and edit the name in the formula bar. To ungroup, select the group, right click and click on Ungroup.

5. To collapse the groups, click the minus signs.

Collapsed Groups

Conclusion: Apple and Banana (Group1) have a higher total than all the other products (Group2) together.

Group Dates

To create the pivot table below, instead of the Product field, add the Date field to the Rows area. The Date field contains many items. 1/6/2016, 1/7/2016, 1/8/2016, 1/10/2016, 1/11/2016, etc.

To group these dates by quarters, execute the following steps.

1. Click any cell inside the column with dates.

2. Right click and click on Group.

Group Dates

3. Select Quarters and click OK.

Grouping Options

Note: also see the options to group by seconds, minutes, hours, etc.

Result:

Grouped By Quarters

Conclusion: Quarter 2 is the best quarter.