How to Group Cells in Excel (Step-by-Step Guide for 2026)
Learn how to group cells in Excel with this practical guide. Group rows, columns, and outlines to organize data, collapse views, and report faster.

How to Group Cells in Excel Without Hiding Your Sanity
Big spreadsheets get messy fast. You scroll past quarterly totals to find one product line, then scroll back because the column headers disappeared. Grouping fixes that. When you learn how to group cells in Excel, you can collapse whole sections of rows or columns, hide detail you don't need right now, and pop it back open with a single click. No deleting, no hiding, no breaking formulas.
Most people stumble into the feature by accident. They highlight a few rows, press Shift+Alt+Right Arrow, and suddenly a little minus sign appears in the margin. Magic? No — that's outlining, and it's been baked into Excel since the 1990s. The trick is using it deliberately, not by accident.
This guide walks through every grouping method that actually matters. You'll learn the keyboard shortcut, the ribbon path, automatic outlines, multi-level nesting, and the common errors that trip up new users. By the end you'll group cells, rows, and columns faster than most analysts who've been doing it for years.
One quick note before we start. Excel doesn't technically group individual cells — it groups rows or columns. When someone says "group cells," they usually mean group the rows or columns those cells sit in. We'll cover both, plus a workaround for when you really do need to bundle a small range together.
Grouping in Excel: The Numbers
What Grouping Actually Does
Think of grouping as a folder for rows or columns. The folder is still there, but you can close it. The data inside doesn't move, doesn't change, doesn't vanish from your formulas. SUM still adds the hidden rows. VLOOKUP still finds them. Charts still pull from them. The only thing that changes is what you see on screen.
This matters because the alternative — manually hiding rows — is fragile. Hidden rows look identical to deleted rows. You forget they exist. Six months later somebody asks "why is this total different from last quarter?" and you spend an hour hunting for the answer. Grouping leaves a visible breadcrumb: a small minus or plus sign in the margin tells everyone there's collapsed detail.
Power users build entire reports around grouped outlines. A regional sales workbook might have country totals at the top level, state totals nested inside, city totals nested inside that, and individual store rows at the bottom. Click the "1" button at the corner and you see only country totals. Click "4" and you see every store. That's the kind of Excel spreadsheet guide users build once and rely on for years.

Quick Win
The fastest way to group rows or columns is the keyboard shortcut: select the rows or columns first, then press Shift + Alt + Right Arrow. Done. To ungroup, hit Shift + Alt + Left Arrow. On a Mac use Command in place of Alt. Memorize these two combinations and you'll save real time on every large spreadsheet, every single day, for the rest of your Excel career. The same shortcut works whether you're grouping rows or columns — Excel reads your selection and applies the right axis automatically, which means one shortcut handles two operations without any extra mental overhead.
Method 1: Group Rows the Manual Way
Open your spreadsheet. Click the row number on the far left for the first row you want in the group. Drag down to the last row. The whole range should now be highlighted blue. Don't include the summary row above or below the detail rows — group the detail itself, not the header.
With those rows selected, go to the Data tab on the ribbon. In the Outline section on the right, click Group. A small bracket appears in the left margin with a minus sign at the bottom. Click that minus sign and the rows collapse into a single line. Click the plus sign to expand again.
That's the whole process. You can group multiple non-contiguous sets too — hold Ctrl while clicking row numbers to select rows 4–8 and 14–18 at once, then group. Excel creates two separate groups. Each gets its own toggle.
Group Columns the Same Way
Columns work identically. Click the column letter at the top, drag across, then Data > Group. The bracket appears at the top of the worksheet instead of the left margin. The same Shift+Alt+Right Arrow shortcut works on selected columns too.
One gotcha: if you click a single cell instead of a full row or column before grouping, Excel pops up a small dialog asking whether you want to group rows or columns. Pick one and it'll guess what range to use based on your selection. The dialog is a safety net for sloppy clicks, not a replacement for selecting properly.
Three Levels of Grouping
One group of rows or columns. You see the data or you don't — toggle with the plus/minus button in the margin. Best for hiding side calculations or reference tables you rarely need.
Groups inside groups. Country contains states, states contain cities, cities contain stores. Excel adds numbered buttons (1, 2, 3...) at the corner so you can expand to any depth instantly.
Excel detects your summary formulas and builds the outline for you. Works when totals are clearly above or below their detail rows. Found under Data > Group dropdown > Auto Outline.
Method 2: Nested Groups for Multi-Level Outlines
Nesting is where grouping earns its keep. Say you have a monthly budget broken down by category, subcategory, and line item. Group each line item set under its subcategory. Then select the whole subcategory range — including the items you already grouped — and group again. Excel automatically recognizes the second group as a parent.
Look at the left margin after you've done this. You'll see two columns of brackets. The inner bracket controls the line items. The outer bracket controls the subcategory. Above them, in the corner where the column letters meet the row numbers, you now see numbered buttons: 1, 2, 3.
Click 1 to collapse everything down to the top-level summary. Click 2 to show subcategory summaries. Click 3 to show every line item. Those numbered buttons are the secret weapon of any serious financial model.
How Deep Can You Go?
Excel allows up to eight levels of row grouping and eight levels of column grouping. In practice nobody needs more than three or four. Beyond that the outline gets harder to read than the data it organizes.
A common nesting pattern for sales reports: Year > Quarter > Month > Week > Day. Five levels. Click 3 and you see months. Click 5 and you see every day. The same workbook serves the CEO who wants the annual view and the operations manager who wants daily detail.

