The quickest way to learn how to collapse rows in Excel is to use the context menu by selecting the rows you want to hide and clicking โHide.โ Read on to learn how to do this by following the screenshots and learning the alternative ways you can collapse and expand rows in Excel.
Table of Contents
How To Collapse Rows in Excel
There are multiple ways that you can create collapsible rows in Excel:
Collapse Excel Rows Using the Context Menu
One of the easiest methods of collapsing or hiding a row is quickly removing all the data from your spreadsheet without deleting it. For example, if you have created a sales list and wish to hide some reps from your dataset. This easy process may work quickly, but it might not be suitable for a larger dataset.
Here is how to create collapsible rows in Excel using the context menu:
- Choose the rows you wish to hide by clicking towards the left side of the screen on the number bar. This will highlight the row in your spreadsheet.
- Right-click on the selected row and click the โHideโย option from the context menu. Excel will automatically hide the selected row.
How To Expand Collapsed Rows in Excel
To view the hidden rows again, right-click on the number above the hidden row and choose theย โUnhideโ option.
Collapse Using the Group Feature (Collapse and Expand to a Certain Level)
The grouping feature can be used if you have similar categories of data. This way, you can create a group of rows that work similarly. You can combine all similar elements into one group, which can be easily collapsed. This makes it easier to hide or collapse your group with just a click.
Here is how to group and hide your rows in Excel:
- Select all the rows you wish to make a group of.
- Go to the โDataโย tab at the top of the spreadsheet.
- Here, choose the โGroupโ option. Excel will automatically group all the selected rows together.
- To collapse the rows, click the Minus ( – )ย icon in the side number bar.
How To Clear Collapsed Rows in Excel Using the Data Menu
Here is how to clear collapsible rows in Excel:
- On Excel, click the โDataโ option at the top of the spreadsheet.
- In the โOutlineโ section, click the arrow beside the โUngroupโย option.
Excel will start clearing your collapsed rows from the outer to the inner levels. You will see at the top-left side of the spreadsheet that the level buttons have started to disappear.
Related: Can Google Sheets Group Rows and Columns? Yes, Hereโs How
Collapse Using the Subtotal Feature
The subtotal feature is useful if you wish to create a group with a larger dataset by specific criteria. This way, you can create different groups by specific criteria like category or price. It can simplify the categorization of your data while providing a total for grouping.
Here is how to collapse groups with certain criteria in the overall data:
- Highlight the data by clicking and dragging the rows. Alternatively, you can click on the icon at the top of the numbers on the left.
- Choose the โDataโย option from the top ribbon of Excel.
- Click on the โSubtotalโย option from the sub-menu in the โOutlineโย group. This will open a small window where you can specify the row or column where you want to show the count.
- Check the box next to your desired option and click the โOKโย option. Your data will now be in groups with their specific categories.
To hide and unhide your data, click on the Minus ( – )ย or Plus ( + ) icons on the left side of your spreadsheet.
Collapse Using Filtering
You can use filtering to make complex spreadsheets with numerous categories or data sources invisible. This makes it much simpler to organize data into similar categories. Here is how you can collapse your data using filtering:
- Click and drag your cursor across the data set to select the desired data.
- Click the โDataโย option from the top of the spreadsheet in the main menu bar.
- Click on the โFilterโย option.
- Click the arrow at the top of any row.
- Select a type of filter and fill in how you want it to work.
- Excel automatically collapses the rows that don’t meet the requirement requirements.
Collapse Using Row Height
This method is a manual way of collapsing or hiding rows. Even though it is useful to collapse the data quickly, you may find it difficult to rectify the rows. You can easily remove incorrect entries from the spreader using this method. Here is how to collapse the rows using the row height feature:
- Select the rows that you wish to collapse.
- Right-click on the selected rows and click the โRow Heightโย option.
- Set your row height and type โ0โย in the box.
- Click on the โOKโย option. Excel will automatically set the row height to 0, collapsing the selected rows.
To uncollapse the row, repeat the steps and set the โRow Heightโย to your chosen number. The default height for the row is 15.
Collapse the Rows Using the Home Tab
Using the โHomeโ tab is another easy way to collapse columns or rows. This method is similar to the Context Menu method but provides more options. Here is how to create collapsing Excel rows using the Home tab:
- Click and select the columns or rows you wish to collapse.
- Choose the โHomeโย option from the main toolbar.
- Now, click the โFormatโย option in the โCellsโ section.
- In the โVisibilityโย section, click on theย โHide & Unhideโย option.
- Click on the โHide Rowsโย option in the pop-out menu. Excel will automatically hide the selected rows.
To reverse the Excel collapsed rows, follow the abovementioned steps and click on the โUnhide Rowsโ option in the pop-out menu.
Related: How To Unhide Rows in Google Sheets (7 Easy Examples)
Collapse Using Excel Keyboard Shortcuts
The keyboard shortcuts make it easier to work on your spreadsheet with a large dataset. Here are some helpful keyboard shortcuts for collapsing Excel rows:
- Hiding Groups: Alt + A + H
- Unhiding groups: Alt + A + J
- Select One Column or Row: Shift + Space
- Select Entire Spreadsheet:ย Ctrl + Space
How To Create a Nested Collapse in Excel
Microsoft Excel allows you to collapse the rows and columns in your spreadsheet. Not only that, you can create nested collapsible rows. Here is how you can create a nested collapse in Excel:
- Click and drag your cursor on the number bar (left part of the screen) to highlight the rows you want to create a collapsable group. In this example, we chose rows 4 to 12.
- Now, click on โDataโย > โGroupโย > โOutline.โย This will create the first group.
- Click and drag your cursor again to select the cells you want to add to the group you created in the previous step. In this example, we are going to choose rows 5-7.
- With the new rows selected, repeat step 2. Then, go to โDataโ and click the โGroupโ button to create another group.
You can keep repeating the abovementioned steps to create multiple nested groups that allow you to sort your data easily. One example of using this method is if you have sales data for three years. You can create the first collapsable group for separate years. Then you can create a nested group for the year for every month.
Related: Google Sheets vs. Excel โ Which Is Better In 2024?
How To Copy the Visible Rows in Excel
When working on your worksheet, you may not want to select data from the hidden rows in Excel. Here is how to copy and paste data from the visible rows:
- Select the rows you wish to copy.
- Click on the โHomeโย option at the top of the spreadsheet.
- Choose theย โFind & Selectโ option on the spreadsheet’s right side.
- Click on the โGo To Specialโย option.
- Select theย โVisible cells onlyโย option.
- Click on the โOKโย option.
- You can right-click on the highlighted rows and choose the โCopyโ option or press the Ctrl +ย C keys from your Windows keyboard to copy the visible rows.
- Go to your desired location to paste the copied cells, right-click on it, and choose the โPasteโย option.
Related: 11 Best Excel Courses Online in 2024
Frequently Asked Questions
What Is the Shortcut for Collapse Rows in Excel?
To collapse rows in Excel, select the data you want to collapse and press Alt + A + Hย keys from your Windows keyboard to hide the group.
What Is the Easiest Way to Collapse Rows in Excel?
The easiest way to collapse rows in Excel is to select the rows that you want to collapse. Simply right-click on the number bar at the left side of the spreadsheet of the highlighted rows and choose the โHideโย option from the drop-down menu.
To unhide the rows, repeat the steps and click the “Unhide” option.
How Do You Collapse Rows in Excel?
Select the rows you wish to make a group of and click the โDataโย option. Select the โGroupโย option to make the group of the selected rows.
Now, you can click the Minus (-)ย icon in the side number bar to collapse the rows.
Wrapping Up
Although weโve shown you how to collapse rows in Excel in many different ways, youโll likely use the “Context Menu” most of the time. So, make sure you commit that simple method to memory.
Do you want to cut down the time you spend making spreadsheets? The best way to do that is to use a template. We have some excellent time-saving spreadsheets in our premium template library. If you find something you like there, make sure to use the code SSP to save 50% at checkout.
Related: