To ungroup cells in Excel, select the grouped rows or columns, then go to Data > Ungroup > Ungroup (or press Shift+Alt+Left Arrow on Windows, Shift+Command+Left Arrow on Mac). If the cells are part of a PivotTable, use the Ungroup button on the PivotTable Analyze tab instead.
What “Grouping” Actually Means in Excel
In Excel, “grouping” doesn’t merge cells—it creates an outline that lets you collapse or expand a set of rows or columns with a single click. When you group rows 5 through 10, Excel adds a bracket and a minus/plus button to the left (for rows) or top (for columns) of the sheet. Clicking the minus sign collapses the group; clicking the plus sign expands it again. This is different from Merge & Center, which physically combines multiple cells into one. Ungrouping only removes the outline structure—it does not affect the data inside the cells.
How to Ungroup Rows or Columns (Step-by-Step)
Here’s the exact process for ungrouping in Excel for Microsoft 365 on Windows:
- Select the rows or columns that are currently grouped. You can click and drag across row numbers (e.g., 5 to 10) or column letters (e.g., B to D).
- On the ribbon, go to Data > Outline > Ungroup.
- In the dialog box, choose Rows or Columns (if Excel asks) and click OK.
Alternatively, use the keyboard shortcut Shift+Alt+Left Arrow (Windows) or Shift+Command+Left Arrow (Mac). If you have multiple nested groups, you may need to repeat the process for each level.
To ungroup all groups at once, select the entire sheet (click the triangle where row numbers and column letters meet), then go to Data > Ungroup > Clear Outline. This removes every group and the outline symbols.
Ungrouping in a PivotTable
PivotTables group fields differently. If you’ve grouped date fields (e.g., by month) or numeric fields (e.g., by ranges), the ungroup command is on the PivotTable Analyze tab. Select the grouped field in the PivotTable, then click Ungroup in the Group section. This restores the original field without any grouping. Note that you can’t ungroup a PivotTable’s row or column labels in the same way—you must remove the grouping from the field itself.
Why Can’t I Ungroup? Common Problems
If the Ungroup option is grayed out, check these possibilities:
- You haven’t selected the grouped rows/columns. Click the row numbers or column letters, not the cells inside the group.
- The sheet is protected. Go to Review > Unprotect Sheet (password may be required) before ungrouping.
- You’re trying to ungroup merged cells. Merged cells aren’t “grouped” in the outline sense—use Merge & Center again to unmerge.
- You’re in a PivotTable but using the Data tab. Use the PivotTable Analyze tab instead.
Another common issue: if you grouped columns but selected rows, Excel won’t ungroup correctly. Always select the exact rows or columns that are grouped.
Ungrouping vs. Unmerging: What’s the Difference?
Many users confuse “ungroup” with “unmerge.” Grouping creates an outline for collapsing/expanding—it doesn’t change cell structure. Merging combines multiple cells into one large cell (e.g., A1:C1 becomes a single cell). To undo a merge, select the merged cell, go to Home > Alignment > Merge & Center (click the drop-down and choose Unmerge Cells). If you’ve grouped rows that contain merged cells, ungrouping won’t unmerge them—you’ll need to do both separately.
Keyboard Shortcuts and Mac Differences
On Windows, the most reliable shortcuts are:
- Ungroup rows/columns: Shift+Alt+Left Arrow
- Group rows/columns: Shift+Alt+Right Arrow
On Mac, use Shift+Command+Left Arrow to ungroup and Shift+Command+Right Arrow to group. In Excel for the web, these shortcuts may not work; use the Data menu instead. Note that the “Clear Outline” option is available on Windows and Mac but not in Excel for the web—you’ll need to ungroup each group individually there.
Frequently Asked Questions
How do I ungroup all rows in Excel at once?
Select the entire sheet by clicking the triangle at the top-left corner (where row numbers and column letters meet), then go to Data > Ungroup > Clear Outline. This removes all groups and outline symbols in one step.
Why does Excel say “Cannot ungroup” when I try?
This usually means you haven’t selected the grouped rows or columns correctly, or the sheet is protected. Make sure you select the row numbers or column letters (not individual cells), and unprotect the sheet if needed.
Does ungrouping delete my data?
No. Ungrouping only removes the outline structure. All cell values, formulas, and formatting remain intact.
Can I ungroup just one row from a group?
Yes. Select the specific row you want to remove from the group, then press Shift+Alt+Left Arrow. Excel will remove that row from the group, leaving the others grouped.
What’s the difference between “Ungroup” and “Clear Outline”?
“Ungroup” removes the grouping from the selected rows/columns. “Clear Outline” removes all groups from the entire sheet at once, regardless of what’s selected.
How do I ungroup in Excel for Mac?
Select the grouped rows/columns, then go to Data > Ungroup or press Shift+Command+Left Arrow. The process is the same as Windows, just with a different shortcut.
Related
- How Much Coding for Data Mining?
- Balance Sheet Statement Exercises: Practice with Examples
- Google Sheets OCT2HEX: Convert Octal to Hex
Try it: the Date Difference Calculator: days, months, years and weekdays between two dates, with the DATEDIF formulas.
More in How-to basics
- Google Sheets Checkbox in a Cell: How to Add and UseTo put a checkbox in a Google Sheets cell, select the cell or range, then choose Insert >…
- Back Tab Shortcut: What It Is & How to Use ItThe back tab shortcut is Shift+Tab on Windows and Shift+Tab on Mac. It moves the focus (cursor) to…
- Cut Shortcut on Mac: The Fastest WaysThe fastest way to cut and paste a file on a Mac is to copy it with Command+C,…
- Excel MAC Address Format: Display, Clean, and ValidateIn Excel, store a MAC address as text, then display it in a consistent form such as 00:1A:2B:3C:4D:5E.…
- Google Sheets If Cell Contains Text: Formulas and ExamplesIn Google Sheets, check whether a cell contains a particular word or phrase with =ISNUMBER(SEARCH("urgent",TO_TEXT(A2))). It returns TRUE…
- Excel: Find Names in Two WorksheetsTo find names from one worksheet in another, enter a check formula beside the list you want to…
Sources: Function behaviour and menu paths: Microsoft Support documentation for Excel. Method & sources
Spotted an error in this guide? Let us know.