spot_img

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 quarters.

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. 6-Jan, 7-Jan, 8-Jan, 10-Jan, 11-Jan, 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.

spot_img
Previous articleHow to use GETPIVOTDATA in Excel
Next articleHow to Lock Cells in Excel