How to Ungroup Cells in Excel

There are two ways to “ungroup cells in excel”: the quick way you copy and the durable way you understand. This page gives you both. The exact Excel answer is above; below, we build the small mental model that makes the fix stick, so the next variation of the same problem solves itself.

Exact answer

In Excel: select the rows or columns, go to Data ▸ Outline ▸ Group (Alt+Shift+→ on Windows), and a collapsible bar with a − button appears in the margin so you can fold the detail away; ungroup with Data ▸ Ungroup (Alt+Shift+←).

Annotated stepsExcel
1

Select the whole rows or columns you want to group by their headers.

2

Go to Data ▸ Outline ▸ Group, or press Alt+Shift+→ (Windows).

3

Click the − button in the margin to collapse the group, + to expand it.

4

Use the 1-2-3 outline level buttons to fold the whole sheet at once.

5

To remove a group, select it and choose Data ▸ Ungroup (Alt+Shift+←).

Ctrl+CthenCtrl+Shift+V+Cthen+Ctrl+VPaste values · WindowsMac

What this does

Grouping ties a block of rows or columns together into a collapsible outline. Excel draws a bracket in the margin to the left of grouped rows (or above grouped columns) with a − button to collapse the detail and a + button to expand it again. You can nest groups inside groups, and the 1-2-3 outline level buttons in the top-left jump the whole sheet to a chosen depth. Nothing is deleted — collapsing only hides the detail from view. Grouping sheets is different: Ctrl-click sheet tabs to edit several tabs at once. The same idea underpins a lot of everyday Excel work, so the few minutes spent getting it right here pay back across every sheet you build afterwards. Treat it as a pattern, not a one-off, and it stops being something you look up and starts being something you reach for. The difference between a quick fix and a sheet you can trust is the extra minute you spend validating “ungroup cells in excel”. Start on a copy or a tiny sample, keep the affected cells visible, and compare the result with the tool above before you touch the real workbook. When this is a ribbon command, the selection matters more than the button: confirm the range, apply the command, then spot-check the output before saving. The point is a layout choice that keeps the sheet readable and sortable, but the practical win is that someone else can open the file and understand what happened without asking you.

A worked example

Rows 2:10 hold line-item detail under a subtotal in row 11. Select row headers 2 through 10, go to Data ▸ Group, and a collapse bar appears in the left margin. Click the − button and rows 2:10 fold away, leaving just the subtotal; the 1 and 2 buttons at the top switch the entire outline between summary-only and full detail. Grouping turns a long detailed sheet into a tidy summary you can drill into, which is ideal for reports with subtotals and nested sections. A practical tip before you scale it up: build it once on a small block of test data, confirm the number against the tool on this page, and only then point it at your real sheet. That one habit catches almost every mistake while it is still cheap to fix, long before a wrong figure reaches a report or a colleague.

In Google Sheets

If you are in Google Sheets rather than Excel, the good news is that the formula shown here is identical and the workflow barely changes — menus sit across the top instead of in a ribbon, and a few function names differ slightly, but anything you build here moves across with little or no rework. Nothing on this page is behind a login: the tool runs entirely in your browser, the formula is shown in full with one-click copy, and the steps work the same on Windows and Mac. That is the whole promise here — the exact answer, a way to prove it on your own numbers, and just enough context to make it stick. Here is the takeaway for “ungroup cells in excel”: copy the answer if you are busy, but if you have a spare few minutes, rebuild the example in Excel yourself with the tool above open beside it. That single pass — type it, run it, watch the result move when you change an input — is what turns a formula you found into a technique you trust. Keep your inputs labelled and referenced, never hard-coded, and the same sheet stays correct and auditable as it grows. Done that way, you will not need to look this up again, and you will be the person others ask.

Common mistakes

  • Selecting cells instead of whole rows or columns before grouping.
  • Confusing grouping rows with grouping sheet tabs — those are separate features.
  • Deleting rows when you only meant to collapse them.
  • Expecting Subtotal to undo cleanly — remove subtotals from the Data menu, not by deleting rows.

Frequently asked questions

Where is the Group button?

On the Data tab, in the Outline group.

What is the shortcut to group rows?

Alt+Shift+→ to group, Alt+Shift+← to ungroup, on Windows.

Does collapsing a group delete the rows?

No. It only hides them; click + to show them again.

How do I group in Google Sheets?

Right-click the row or column header and choose Group.