How do you group rows in Google Sheets?

Row and column grouping adds outline controls on the left or top edge so readers expand or collapse sections. It is a presentation layer: formulas still see all cells whether collapsed or not. Grouping suits budgets, project plans, and any sheet with detail rows under subtotal headers.

When to use it

Use grouping when executives want a one-line department total with optional drill-down, or when long sheets need less scroll without deleting detail.

When to skip it

Skip grouping as a substitute for proper subtotal formulas or pivot tables when analytics are the goal. Do not rely on collapsed rows to hide sensitive data from editors.

How it works

  1. 1

    Select the detail rows beneath a subtotal row (not including the subtotal line itself in the group).

  2. 2

    Choose Data > Group rows (or columns) to create an outline level with +/- buttons.

  3. 3

    Nest groups by grouping smaller sections first, then selecting larger blocks for another group level.

  4. 4

    Click the minus icon to collapse; click plus to expand. Numbers on the gutter show depth.

  5. 5

    Pair grouping with SUBTOTAL or SUM formulas on subtotal rows so collapsed math still makes sense.

  6. 6

    Test print preview if PDF export must show only summary rows for some audiences.

Examples in Google Sheets

Budget by department

Each department has salary detail rows grouped under a subtotal row leadership can collapse monthly.

Project work breakdown

Phase groups contain task rows. Collapse finished phases during standup, expand during planning.

Regional sales sections

Group store-level rows under each region header so the sheet opens at region totals by default.

Build this without starting from a blank cell

Use a Better Sheets tool for grouping rows in Sheets, then watch a walkthrough when you want the full pattern.

Better Sheets resources

Common mistakes

  • Grouping the subtotal row inside its own detail block, which double-counts visually.
  • Assuming collapsed rows are excluded from SUM ranges; they are not.
  • Over-nesting five levels deep so +/- controls confuse mobile readers.
  • Grouping before freezing header rows in a way that hides column titles accidentally.
  • Sharing a sheet without a note that important detail is collapsed by default.

Frequently asked questions

Group vs hide rows?
Hide removes rows from view without outline controls. Group keeps structured expand and collapse UI.
Can I group columns too?
Yes. Data > Group columns works the same way for horizontal sections like monthly buckets.
Do formulas ignore grouped rows?
No. Collapsed rows still calculate unless you use SUBTOTAL with the right function number.
Ungroup everything?
Select the sheet area and Data > Ungroup rows or columns, or remove groups level by level.
Group with pivot tables?
Pivot tables have their own expand collapse. Row grouping is separate on raw grid data.
Print collapsed groups?
Print usually includes hidden grouped detail unless you adjust print range or hide rows intentionally.
Can viewers collapse groups?
Viewers can use outline controls on shared view-only sheets in most cases.
Group shortcuts?
Use the Data menu or right-click selection. Keyboard shortcuts vary by OS and browser.

Related Tutorials

Watch how grouping rows in Sheets works

Browse more tutorials
Create a Course Outline in Google Sheets

Create a Course Outline in Google Sheets

Wanted to share with members this course outline I am using for my own c...
How to Insert Multiple Rows in Google Sheets (Easy to Hard)

How to Insert Multiple Rows in Google Sheets (Easy to Hard)

Learn how to add multiple rows to your google sheets by hand, and automa...
Communicate Better with Gridlines, Border Styles, and Border Colors - Google Sheets

Communicate Better with Gridlines, Border Styles, and Border Colors - Google Sheets

Make your Google Sheets visually appealing and easier to understand with...
How to Merge Cells in Google Sheets

How to Merge Cells in Google Sheets

A master class on merging cells. How to merge two cells. How to merge mu...
Move Entire Row when a Cell is changed to "Yes" - The $75,000 Google Script

Move Entire Row when a Cell is changed to "Yes" - The $75,000 Google Script

This is one of the most popular asked first "automations". How to move a...
5 Ways To Use Google Sheets for Advanced Project Management

5 Ways To Use Google Sheets for Advanced Project Management

Here are 5 advanced ways to manage projects inside of Google Sheets Man...

Related blog posts

Guides that explain grouping rows in Sheets in more depth.

Browse the blog

Related glossary terms

Done reading about grouping rows in Sheets?

Membership unlocks 636+ tutorials, unlimited generators, and every template. Practical lessons. Zero fluff.

Need this once

Jump to a free tool or a single tutorial for this topic.

Learning Sheets for real

Unlock the full library, generators, and templates with membership.