Grouping Methods Compared
Select rows or columns, press Shift + Alt + Right Arrow to group. Press Shift + Alt + Left Arrow to ungroup. Fastest method for power users. Works the same on Windows and Mac (use Command instead of Alt on Mac).
Method 3: Auto Outline Saves Hours
If your spreadsheet already has summary rows with SUM formulas, Auto Outline can build the entire outline for you in one click. Go to Data > Group > Auto Outline. Excel looks for cells where summary formulas reference ranges of detail cells. Each summary becomes a group's collapse point.
For Auto Outline to work cleanly, your summary rows need to sit consistently above or below the detail. Mix them up and Excel gets confused. Most financial models put totals below their detail (the SUM of January through December sits in the December+1 row labeled "Total"). That's the layout Excel expects by default.
You can flip the expected direction. Click the small arrow at the bottom right of the Outline section to open Settings. Uncheck "Summary rows below detail" if your totals sit above. Same for columns — "Summary columns to right of detail" controls horizontal direction. Wrong setting and Auto Outline groups the wrong cells.
Auto Outline is one of those features that looks like magic the first time it works and infuriating the first time it doesn't. The difference is layout consistency. If you're going to lean on it, build your workbooks with that in mind from the start.
The most common grouping mistake: including the summary row in the group itself. If your detail is in rows 5–10 and the total is in row 11, group rows 5 through 10 only. Including row 11 will collapse the total along with the detail and defeat the whole purpose. The total should stay visible so users see something meaningful when the group is collapsed. The same logic applies in reverse — if your total sits at the top (row 4) and your detail runs 5–10, group rows 5 through 10 and leave row 4 alone. The summary row is the entire reason a collapsed group is useful, so never let it hide along with the detail it's summarizing.
How to Ungroup Cells in Excel
Ungrouping is the mirror image of grouping. Select the rows or columns inside the group, then press Shift+Alt+Left Arrow, or go to Data > Ungroup. The bracket disappears and the rows return to a normal flat view. The data itself never changed — only the outline structure.
If you have nested groups, ungrouping only removes the level you currently have selected. Select just the inner range and the outer group survives. Select the outer range and you'll get a prompt asking whether to ungroup the outer level. Excel doesn't trash everything at once.
To wipe out every group on a worksheet in one shot, click anywhere in your data, then Data > Ungroup dropdown > Clear Outline. That removes all outlines, all levels, instantly. Useful when you've inherited a messy workbook with grouping you don't understand.
The Group Won't Ungroup — What Now?
Occasionally you'll try to ungroup and Excel does nothing. Usually that's because you selected a partial range that doesn't match an existing group. Excel can't ungroup half of a group. Select the full grouped range or use Clear Outline as a nuclear option.
Another cause: the worksheet is protected. Sheet protection can block changes to the outline structure even when the cells themselves are editable. Unprotect the sheet (Review > Unprotect Sheet) and try again.

