Group and ungroup data
- 1Select the detail rows (or columns) to group: rows 5 and 6.
- 2Data › Group. For a cell range, choose Rows or Columns, then OK.
- 3Collapse it: the minus button beside the group, or Data › Hide Detail.
Grouping adds an outline bar beside the rows or above the columns, so they fold away and open again with one click.
What the MO-211 task asks
Grouping is in four of our ten MO-211 practice exams, and always with the collapse: “Group the backlist rows 10 through 15 so they can fold away, leaving the frontlist above expanded. Collapse the group,” or “Group the twelve month columns G to R, then collapse the group.”
Our grader checks two things: that the rows or columns are in an outline group, and that they are hidden. A group left open fails the second, and rows hidden without a group fail the first.
Select only the rows the task names. A total row selected with them folds away too.
Worked examples
Set up the grid below to follow along. Each example starts from it as shown; every result is what Excel showed.
| A | B | C | |
|---|---|---|---|
| 1 | Item | Q1 | Q2 |
| 2 | Tea | 5 | 6 |
| 3 | Jam | 3 | 4 |
| 4 | Oats | 2 | 2 |
| 5 | Soap | 7 | 8 |
| 6 | Rope | 1 | 1 |
| 7 | Total | 18 | 21 |
- 1Select A5:C6. Data › Group, Rows, OK.
Grouping alone hides nothing. The button for the group sits below it, by the Total row.
- 1Select the minus button by row 7, or the outline level button 1.
The plus button opens the group again.
- 1Select B1:C1. Data › Group, Columns, OK. Collapse it.
Columns group the same way, with the outline bar above the column letters.
- 1Group rows 2 to 6, then rows 5 and 6 again.
- 2Select the outline level button 2.
Each group inside another adds a level. The numbered buttons show everything down to that level.
- 1Collapse rows 5 and 6, then select them and Data › Ungroup.
Ungroup removes the group but leaves the rows as they were. Expand before you ungroup, or unhide them afterwards.
- 1Select A5:C6. Data › Group, Rows, OK.
- 2Data › Hide Detail.
The first two examples, done in Excel on the same sheet.
Watch it done in Excel
The last example above, recorded in real Excel on the same grid.
Exam traps
A task that says collapse the group wants the rows hidden. Our grader checks that they are, as well as grouped.
Hide Rows hides them, but there is no outline group: a hidden row 4 has outline level 1, like every ungrouped row.
The rows stay hidden after the group has gone, with no button left to open them. Unhide them, or expand before you ungroup.
FAQ
Where are Group and Ungroup?
On the Data tab: Group and Ungroup, with Show Detail and Hide Detail to open and close a group.
How do I remove every group at once?
Data › Ungroup › Clear Outline. It removes all the groups on the sheet and shows the rows they had hidden.
What is Auto Outline?
Data › Group › Auto Outline groups the detail rows of a range that has total formulas under them, without selecting each group.
Try it under exam conditions
Take a full, timed MO-211 practice exam, upload the workbook you built, and get a score out of 1000 with a per-task breakdown of where the points went. Your first one is free.
No credit card needed.
