How to Create a Group in Excel: Rows, Columns & Outline
In this article
Yes, you can create a group in Excel, and it takes just a few clicks: select the rows or columns you want, then go to Data > Group (or press Shift+Alt+Right Arrow on Windows). Grouping adds a collapsible outline to your worksheet, letting you hide and show sections of data with a single click — ideal for budgets, project plans, or any sheet with sections you don't always need visible. This guide covers grouping rows and columns, plus the related but different task of creating a named group of cells (a named range) that you can jump to or use in formulas.
What You'll Need
- A Windows or Mac computer with Excel (the desktop app). The steps below are written for the current desktop version; labels can differ slightly between versions and platforms.
- An existing worksheet with data organized into the rows or columns you want to group.
- For grouping, your sections should be laid out with summary rows or columns so the outline works cleanly (see Tips below).
Step-by-Step
Method 1: Group Rows or Columns (Outline Grouping)
- Open your workbook in Excel and go to the worksheet containing the data.
- Select the rows you want grouped by clicking and dragging across the row numbers on the left (or the column letters across the top for columns). To select non-adjacent rows, hold Ctrl (Cmd on Mac) while clicking each one.
- Go to the Data tab on the ribbon.
- In the Outline section, click Group. Excel groups the selected rows or columns and shows outline symbols (plus and minus buttons with bracket lines) beside the worksheet.
- Repeat for any other sections you want to group. Each group can be nested inside another by grouping a range that sits within an existing group, creating multiple outline levels.
- Click the minus button next to a group to collapse it, or the plus button to expand it again. You can also use the numbered buttons (1, 2, 3…) at the top left of the sheet to show a specific outline level across the whole worksheet.
- Save your workbook (Ctrl+S / Cmd+S). The grouping is saved with the file.
Method 2: Create a Named Group of Cells (Named Range)
- Select the range of cells you want to group together.
- Click into the Name Box, which sits to the left of the formula bar.
- Type a name (no spaces; for example, SalesData) and press Enter.
- The group now exists as a named range — click the dropdown arrow on the Name Box and choose the name to jump to and select those cells instantly, or use the name in formulas (for example, =SUM(SalesData)). instead of cell references.
- To edit or delete a name later, go to Formulas > Name Manager.
To Ungroup
- Select the grouped rows or columns (or click any cell within the group).
- Go to Data > Ungroup. For named ranges, use Formulas > Name Manager, select the name, and click Delete.
Common Mistakes
- Grouping only part of a section. If you select three rows out of a five-row block, the outline will not match your data structure. Always select the complete section.
- Selecting cells instead of entire rows or columns. Dragging over cells can produce unexpected results; clicking the row numbers or column letters guarantees full rows or columns are grouped.
- Confusing grouping with merging. Merged cells (Home > Merge & Center) are a formatting feature and behave very differently — avoid merging data rows; use grouping instead.
- Using spaces in a named range. Names must start with a letter or underscore and cannot contain spaces — use underscores or camel case (Monthly_Totals or monthlyTotals).
- Forgetting that outline symbols can be hidden. If you don't see the plus/minus buttons, they may be turned off (see Troubleshooting).
Tips
- Put summary rows (subtotals, totals) directly above or below the detail rows they summarize, consistently throughout the sheet. Excel's outline works best with this structure, and the Auto Outline feature (Data > Group dropdown > Auto Outline) can then build the whole outline for you automatically.
- Use the keyboard shortcut Shift+Alt+Right Arrow to group and Shift+Alt+Left Arrow to ungroup the selection (Windows).
- Nest groups for hierarchical data — for example, group daily rows into weeks, and weeks into months — so you can collapse to whichever level you need.
- Named ranges make formulas easier to read and audit. =SUM(Q1_Sales) is far clearer than =SUM(B2:B45).
- On Excel for the web, grouping is available under Data > Group but the outline buttons and some features are more limited than in the desktop app.
Troubleshooting
- No plus/minus outline buttons appear. Go to File > Options > Advanced (on Mac, Excel menu > Preferences), and make sure the option to show outline symbols is enabled under the outline section for your worksheet. Exact wording varies by version.
- The Group button is greyed out. This usually means the worksheet is protected. Go to Review > Unprotect Sheet (you may need the password), or ask whoever protected it to allow grouping.
- Grouping works in one sheet but not another. Check whether the sheet is a Table (created via Insert > Table). Tables don't support row grouping inside them; convert back to a normal range via Table Design > Convert to Range if grouping is more important than table features.
- Groups vanish after reopening the file. This can happen if the file was saved in a format that doesn't store outlines, such as CSV. Save as an .xlsx workbook to keep grouping.
- Named range doesn't appear in the Name Box list. Reopen Formulas > Name Manager to confirm it was actually created; if it isn't there, the name may have been invalid and silently rejected. Also check whether it was defined with workbook or worksheet scope.
Frequently Asked Questions
Can I group non-adjacent rows in Excel?
Yes. Hold Ctrl (Cmd on Mac) while clicking each row number, then click Data > Group. Each block of selected rows becomes part of the group.
Is grouping the same as hiding rows?
No. Hiding rows (right-click > Hide) is manual and leaves no trail. Grouping creates an outline with visible plus/minus controls, so you can see something is collapsed and restore it with one click.
Can I group data in Excel for the web or mobile?
Excel for the web supports basic grouping under the Data tab, though with fewer outline options than desktop. Excel mobile apps do not offer full grouping controls; use the desktop or web app instead.
Does grouping affect formulas or sorting?
Grouping only changes visibility, not the data, so formulas referencing grouped cells keep working normally. However, sorting while groups are collapsed can scramble the outline — expand all groups before sorting or moving data.
Can other people see my groups when I share the workbook?
Yes. Grouping and outlines are saved in the file, so anyone who opens it sees the same groups. Named ranges are likewise visible to all collaborators.
How many outline levels can I create?
Excel supports up to eight levels of nested grouping per worksheet, which is more than enough for virtually any real-world layout.