Grouping cells lets you collapse and expand sections of your spreadsheet

Grouping in Google Sheets lets you bundle rows or columns together so you can hide or show them all at once with a single click. When you group cells, Google Sheets adds a small minus sign (−) next to the grouped rows or columns. Click that minus to collapse the group and hide those rows or columns. Click the plus sign (+) that appears to expand them again.

This is useful when you have a spreadsheet with lots of data — say, monthly sales broken down by week, or a budget with many line items under each category. Grouping lets you focus on the big picture without deleting anything, and you can drill down into details whenever you need to.

Key Takeaways

  • Select the rows or columns you want to group, then go to Data > Group rows (or Group columns) to create the group.
  • A minus sign appears next to grouped rows or columns; click it to hide that section, and a plus sign appears to expand it again.
  • You can create multiple levels of grouping — for example, grouping weeks within months — and collapse or expand each level separately.
  • Grouping is temporary and tied to your spreadsheet; if you delete the grouped rows or columns, the group disappears.

How to group rows in Google Sheets

Select all the rows you want to group together. Click on the row number of the first row, then hold Shift and click the row number of the last row. All rows in between will highlight in blue.

Once the rows are selected, go to the menu bar and click Data. A dropdown menu appears. Click Group rows. Google Sheets will add a grouping bracket on the left side of your spreadsheet, with a minus sign at the top. The rows stay visible — nothing is hidden yet.

To hide the grouped rows, click the minus sign. The rows collapse, and the minus sign becomes a plus sign. Click the plus sign to expand them again. You can create as many separate groups as you need in the same spreadsheet.

How to group columns in Google Sheets

Grouping columns works the same way as grouping rows, but you select columns instead. Click on the column letter of the first column you want to group, then hold Shift and click the column letter of the last column. All columns in between will highlight.

Go to Data in the menu bar and click Group columns. A grouping bracket appears above your columns, with a minus sign on the right side. Click the minus to hide those columns, and click the plus to show them again.

Creating nested groups (groups within groups)

You can group rows or columns, and then group those groups together to create multiple levels. This is helpful when you have data organized in a hierarchy — for example, weeks grouped within months, or product lines grouped within departments.

Start by creating your first level of groups. Select and group the smallest units first (like individual weeks). Then select a larger range that includes multiple groups, and group that range too. Google Sheets will stack the grouping brackets, and you will see numbers (1, 2, 3) on the left or top that let you collapse or expand each level independently.

Click the number to show only that level of detail. For example, if you have weeks grouped within months, clicking "2" will show only the months, hiding the weeks inside them. Clicking "3" will show everything.

Ungrouping rows or columns

To remove a group, select the rows or columns that are grouped together. Go to Data and click Ungroup rows (or Ungroup columns). The grouping bracket and the collapse/expand controls disappear, but your data stays in place.

If you have nested groups and want to remove only one level, select just the rows or columns in that level and ungroup. The other levels will remain.

What happens to groups when you edit your spreadsheet

Groups stay in place as long as the rows or columns they contain are not deleted. If you delete a grouped row or column, the entire group is removed. If you insert a new row or column within a group, it automatically becomes part of that group.

If you copy a spreadsheet that has groups, the groups copy over too. If you download your spreadsheet as an Excel file (.xlsx), the groups will transfer to Excel and work the same way there.

Common reasons grouping does not work

Grouping only works on contiguous rows or columns — they have to be next to each other with no gaps. If you try to select rows 1, 3, and 5 (skipping rows 2 and 4), Google Sheets will not let you group them. Select a continuous range instead.

You also cannot group individual cells. Grouping only works on entire rows or entire columns. If you select a range like A1:C10, Google Sheets will not offer the group option. Select full row numbers or column letters instead.

Frequently Asked Questions

Can I group rows and columns at the same time?

No. You have to group rows and columns separately. Select rows, group them, then select columns and group those. Both groups will exist in your spreadsheet at the same time, but you create them one at a time.

What is the difference between grouping and filtering?

Grouping lets you hide and show rows or columns with a click, but the data is still there and still counts in formulas. Filtering hides rows based on rules you set (like "show only sales over $1,000"), and hidden rows do not appear in some calculations. Use grouping to organize; use filtering to narrow down what you see.

If I group rows, do formulas that reference those rows still work?

Yes. When you collapse a group and hide rows, any formula that references those rows still calculates them. The hidden rows are still part of your spreadsheet — they are just not visible. The group is only a display tool.

Can I group rows based on a condition, like grouping all rows where the value is over 100?

No. Grouping is manual — you select the rows you want and group them yourself. If you want to automatically hide rows based on a condition, use filtering instead. Go to Data > Create a filter, then set the rules you want.

What happens to groups if I share my spreadsheet with someone else?

The groups stay in place and work the same way for anyone who views the spreadsheet. If someone else ungroups rows or columns, those changes apply to the shared spreadsheet for everyone. Groups are part of the spreadsheet itself, not personal to your view.