Maintenance Notification: We are upgrading our servers today so you may experience intermediate outages. Thank you for your patience.
Format and validate data
MO-211

Group and ungroup data

  1. 1Select the detail rows (or columns) to group: rows 5 and 6.
  2. 2Data › Group. For a cell range, choose Rows or Columns, then OK.
  3. 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.

Pantry (rows 5 and 6 are the non-food items)
ABC
1ItemQ1Q2
2Tea56
3Jam34
4Oats22
5Soap78
6Rope11
7Total1821
Group two rows
Do this
  1. 1Select A5:C6. Data › Group, Rows, OK.
Excel showsAn outline bar beside rows 5 and 6; nothing is hidden yet

Grouping alone hides nothing. The button for the group sits below it, by the Total row.

Collapse the group
Do this
  1. 1Select the minus button by row 7, or the outline level button 1.
Excel showsRows 5 and 6 hidden; Tea, Jam, Oats and Total show

The plus button opens the group again.

Group columns
Do this
  1. 1Select B1:C1. Data › Group, Columns, OK. Collapse it.
Excel showsColumns B and C hidden

Columns group the same way, with the outline bar above the column letters.

Groups inside groups
Do this
  1. 1Group rows 2 to 6, then rows 5 and 6 again.
  2. 2Select the outline level button 2.
Excel showsRows 5 and 6 hidden, rows 2 to 4 showing

Each group inside another adds a level. The numbered buttons show everything down to that level.

Ungroup a collapsed group
Do this
  1. 1Collapse rows 5 and 6, then select them and Data › Ungroup.
Excel showsThe outline bar is gone, and rows 5 and 6 are still hidden

Ungroup removes the group but leaves the rows as they were. Expand before you ungroup, or unhide them afterwards.

In the video
Do this
  1. 1Select A5:C6. Data › Group, Rows, OK.
  2. 2Data › Hide Detail.
Excel showsRows 5 and 6 grouped and hidden

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

Grouping without collapsing

A task that says collapse the group wants the rows hidden. Our grader checks that they are, as well as grouped.

Hiding instead of grouping

Hide Rows hides them, but there is no outline group: a hidden row 4 has outline level 1, like every ungrouped row.

Ungrouping while collapsed

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.