Sub topic 4
Group items by hand
A manual group combines several items from one pivot row or column field into a single, named item. This chapter covers how to create, rename, and remove manual groups, and how they interact with totals, filters, and changing source data. It assumes you can build a basic pivot table with rows, columns, and values, and that your source range has one header row and one record per row.
What a manual group does
A pivot table lists every distinct value in a row or column field as its own item. When a field has many values, the table gets long, and the pattern you care about is hard to see. A manual group collapses a chosen set of those items into one new item. The values for the group are the summarized values of all member rows, calculated by the same function you chose for that value column.
The running example uses this source table (tab-separated):
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 420Build a pivot table with Region in Rows and SUM of Revenue in Values. Without grouping, you get this:
| Region | SUM of Revenue |
|---|---|
| East | 700 |
| South | 180 |
| West | 670 |
| Grand total | 1550 |
Suppose your team treats East and South as one sales territory. A manual group called "Other regions" gives this:
| Region | SUM of Revenue |
|---|---|
| Other regions | 880 |
| West | 670 |
| Grand total | 1550 |
The grand total stays at 1550. Grouping redistributes the same rows into fewer buckets. It never adds or removes data.
Create a group
You can group items in a row field or a column field. You cannot group the items of a filter or the fields in Values.
- Click the pivot table so the editor panel is available.
- In the pivot table itself, click the first item you want, for example
East. - Hold Ctrl (Windows, ChromeOS) or Cmd (Mac) and click each additional item, for example
South. - Right-click one of the selected items.
- Choose Create pivot group.
The selected items are replaced by one new item with a default name. Items you did not select stay as they were.
Two details matter in practice:
- You select items in the table body, not in the editor panel. The editor shows fields, not items.
- If the field sits inside a nested layout, such as Region and then Product, you select items from the field you want to group. Products are grouped within the field they belong to. A group in the outer field does not reach into the inner field.
Rename the group
The default name is generic, so rename it right away. Click the group's cell in the pivot table, type a new name such as Other regions, and press Enter. The new name appears in the table and in any chart built on it.
The name is a label only. It does not need to match any value in the source data, and it never gets written back to the source range. A few naming rules to follow:
- Give the group a name that cannot be confused with a real source value. If you named a group
Westwhile a realWestitem still exists in the same field, the table becomes hard to read. - Keep names short. Long names widen the column and make charts crowded.
- Rename before you share the sheet. A name such as the default one tells a reader nothing.
A worked example with two fields
Group by Product too. Put Product in Rows and SUM of Units and SUM of Revenue in Values. The three products are Widget, Gadget and Gizmo. Select Gadget and Gizmo, create a group, and rename it Newer lines. The result:
| Product | SUM of Units | SUM of Revenue |
|---|---|---|
| Newer lines | 22 | 1200 |
| Widget | 14 | 350 |
| Grand total | 36 | 1550 |
Check this against the source. Gadget has 7 + 3 = 10 units and 420 + 180 = 600 revenue. Gizmo has 12 units and 600 revenue. The group therefore has 22 units and 1200 revenue. Widget has 10 + 4 = 14 units and 250 + 100 = 350 revenue. This check, adding the member items by hand and comparing against the group, is the simplest way to confirm a group contains what you intended.
flowchart TDReplace the line above only if you plan to draw the process separately. The diagram below shows how members flow into the group.
How groups behave when the data changes
A manual group stores the list of item values you selected. This explains most surprises.
- New values stay outside the group. If someone adds a row with Region
North, the pivot showsNorthas its own item. It is not added toOther regions. You must add it by hand. - Edited source values leave the group. If you change
EasttoEasternin the source, the group still looks forEast. The renamed value appears as a separate item. - Misspellings split items.
westandWestcan appear as separate pivot items depending on how the data was entered, and you would group them separately. Clean the source first. The chapter on source data preparation covers this. - Groups follow the field. If you remove the field from Rows, the group is lost with the field configuration. Adding the field back later does not restore it. Treat the group as part of that field's setup.
Ungroup and edit
To dissolve a group, right-click the group item and choose Ungroup pivot items. The members return to the table as separate items, and the rest of the table is unchanged.
To change a group's membership, the reliable approach is to ungroup it and create it again with the new selection. Doing so also lets you check the totals again.
Groups and sorting, filtering, and totals
Because a group is an ordinary item, the usual pivot features act on it:
- Sort. Sorting by the field's labels or by a value column treats the group as one item. A group with a high combined value sorts above its individual members' positions.
- Filter. In the field's filter, the group shows as one selectable entry. Unchecking it hides all members at once. The remaining items stay visible, and the grand total drops by the group's amount.
- Subtotals and grand totals. Totals are computed from source rows, not from the displayed items. A group does not change any total unless a filter hides it.
- Average and count. With AVERAGE or COUNT, the group value is calculated over all member rows together. It is not an average of the members' averages. For example, averaging Revenue for
Other regionsuses East's 2 rows and South's 1 row, which gives (100 + 600 + 180) / 3 = 293.33. The average of the two region averages, (350 + 180) / 2 = 265, is a different number.
This last point is the same issue that comes back with calculated fields in a later chapter. Groups aggregate rows, never already-summarized numbers.
Choosing a good grouping
Consider these questions before you group.
| Question | Why it matters |
|---|---|
| Is the category stable? | Manual groups do not pick up new values, so they suit short, fixed lists. |
| Does the grouping belong in the data? | If other reports need the same grouping, add a helper column to the source (for example `Territory`) and pivot on it. |
| Is it temporary exploration? | Manual groups are quick and need no source edits, so they suit ad hoc analysis. |
| Who maintains the sheet? | A source helper column is visible to everyone. A pivot group is hidden in the pivot and easy to overlook. |
A helper column built with a formula such as =IF(OR(B2="East",B2="South"),"Other regions",B2) is more durable than a manual group because it can handle new rows when you extend the formula. The cost is that you have to maintain that column. Choose the manual group when you want speed, and the helper column when the mapping is a business rule.
Common problems
- "Create pivot group" is missing from the menu. You probably right-clicked in an empty cell, on a total row, or on a value cell. Right-click an item label in the row or column area. Also confirm you are in the pivot table and not in a pasted copy of its values.
- Only one item is selected. A single item cannot form a useful group. Hold Ctrl or Cmd while clicking, and confirm both items are highlighted before right-clicking.
- The group disappeared after editing the pivot. Removing and re-adding the field resets its groups. Recreate the group.
- A member shows up twice. If the same item exists with different spelling or trailing spaces, only the exact one you selected is in the group. Fix the source text and check the result.
- Totals look off. Add the members yourself, as in the worked example, and compare. If the totals match but the table looks unexpected, a filter on the field is probably hiding an item.
Summary of the workflow
- Clean the source so each category value is spelled consistently.
- Build the pivot with the field in Rows or Columns.
- Ctrl/Cmd-click the items to merge.
- Right-click and choose Create pivot group.
- Rename the group.
- Add up the members by hand and compare with the group's value.
- Decide whether the grouping should live in the source as a helper column instead.
Exercise
Using the example data, you group the Region items East and South into Other regions and show AVERAGE of Revenue. What is the value for Other regions, and why is it not 265?
Show answer
The value is 293.33. The pivot averages all three member rows together: (100 + 600 + 180) / 3 = 293.33. The number 265 is the average of the two region averages, (350 + 180) / 2, which weights East and South equally even though East has two rows. A group aggregates source rows, not already-summarized item values.
Exercise
A colleague adds a row with Region North to the source. Your pivot has Other regions (East and South) and West. Where does North appear, and what should you do if it belongs in Other regions?
Show answer
North appears as its own item, because a manual group only holds the item names you selected. To include it, ungroup Other regions, select East, South, and North, create the group again, and rename it. Alternatively, add a helper column to the source that maps regions to territories, and pivot on that column.