Group and ungroup columns or rows

Group and ungroup columns or rows

Grouping rows or columns together and choosing to expand or collapse them can make spreadsheets organized and concise. Here's how you can group and ungroup columns or rows.

How to group rows or columns?

1. Select the rows/columns you'd like to group together.
2. Click on the Data menu.
3. From the drop down, select Group & Ungroup
4. Click on Group Rows/Group Columns.

Alternatively, you can select the rows/columns you'd like to group, and right click on the row/column headers. From the contextual drop down menu, click on Group Rows/Group Columns.

How to create sub-groups and parent groups?

You can create a parent group or subgroup by selecting the desired rows/columns and grouping them together. If the selected range already has a group in it, then it becomes a subgroup.

How to ungroup rows/columns?

1. Select the rows/columns you want to ungroup.
2. Click on the Data menu.
3. From the drop down, select Group & Ungroup.
4. Click on Ungroup Rows/Ungroup Columns.

Here are a couple of alternatives to ungroup rows/columns.
- Select the rows/columns you want to ungroup. Right click on the row/column headers. Click on the option to Ungroup Rows/Ungroup Columns. 
- Right click on the +/- symbol. Click on the Remove Group option.


Managing Grouped rows/columns

To expand/collapse a group, please click on the +/- button next to it.

By right clicking on the +/- button near the grouped rows/columns, you can
1. Expand/Collapse that particular group.
2. Remove that group.
3. Expand all groups.
4. Collapse all groups.
5. Move the +/- button.

The keyboard shortcut to group rows or columns is Alt+Shift+Right. Select the rows/columns you want to group and press Alt+Shift+Right to group them.

The groups are by default created with an option to expand at column to the right side of the group or the row below the group. You can choose to change to move the Expand or Collapse button above or to the left side of the group.