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

This article illustrates how to create multiple groups in excel. Working with a large dataset often becomes problematic. You can create multiple groups within your dataset in excel to handle them more efficiently. This allows you to display the summary of each group instead of all contents. This article highlights 4 effective ways you can create multiple groups in excel. Have a quick look through the article to learn those methods.


Download Practice Workbook

You can download the practice workbook from the download button below.


4 Ways to Create Multiple Groups in Excel

Assume you have the following dataset. It contains the names of the sales representatives of each month and corresponding sales. Now you want to group the sales by each quarter. Then apply any of the methods below.


1. Create Multiple Groups with Keyboard Shortcut

Follow the steps to quickly create multiple groups in excel using a keyboard shortcut.

๐Ÿ“Œ Steps:

  • First, select the rows which you want to group together by clicking the row numbers.

  • Then, press SHIFT+ALT+Right Arrow(โžœ). After that, you will see the following result. You can hide the grouped rows by clicking on the negative icon at the left of the row numbers.

Create Multiple Groups with Keyboard Shortcut

  • If you select a range of cells instead, you have to confirm whether to group rows or columns.

  • Next, select the other rows which you want to group together.

  • But, you may not get the desired results. Because the dataset is not formatted properly. Therefore, you may end up with a single group instead of multiple ones.

  • Now, insert a new row below row 7 to format the dataset properly to create multiple groups. Then, insert the following formula in cell D8 to show the total sales for the first quarter.
=SUM(D5:D7)

  • Then, enter the following formula in cell D12 to show the sales total for the second quarter.
=SUM(D9:D11)

  • Now, use the keyboard shortcut to group rows 5:7 and 9:11 After that, you will get the following result.

Create Multiple Groups with Keyboard Shortcut

  • You can show/hide the group contents by clicking on the icons at the left of the row numbers.

Create Multiple Groups in Excel

  • You can create multiple groups with columns in the same way. Then, the result will look as follows.

Create Multiple Groups in Excel

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


2. Create Multiple Groups with Group Command

You can also create multiple groups using the Group command in excel. Follow the steps below to do that.

๐Ÿ“Œ Steps:

  • First, format the dataset properly as in the earlier method.
  • Then, select the rows or columns which you want to group together.
  • Next, select Data >> Outline >> Group as shown below.
  • Then, repeat this procedure for other rows or columns.
  • After that, you will get the same result.

Create Multiple Groups with the Group Command


3. Apply Auto Outline Feature to Create Multiple Groups

If your dataset is formatted properly, you donโ€™t need to repeat the same process to create multiple groups as in the earlier methods. Instead, click anywhere in the dataset and select Data >> Outline >> Group >> Auto Outline as shown below. Then, excel will automatically create multiple groups based on your dataset.

Auto Outline Feature to Create Multiple Groups

But, if the dataset is not formatted properly, then excel will show the following error.


4. Utilize Excel Pivot Table

Alternatively, you can quickly insert a PivotTable to create multiple groups within your dataset. Follow the steps below to do that.

๐Ÿ“Œ Steps:

  • First, select anywhere in the dataset. Then, select Insert >> PivotTable. Excel will automatically detect the range of the dataset. Otherwise, use the upward arrow to input the data range for the PivotTable. Then, mark the radio button for Existing Worksheet and enter the location. Click OK after that.

  • Now, check the checkboxes for the listed fields in the PivotTable Fields pane at the right. You can drag them to the respective areas too.

  • After that, excel will detect the similar types of data in the dataset and automatically group them together as follows.

  • Otherwise, select the rows or columns in the PivotTable and right-click to group therm.

Things to Remember

  • You must create your dataset in such a way so that excel can differentiate between various subsets of data within the dataset. For example, keep an empty or differently formatted row or column between two subsets of data.
  • You can use the SHIFT+ALT+Left Arrow(โฌ…) shortcut to ungroup any grouped data.

Conclusion

Now you know how to create multiple groups within a dataset in excel. Which method do you prefer the most? Do you have any further queries or suggestions? Please let us know in the comment section below. You can also visit our ExcelDemy blog to explore more about excel.

Stay with us and keep learning.


Related Articles

Md. Shamim Reza

Md. Shamim Reza

Hello there! This is Md. Shamim Reza. Working as an Excel & VBA Content Developer at ExcelDemy. We try to find simple & easy solutions to the problems that Excel users face every day. Our goal is to gather knowledge, find innovative solutions through them and make those solutions available for everybody. Stay with us & keep learning.

We will be happy to hear your thoughts

Leave a reply

ExcelDemy
Logo