Sub topic 4
Group Items by Hand
This chapter assumes that you know basic Google Sheets navigation, cell formulas, and the main parts of a pivot table: rows, columns, values, and filters.
Manual grouping combines selected pivot items into a category that does not exist in the source data. For example, you can group the East and West regions into Core, while leaving South as its own group. The original source rows do not change. Only the pivot table's view changes.
Prepare the source data
Use one header row and one record per row. The fields that you plan to group should contain consistent values.
Date Region Product Units Revenue Cost
2026-01-05 West Widget 10 250 150
2026-01-19 East Widget 4 100 60
2026-02-02 West Gadget 7 420 245
2026-02-23 South Gadget 3 180 105
2026-03-09 East Gizmo 12 600 420Create a pivot table from the complete range, including the header row:
- Select the source range.
- Choose Insert > Pivot table.
- Choose a new sheet or an existing sheet.
- In the pivot table editor, add
Regionunder Rows. - Add
Unitsunder Values and leave its summary as SUM.
The pivot table now has one row for each region.
Select items to group
A manual group is made from item labels inside the pivot table, not from the original source table.
To group East and West:
- Select the
EastandWestitem cells in the pivot table. Use Ctrl-click or Command-click if you need to select nonadjacent cells. - Right-click the selected cells.
- Choose Create pivot group.
Google Sheets adds a group containing the selected items. Depending on the sheet layout, the group may appear as a new row label with a default name such as Group 1.
You can use the same process for items displayed under Columns. For example, if Product is a column field, select Widget and Gadget and create a group. The group then becomes a column category.
Rename and use the group
Rename a group so that its purpose is clear:
- Double-click the default group label in the pivot table.
- Enter a name such as
Core. - Press Enter.
The result should resemble this:
| Region group | SUM of Units |
|---|---|
| Core | 33 |
| South | 3 |
| Grand Total | 36 |
The Core total is 33 because it includes the East and West records:
- East: 4 + 12 = 16 units
- West: 10 + 7 = 17 units
- Core: 16 + 17 = 33 units
The source data still contains East and West as separate values. The group is a pivot-table classification, so later source edits may change the items included in the group.
A group can contain several items, but an item should belong to only one group within that field. If you need overlapping categories, add a separate classification column to the source data instead. For example, a region cannot normally be both Core and Priority through two overlapping manual groups. A source column such as Sales Segment is better for that design.
Edit or remove a group
To change the membership of a group, select the relevant pivot item and use the right-click menu. Depending on the current selection, Google Sheets provides options to edit the group or add items to it.
To remove the grouping, right-click the grouped item and choose Ungroup pivot items. This restores the individual pivot items. It does not delete or alter the source rows.
If the grouping option is missing, check these points:
- You selected item labels inside the pivot table, not source cells.
- You selected at least two compatible items.
- The field is already placed in the pivot table as a row or column field.
- The pivot table has refreshed after changes to its source range.
Verify grouped totals
Always compare the grouped result with a direct calculation from the source data. For the example, the Core total should equal the sum of every Units value where Region is East or West.
Exercise
You group East and West into Core. The pivot table shows Core with 33 units and South with 3 units. What should the grand total be, and why?
Show answer
The grand total should be 36 units. Core contains 33 units from East and West, and South contributes 3 units.