Hierarchy: Indent or outdent rows
You can create a hierarchy on your sheet by indenting rows. When you indent a row, it becomes a child of the row above it (the parent row).
Note: Hierarchy is created from the child row. I do not create it by designating a row as a parent.
Note that hierarchy creates relationships between rows, it doesn't control row formatting.
Indent a row
Click on a cell in the first row you’d like to indent, and then click the Indent button on the toolbar. The row above it will become the parent row.
Note: If the Indent button is unavailable, you may be trying to indent a blank row. In order to create hierarchy, data needs to exist in both the parent, and child rows. Make sure neither row is blank before indenting.
Tip: You can also use the keyboard shortcut Ctrl + ] or Command + ] on a Mac.
Indents are displayed only in a sheet's Primary Column; however, the relationship is applied to the entire row. (To learn more about the Primary Column, see Primary column overview.
To remove the parent-child relationship, click on a cell in the child row and then click the Outdent button on the toolbar.
Tip: You can also use the keyboard shortcut Ctrl + [ or Command + [ on a Mac.
Expand or collapse indented rows
When you expand or collapse rows and then save the sheet, this changes the sheet structure for all collaborators shared to it. That is, everyone who uses the sheet will see the same rows collapsed and expanded that you do.
To show or hide the indented items beneath a parent row, click expand/collapse / in the parent row’s Primary Column.
To expand or collapse all sub-items on a sheet, right-click on the Primary Column header and select Expand All or Collapse All.
Hierarchy best practices
Keep the following in mind as you work with hierarchy:
- There is no fixed level of indenting. You can continue indenting rows on your sheet to create multiple levels of hierarchy.
- When you click and drag a row that has items indented below it, the child rows will move with the selected item.
- You can’t delete a parent row without also deleting its indented child rows. (To delete the row without deleting the child rows, remove the parent-child relationship first).
- When dependencies are enabled on a project sheet, parent rows reflect a roll-up summary of the start date, end date, duration, and % complete values entered for the indented child rows. To learn more about parent rows, see Parent roll-up functionality.