Group Cells in Excel: Quick Checklist
- ✓Select full rows or columns (not single cells) before grouping
- ✓Exclude the summary row from the group itself
- ✓Use Shift+Alt+Right Arrow for the fastest grouping shortcut
- ✓Stack nested groups by selecting larger ranges over existing groups
- ✓Use Auto Outline if your workbook has consistent SUM totals
- ✓Click numbered corner buttons (1, 2, 3) to jump to any outline level
- ✓Clear all grouping with Data > Ungroup > Clear Outline
- ✓Unprotect the sheet first if grouping seems frozen
- ✓Sort data before applying Subtotals to avoid pointless one-row groups
- ✓Toggle outline symbols via File > Options > Advanced if brackets are missing
- ✓Flip 'Summary rows below detail' in Outline Settings if your totals sit above
- ✓Use Ctrl-click to select non-contiguous row sets and group them at once
Grouping vs Hiding vs Filtering: When to Use Each
People confuse these three constantly. They all make rows disappear from view, but they behave very differently when somebody else opens your file.
Hiding removes rows from view with no visual indicator that anything is missing. Row 7 jumps straight to row 12. Anyone who didn't hide them won't notice until they look closely at the row numbers. Hidden rows are fragile and a source of confusion in shared workbooks.
Grouping hides rows the same way visually, but the margin shows a clear bracket and a plus sign that says "there's collapsed data here." Anyone can expand it in one click. Grouping is the transparent, collaborative choice.
Filtering hides rows that don't match a condition. The condition lives on the column header (a small funnel icon). Anyone can see filters are active. Filtering is dynamic — change the data and the filter re-applies. Grouping is static — you decide what's in the group manually.
For permanent organization of a report, group. For one-off exploration of a dataset, filter. For "I want this row gone temporarily and I'm the only one using this file," hide. The right tool depends on who else will open the workbook and what they expect to see.
What About Outline Symbols You Can't Find?
If you've created groups but don't see the bracket or numbered buttons in the margin, your outline symbols are turned off. Go to File > Options > Advanced. Scroll down to the section for the current worksheet. Check the box for Show outline symbols if an outline is applied. The brackets return immediately.
On Mac, the path is Excel > Preferences > View > Show Window Options > Outline Symbols. Different menu, same toggle. Hidden outline symbols are a surprisingly common cause of "my grouping doesn't work" support tickets that turn out to be just a display setting.
Grouping Cells in Excel: Pros and Cons
- +Collapses sections without losing data or breaking formulas
- +Shows clear visual indicator (bracket + plus sign) so collaborators understand
- +Supports up to 8 nested levels for complex hierarchical reports
- +Numbered corner buttons let you jump to any outline depth instantly
- +Keyboard shortcut (Shift+Alt+Arrow) makes it faster than the ribbon
- −Doesn't group individual cells — only full rows or columns
- −Auto Outline fails on inconsistently laid out spreadsheets
- −Outline symbols can be hidden by display settings, causing confusion
- −Sheet protection can block grouping changes silently
- −Eight nesting levels sound generous but become hard to read past three
Real Scenarios Where Grouping Earns Its Keep
Monthly close packs. Finance teams build month-end reports with revenue, COGS, opex, and below-the-line items each broken into a dozen subaccounts. Group every detail block under its summary. The CFO sees clean topline numbers. The analyst expands to investigate variances. Same workbook, two audiences.
Project timelines. A Gantt-style schedule lists tasks by phase. Group all the design tasks, all the build tasks, all the test tasks. Collapse phases you've finished to focus on what's ahead. When stakeholders ask about a past phase, expand it for a minute, then collapse again. Building a Excel spreadsheet guide with grouped phases beats maintaining separate tabs for every stage.
HR rosters. Group employees by department. Group departments by division. Collapse to see division totals. Expand a division to audit headcount changes. The same roster file serves payroll, planning, and leadership without anyone needing a different view.
Inventory lists. Group SKUs by product family. Group product families by category. Click 2 to see category totals. Click 4 to see every SKU. Useful for reorder reviews where you want to start with the big picture and drill down only where you spot a problem.
Budget vs actual comparisons. Column groups work nicely here. Group the budget columns and the actual columns separately. Show or hide each set depending on what story you're telling. Combine with row grouping for a true two-dimensional outline.
Power Tip: Combine Grouping with Subtotals
Excel's Subtotal feature (Data > Subtotal) automatically inserts SUM rows at every change in a chosen column, AND groups the detail rows under those subtotals. Two features for the price of one. If your data is sorted by category, the Subtotal command will build a fully grouped report in three clicks.
Subtotals work best on lists that are already sorted by the grouping column. If your data is scrambled, Excel will still insert subtotals at every change — which means dozens of pointless one-row "groups." Sort first. Then Subtotal. Then your outline does what you want.
Common Errors When Grouping Cells
The error most often reported is "Cannot group that selection." It shows up when you try to group cells across worksheets in 3D mode, or when the worksheet is protected, or when you've selected merged cells that span the boundary of a group you already created. Each cause has the same fix: simplify your selection and try again.
Another frequent issue: groups that won't collapse. The plus/minus button is there but clicking does nothing. This usually means the outline symbols are visible but the group itself is empty — you deleted all the rows inside without removing the group structure. Ungroup that range and the orphan bracket disappears.
Lastly, watch out for grouping interaction with frozen panes. If you freeze the top three rows and group rows that overlap with the frozen pane, scrolling can produce strange results. Best practice: freeze panes first, then group rows that are entirely below the frozen area.
Excel Questions and Answers
Putting It All Together
Grouping is one of those Excel features that looks small but rewards mastery. Spend ten minutes learning the shortcut, the nesting pattern, and the Auto Outline trick, and you'll move through large workbooks at twice the speed for the rest of your career.
Start small. Pick the next big spreadsheet you open this week. Group one section. Collapse it. Expand it. Then group a second section nested inside the first. Click the numbered buttons in the corner. You'll feel the difference immediately — that mental tax of scrolling through irrelevant detail just disappears.
Once grouping clicks for you, layer it with named ranges, table formatting, and the how to use Excel fundamentals you already know. The combination produces workbooks that the rest of your team will actually enjoy opening — clean by default, detailed on demand, and structured so the next person can find what they need without asking questions.
And if you build it once with grouping in mind, the same workbook serves three audiences. The executive sees the rollup. The manager sees the segments. The analyst expands to the line items. That's the practical magic of how to group cells in Excel — not just hiding rows, but designing a report that scales from one-second glance to deep dive without rebuilding anything.
About the Author
Attorney & Bar Exam Preparation Specialist
Yale Law SchoolJames R. Hargrove is a practicing attorney and legal educator with a Juris Doctor from Yale Law School and an LLM in Constitutional Law. With over a decade of experience coaching bar exam candidates across multiple jurisdictions, he specializes in MBE strategy, state-specific essay preparation, and multistate performance test techniques.