How to Group Items in Excel (3 Easy Methods)

 

Download the Practice Workbook


What Is the Group Item Command in Excel?

The term Group items groups multiple items according to their defined categories. It has several advantages:

  • It makes a summary of a large dataset.
  • It is easy to understand and analyze an Excel dataset by grouping items.
  • It enables the application of several formulas and calculations according to their categories distinctively.
  • It enables easy expansion and contraction of cells.

Toggle Buttons:

Toggle buttons are the buttons that are used to hide and show the groups. Each group will have toggle buttons. They show up on the left side of the groups just beside the Excel row headings or above the column headers.

For example, let’s hide the Canada country group by clicking on the toggle button. Afterward, we can also show this group by clicking the toggle button.

Group Items in Excel

Level Tabs:

Level tabs are positioned on the top-left corner of the workspace. If you click on the levels, Excel will show you the different levels of your groups.


3 Methods to Group Items in Excel

We have a dataset containing Country, Product, Units Sold, Units Price, and Profit columns. We want to group items by the countries.

Sample Dataset to Show Grouping Items in Excel


Method 1 – Use the Subtotal to Group Items

Steps:

  • Click on any cell of your desired range or table where you want to group your data.
  • Go to the Data tab, and in the Outline group, select the Subtotal tool.

Access the Subtotal from the Data Tab

  • The Subtotal dialog box will appear. Select Country at the At each change in: options.
  • For the Use function: option, put Sum.
  • Check the Profit option from the Add subtotal to: list.
  • Click on the OK button.

  • The dataset is now divided into groups by countries. Each group has the respective sum of profits calculated. You will get toggle buttons to hide and show the groups and level tabs.

Read More: How to Group Columns Next to Each Other in Excel (2 Easy Ways)


Method 2 – Use the Auto Outline Feature

Steps:

  • Add the subtotals of your categories manually or by the Subtotal feature (Method 1).
  • Your dataset will look like this.

  • Click on any of the cells in the range.
  • Go to the Data tab and the Outline group.
  • Select the Group tool and choose the Auto outline option.

Group Items Using Auto Outline Feature in Excel

  • The dataset has been separated into several groups according to the countries.

Grouped Items Using Auto Outline Feature

Read More: How to Group Similar Items in Excel (4 Common Ways)


Method 3 – Use the Excel Group Command

Steps:

  • Add the subtotal manually or by using the Subtotal feature.

  • Select a group. We selected the B5:F8 data series for Canada.
  • Go to the Data tab and the Outline group.
  • Select the Group tool and choose the Group option.

Use Group Command to Group Items in Excel

  • The Group dialog box will appear.
  • Check the Rows option and click on the OK button.

  • You will see that the Canada country group has been created.

Grouped Items Using Group Command

  • Group the other two countries accordingly.

Read More: How to Create Multiple Groups in Excel (4 Effective Ways)


Keep the Summary Row on Top While Grouping

Steps:

  • Go to the Data tab and the Outline group, then select Outline.

  • The Settings dialog box will appear. Uncheck the option Summary rows below detail.
  • Click on the OK button.

  • You’ll get the summary row on top.


Note

Sort your dataset by the column you’re trying to group to avoid errors or duplicated values.


Related Articles

<< Go Back to Group Cells in Excel | Outline in Excel | Learn Excel

Get FREE Advanced Excel Exercises with Solutions!
Tanjim Reza
Tanjim Reza

Md. Tanjim Reza Tanim, a BUET graduate in Naval Architecture & Marine Engineering, contributed over one and a half years to the ExcelDemy project. As an Excel & VBA Content Developer, he authored 100+ articles and, as Team Leader, reviewed 150+ articles. Tanim, leading research, ensures top-notch content on MS Excel features, formulas, solutions, tips, and tricks. His expertise spans Microsoft Office Suites, Automating Finance Templates, VBA, Python, and Developing Excel Applications, showcasing a multifaceted commitment to the... Read Full Bio

We will be happy to hear your thoughts

Leave a reply

Advanced Excel Exercises with Solutions PDF

 

 

ExcelDemy
Logo