If you have a list of data you want to group and summarize, you can create an outline of up to eight levels. Each inner level, represented by a higher number in the outline symbols, displays detail data for the preceding outer level, represented by a lower number in the outline symbols. Use an outline to quickly display summary rows or columns, or to reveal the detail data for each group. You can create an outline of rows (as shown in the example below), an outline of columns, or an outline of both rows and columns.
1. To display rows for a level, click the appropriate outline symbols. 2. Level 1 contains the total sales for all detail rows. 3. Level 2 contains total sales for each month in each region. 4. Level 3 contains detail rows — in this case, rows 17 through 20. 5. To expand or collapse data in your outline, click the and outline symbols, or press ALT+SHIFT+= to expand and ALT+SHIFT+- to collapse. |
-
Make sure that each column of the data that you want to outline has a label in the first row (e.g., Region), contains similar facts in each column, and that the range you want to outline has no blank rows or columns.
-
If you want, your grouped detail rows can have a corresponding summary row—a subtotal. To create these, do one of the following:
-
Insert summary rows by using the Subtotal command
Use the Subtotal command, which inserts the SUBTOTAL function immediately below or above each group of detail rows and automatically creates the outline for you. For more information about using the Subtotal function, see SUBTOTAL function.
-
Insert your own summary rows
Insert your own summary rows, with formulas, immediately below or above each group of detail rows. For example, under (or above) the rows of sales data for March and April, use the SUM function to subtotal the sales for those months. The table later in this topic shows you an example of this.
-
-
By default, Excel looks for summary rows below the details they summarize, but it’s possible to create them above the detail rows. If you created the summary rows below the details, skip to the next step (step 4). If you created your summary rows above your detail rows, on the Data tab, in the Outline group, click the dialog box launcher.
The Settings dialog box opens.
Then in the Settings dialog box, clear the Summary rows below detail checkbox, and then click OK.
-
Outline your data. Do one of the following:
Outline the data automatically
-
Select a cell in the range of cells you want to outline.
-
On the Data tab, in the Outline group, click the arrow under Group, and then click Auto Outline.
Outline the data manually
Important: When you manually group outline levels, it’s best to have all data displayed to avoid grouping the rows incorrectly.
-
To outline the outer group (level 1), select all of the rows the outer group will contain (i.e., the detail rows and if you added them, their summary rows).
1. The first row contains labels, and is not selected.
2. Since this is the outer group, select all the rows with subtotals and details.
3. Don’t select the grand total.
-
On the Data tab, in the Outline group, click Group. Then in the Group dialog box, click Rows, and then click OK.
Tip: If you select entire rows instead of just the cells, Excel automatically groups by row — the Group dialog box doesn’t even open.
The outline symbols appear beside the group on the screen.
-
Optionally, outline an inner, nested group — the detail rows for a given section of your data.
Note: If you don’t need to create any inner groups, skip to step f, below.
For each inner, nested group, select the detail rows adjacent to the row that contains the summary row.
1. You can create multiple groups at each inner level. Here, two sections are already grouped at level 2.
2. This section is selected and ready to group.
3. Don’t select the summary row for the data you are grouping.
-
On the Data tab, in the Outline group, click Group.
Then in the Group dialog box, click Rows, and then click OK. The outline symbols appear beside the group on the screen.
Tip: If you select entire rows instead of just the cells, Excel automatically groups by row — the Group dialog box doesn’t even open.
-
Continue selecting and grouping inner rows until you have created all of the levels that you want in the outline.
-
If you want to ungroup rows, select the rows, and then on the Data tab, in the Outline group, click Ungroup.
You can also ungroup sections of the outline without removing the entire level. Hold down SHIFT while you click the or for the group, and then on the Data tab, in the Outline group, click Ungroup.
Important: If you ungroup an outline while the detail data is hidden, the detail rows may remain hidden. To display the data, drag across the visible row numbers adjacent to the hidden rows. Then on the Home tab, in the Cells group, click Format, point to Hide & Unhide, and then click Unhide Rows.
-
-
Make sure that each row of the data that you want to outline has a label in the first column, contains similar facts in each row, and the range has no blank rows or columns.
-
Insert your own summary columns with formulas immediately to the right or left of each group of detail columns. The table listed in step 4 below shows you an example.
Note: To outline data by columns, you must have summary columns that contain formulas that reference cells in each of the detail columns for that group.
-
If your summary column is to the left of the detail columns, on the Data tab, in the Outline group, click the dialog box launcher.
The Settings dialog box opens.
Then in the Settings dialog box, clear the Summary columns to right of detail check box, and click OK.
-
To outline the data, do one of the following:
Outline the data automatically
-
Select a cell in the range.
-
On the Data tab, in the Outline group, click the arrow below Group and click Auto Outline.
Outline the data manually
Important: When you manually group outline levels, it’s best to have all data displayed to avoid grouping columns incorrectly.
-
To outline the outer group (level 1), select all of the subordinate summary columns, as well as their related detail data.
1. Column A contains labels.
2. Select all the detail and subtotal columns. Note that if you don’t select entire columns, when you click Group (on the Data tab in the Outline group) the Group dialog box will open and ask you to choose Rows or Columns.
3. Don’t select the grand total column.
-
On the Data tab, in the Outline group, click Group.
The outline symbol appears above the group.
-
To outline an inner, nested group of detail columns (level 2 or higher), select the detail columns adjacent to the column that contains the summary column.
1. You can create multiple groups at each inner level. Here, two sections are already grouped at level 2.
2. These columns are selected and ready to group. Note that if you don’t select entire columns, when you click Group (on the Data tab in the Outline group) the Group dialog box will open and ask you to choose Rows or Columns.
3. Don’t select the summary column for the data you are grouping.
-
On the Data tab, in the Outline group, click Group.
The outline symbols appear beside the group on the screen.
-
-
Continue selecting and grouping inner columns until you have created all of the levels that you want in the outline.
-
If you want to ungroup columns, select the columns, and then on the Data tab, in the Outline group, click Ungroup.
You can also ungroup sections of the outline without removing the entire level. Hold down SHIFT while you click the or for the group, and then on the Data tab, in the Outline group, click Ungroup.
If you ungroup an outline while the detail data is hidden, the detail columns may remain hidden. To display the data, drag across the visible column letters adjacent to the hidden columns. On the Home tab, in the Cells group, click Format, point to Hide & Unhide, and then click Unhide Columns
-
If you don’t see the outline symbols , , and , go to File > Options > Advanced, and then under the Display options for this worksheet section, select the Show outline symbols if an outline is applied check box, and then click OK.
-
Do one or more of the following:
-
Show or hide the detail data for a group
To display the detail data within a group, click the button for the group, or press ALT+SHIFT+=.
-
To hide the detail data for a group, click the button for the group, or press ALT+SHIFT+-.
-
Expand or collapse the entire outline to a particular level
In the outline symbols, click the number of the level that you want. Detail data at lower levels is then hidden.
For example, if an outline has four levels, you can hide the fourth level while displaying the rest of the levels by clicking .
-
Show or hide all of the outlined detail data
To show all detail data, click the lowest level in the outline symbols. For example, if there are three levels, click .
-
To hide all detail data, click .
-
For outlined rows, Microsoft Excel uses styles such as RowLevel_1 and RowLevel_2 . For outlined columns, Excel uses styles such as ColLevel_1 and ColLevel_2. These styles use bold, italic, and other text formats to differentiate the summary rows or columns in your data. By changing the way each of these styles is defined, you can apply different text and cell formats to customize the appearance of your outline. You can apply a style to an outline either when you create the outline or after you create it.
Do one or more of the following:
Automatically apply a style to new summary rows or columns
-
On the Data tab, in the Outline group, click the dialog box launcher.
The Settings dialog box opens.
-
Select the Automatic styles check box.
Apply a style to an existing summary row or column
-
Select the cells to which you want to apply a style.
-
On the Data tab, in the Outline group, click the dialog box launcher.
The Settings dialog box opens.
-
Select the Automatic styles check box, and then click Apply Styles.
You can also use autoformats to format outlined data.
-
If you don’t see the outline symbols , , and , go to File > Options > Advanced, and then under the Display options for this worksheet section, select the Show outline symbols if an outline is applied check box.
-
Use the outline symbols , , and to hide the detail data that you don’t want copied.
For more information, see the section, Show or hide outlined data.
-
Select the range of summary rows.
-
On the Home tab, in the Editing group, click Find & Select, and then click Go To.
-
Click Go To Special.
-
Click Visible cells only.
-
Click OK, and then copy the data.
Note: No data is deleted when you hide or remove an outline.
Hide an outline
-
Go to File > Options > Advanced, and then under the Display options for this worksheet section, uncheck the Show outline symbols if an outline is applied check box.
Remove an outline
-
Click the worksheet.
-
One the Data tab, in the Outline group, click Ungroup and click Clear Outline.
Important: If you remove an outline while the detail data is hidden, the detail rows or columns may remain hidden. To display the data, drag across the visible row numbers or column letters adjacent to the hidden rows and columns. On the Home tab, in the Cells group, click Format, point to Hide & Unhide, and then click Unhide Rows or Unhide Columns.
Imagine that you want to create a summary report of your data that only displays totals accompanied by a chart of those totals. In general, you can do the following:
-
Create a summary report
-
Outline your data.
For more information, see the sections Create an outline of rows or Create an outline of columns.
-
Hide the detail by clicking the outline symbols , , and to show only the totals as shown in the following example of a row outline:
-
For more information, see the section, Show or hide outlined data.
-
-
Chart the summary report
-
Select the summary data that you want to chart.
For example, to chart only the Buchanan and Davolio totals, but not the grand totals, select cells A1 through C19 as shown in the above example.
-
Click Insert > Charts > Recommended Charts, then click the All Charts tab and choose your chart type.
For example, if you chose the Clustered Column option, your chart would look like this:
If you show or hide details in the outlined list of data, the chart is also updated to show or hide the data.
-
You can group (or outline) rows and columns in Excel for the web.
Note: Although you can add summary rows or columns to your data (by using functions such as SUM or SUBTOTAL), you cannot apply styles or set a position for summary rows and columns in Excel for the web.
Create an outline of rows or columns
|
|
Outline of rows in Excel Online
|
Outline of columns in Excel Online
|
-
Make sure that each column (or row) of the data that you want to outline has a label in the first row (or column), contains similar facts in each column (or row), and that the range has no blank rows or columns.
-
Select the data (including any summary rows or columns).
-
On the Data tab, in the Outline group, click Group > Group Rows or Group Columns.
-
Optionally, if you want to outline an inner, nested group — select the rows or columns within the outlined data range, and repeat step 3.
-
Continue selecting and grouping inner rows or columns until you have created all of the levels that you want in the outline.
Ungroup rows or columns
-
To ungroup, select the rows or columns, and then on the Data tab, in the Outline group, click Ungroup and select Ungroup Rows or Ungroup Columns.
Show or hide outlined data
Do one or more of the following:
Show or hide the detail data for a group
-
To display the detail data within a group, click the for the group, or press ALT+SHIFT+=.
-
To hide the detail data for a group, click the for the group, or press ALT+SHIFT+-.
Expand or collapse the entire outline to a particular level
-
In the outline symbols, click the number of the level that you want. Detail data at lower levels is then hidden.
-
For example, if an outline has four levels, you can hide the fourth level while displaying the rest of the levels by clicking .
Show or hide all of the outlined detail data
-
To show all detail data, click the lowest level in the outline symbols. For example, if there are three levels, click .
-
To hide all detail data, click .
Need more help?
You can always ask an expert in the Excel Tech Community or get support in the Answers community.
See Also
Group or ungroup data in a PivotTable
Содержание
- Настройка группировки
- Группировка по строкам
- Группировка по столбцам
- Создание вложенных групп
- Разгруппирование
- Вопросы и ответы
При работе с таблицами, в которые входит большое количество строк или столбцов, актуальным становится вопрос структурирования данных. В Экселе этого можно достичь путем использования группировки соответствующих элементов. Этот инструмент позволяет не только удобно структурировать данные, но и временно спрятать ненужные элементы, что позволяет сконцентрировать своё внимания на других частях таблицы. Давайте выясним, как произвести группировку в Экселе.
Настройка группировки
Прежде чем перейти к группировке строк или столбцов, нужно настроить этот инструмент так, чтобы конечный результат был близок к ожиданиям пользователя.
- Переходим во вкладку «Данные».
- В нижнем левом углу блока инструментов «Структура» на ленте расположена маленькая наклонная стрелочка. Кликаем по ней.
- Открывается окно настройки группировки. Как видим по умолчанию установлено, что итоги и наименования по столбцам располагаются справа от них, а по строкам – внизу. Многих пользователей это не устраивает, так как удобнее, когда наименование размещается сверху. Для этого нужно снять галочку с соответствующего пункта. В общем, каждый пользователь может настроить данные параметры под себя. Кроме того, тут же можно включить автоматические стили, установив галочку около данного наименования. После того, как настройки выставлены, кликаем по кнопке «OK».
На этом настройка параметров группировки в Эксель завершена.
Группировка по строкам
Выполним группировку данных по строкам.
- Добавляем строчку над группой столбцов или под ней, в зависимости от того, как планируем выводить наименование и итоги. В новой ячейке вводим произвольное наименование группы, подходящее к ней по контексту.
- Выделяем строки, которые нужно сгруппировать, кроме итоговой строки. Переходим во вкладку «Данные».
- На ленте в блоке инструментов «Структура» кликаем по кнопке «Группировать».
- Открывается небольшое окно, в котором нужно дать ответ, что мы хотим сгруппировать – строки или столбцы. Ставим переключатель в позицию «Строки» и жмем на кнопку «OK».
На этом создание группы завершено. Для того, чтобы свернуть её достаточно нажать на знак «минус».
Чтобы заново развернуть группу, нужно нажать на знак «плюс».
Группировка по столбцам
Аналогичным образом проводится и группировка по столбцам.
- Справа или слева от группируемых данных добавляем новый столбец и указываем в нём соответствующее наименование группы.
- Выделяем ячейки в столбцах, которые собираемся сгруппировать, кроме столбца с наименованием. Кликаем на кнопку «Группировать».
- В открывшемся окошке на этот раз ставим переключатель в позицию «Столбцы». Жмем на кнопку «OK».
Группа готова. Аналогично, как и при группировании столбцов, её можно сворачивать и разворачивать, нажимая на знаки «минус» и «плюс» соответственно.
Создание вложенных групп
В Эксель можно создавать не только группы первого порядка, но и вложенные. Для этого, нужно в развернутом состоянии материнской группы выделить в ней определенные ячейки, которые вы собираетесь сгруппировать отдельно. Затем следует провести одну из тех процедур, какие были описаны выше, в зависимости от того, со столбцами вы работаете или со строками.
После этого вложенная группа будет готова. Можно создавать неограниченное количество подобных вложений. Навигацию между ними легко проводить, перемещаясь по цифрам, расположенным слева или сверху листа в зависимости от того, что сгруппировано строки или столбцы.
Разгруппирование
Если вы хотите переформатировать или просто удалить группу, то её нужно будет разгруппировать.
- Выделяем ячейки столбцов или строк, которые подлежат разгруппированию. Жмем на кнопку «Разгруппировать», расположенную на ленте в блоке настроек «Структура».
- В появившемся окошке выбираем, что именно нам нужно разъединить: строки или столбцы. После этого, жмем на кнопку «OK».
Теперь выделенные группы будут расформированы, а структура листа примет свой первоначальный вид.
Как видим, создать группу столбцов или строк довольно просто. В то же время, после проведения данной процедуры пользователь может значительно облегчить себе работу с таблицей, особенно если она сильно большая. В этом случае также может помочь создание вложенных групп. Провести разгруппирование так же просто, как и сгруппировать данные.
Еще статьи по данной теме:
Помогла ли Вам статья?
The best way to keep spreadsheets organized
Guide on How to Group in Excel
Grouping rows and columns in Excel[1] is critical for building and maintaining a well-organized and well-structured financial model. Using the Excel group function is the best practice when it comes to staying organized, as you should never hide cells in Excel. This guide will show you how to group in Excel with step-by-step instructions, examples, and screenshots.
Keyboard Shortcuts Sheet
Looking to be an Excel wizard? Increase your productivity with CFI’s comprehensive keyboard shortcuts guide.
Excel Group Function
The Excel group function is one of the best secrets a world-class financial analyst uses to make their work extremely organized and easy for other users of the spreadsheet to understand.
Reasons to use the Excel Group Function:
- To easily expand and contract sections of a worksheet
- To minimize schedules or side calculations that other users might not need
- To keep information organized
- As a substitute for creating new sheets (tabs)
- As a superior alternative to hiding cells
The function is found in the Data section of the Ribbon, then Group.
Example of How to Group in Excel
Let’s look at a simple exercise to see how it works. Suppose we have a schedule in a worksheet that is becoming quite long, and we want to reduce the amount of detail that’s shown. The screenshots below will show you how to properly implement grouping in Excel.
Here are the steps to follow to group rows:
- Select the rows you wish to add grouping to (entire rows, not just individual cells)
- Go to the Data Ribbon
- Select Group
- Select Group again
You can repeat the steps above as many times as you like, and you can also apply it to columns as well.
Once you’re finished, you can press the “-” buttons in the margin to collapse the rows or columns.
If you want to expand them again, press the “+” buttons in the margin, as shown in the screenshot below.
There is also a “1” button in the top left corner to collapse all groups, and a “2” button to expand all groups.
Why You Should Never Hide Cells in Excel
Though many people do it, you should never hide cells in Excel (or spreadsheets either, for that matter). The reason is that Excel does not make it clear to the user of the spreadsheet that cells have been hidden, and thus they may go unnoticed.
The only way to see that cells are hidden is to notice that the row number or column number suddenly jumps (e.g., from row 25 to row 167).
Since other users of the spreadsheet may not notice this (and you may forget yourself) you should never hide cells in Excel.
Download Excel Group Template
You can download the Template for free if you wish to use it as an example or starting point for how to group in Excel and apply it to your own work and financial analysis.
Additional Resources
Thank you for reading CFI’s guide to Group in Excel. To continue learning and advancing your career, these additional CFI resources will be helpful:
- List of 300+ Excel Functions
- Keyboard Shortcuts
- What is Financial Modeling?
- Financial Modeling Courses
- See all Excel resources
The “Group” is an Excel tool which groups two or more rows or columns. With grouping, the user has an option to minimize and maximize the grouped data. The rows or columns of the group collapse on minimizing and expand on maximizing. The “group” option is available under the “outline” section of the Data tab.
Contents
- 1 How do you use grouping in Excel?
- 2 What is grouping and ungrouping in Excel?
- 3 What is the benefit of grouping in Excel?
- 4 What does it mean to group columns in Excel?
- 5 How do I separate groups in Excel?
- 6 What do you understand by the term grouping?
- 7 What is grouping in pivot table?
- 8 What is grouped and ungrouped data?
- 9 What is Pivot in Excel?
- 10 What is consolidate in Excel?
- 11 How do you group top in Excel?
- 12 How do you group adjacent columns or rows separately?
- 13 What is an example of grouping?
- 14 Why is grouping done?
- 15 What is the need of grouping?
- 16 Why won’t excel group my dates?
- 17 How do I get a group dialog box in Excel?
- 18 How do I filter grouped rows in Excel?
- 19 What is the difference between group and ungroup data?
- 20 What are the difference between group and ungroup objects?
How do you use grouping in Excel?
On the Data tab, in the Outline group, click Group. Then in the Group dialog box, click Rows, and then click OK. Tip: If you select entire rows instead of just the cells, Excel automatically groups by row – the Group dialog box doesn’t even open.
What is grouping and ungrouping in Excel?
To ungroup data in a list in Excel: Select the rows or columns you wish to ungroup. On the Data tab, in the Outline group, click the Ungroup command. In the Group dialog box, select Rows or Columns and click OK .
What is the benefit of grouping in Excel?
Grouping rows and columns enables you to hide and unhide those rows and columns easily and quickly. The advantage with using grouping to do the hiding is that icons are added to the sheet to make it obvious that rows or columns are hidden. Those icons also make it easy to hide and unhide the rows and columns.
What does it mean to group columns in Excel?
Group Column in excel means bringing one or more columns together in an excel worksheet, this gives us option to contract or expand the column and excel provides us a button to do so, to group columns we need to select two or more columns and then from data tab in the outline section we have the option to group the
How do I separate groups in Excel?
A shortcut way to group rows or columns is to highlight the rows/columns you wish to group and use ALT+SHIFT+RIGHT ARROW to group the rows/columns, and ALT+SHIFT+LEFT ARROW to ungroup them.
What do you understand by the term grouping?
Definition of grouping
1 : the act or process of combining in groups. 2 : a set of objects combined in a group a furniture grouping.
What is grouping in pivot table?
Grouping data in a PivotTable can help you show a subset of data to analyze. For example, you may want to group an unwieldy list of dates or times (date and time fields in the PivotTable) into quarters and months, like this image. Note: The time grouping feature is new in Excel 2016.
What is grouped and ungrouped data?
What is grouped data and ungrouped data? Grouped data means the data (or information) given in the form of class intervals such as 0-20, 20-40 and so on. Ungrouped data is defined as the data given as individual points (i.e. values or numbers) such as 15, 63, 34, 20, 25, and so on.
A pivot table in Excel is an extraction or resumé of your original table with source data. A pivot table can provide quick answers to questions about your table that can otherwise only be answered by complicated formulas.
What is consolidate in Excel?
To summarize and report results from separate worksheets, you can consolidate data from each sheet into a master worksheet. The sheets can be in the same workbook as the master worksheet, or in other workbooks. When you consolidate data, you assemble data so that you can more easily update and aggregate as necessary.
How do you group top in Excel?
You can change the direction of grouping in Excel.
- Go to the Data ribbon.
- Click on the tiny arrow in the bottom corner of the outline section.
- Set the ticks according to your desired direction, for example “Summary rows below detail”.
How do you group adjacent columns or rows separately?
How to group adjacent columns or rows separately or independently in Excel?
- Group adjacent two columns or rows separately with shortcut keys.
- Just select column A, and then hold Shift + Alt + Right arrow as following screenshot shown:
- And the first two columns are grouped immediately, see screenshot:
What is an example of grouping?
For example, an example of two sparse groups would be birds and fish: crow, dolphin, dove, shark, pigeon. non-sparse – Non-sparse grouping means that the items in the group are very close together on the page and are usually encapsulated in a single list. For example: crow, dove, pigeon.
Why is grouping done?
Materials are grouped together on the basis of similarities and differences in their properties. Materials are grouped together for convenience and to study their properties. Grouping materials saves our time, energy and makes our work easier.
What is the need of grouping?
Grouping the objects helps us to arrange them in a systematic manner. The objects when grouped are easy to handle. When grouped, it is easy to know the properties of an object clearly. Grouping also makes easy to compare two objects.
Why won’t excel group my dates?
The simple rule for the enabling the Group Field feature for dates is: All cells in the date field (column) of the source data must contain dates (or blanks). If there are any cells in the date field of the source data that contain text or errors, then the group feature will NOT work.
How do I get a group dialog box in Excel?
On the Analyze tab, click Group Field in the Group option. When your field contains date information, the date version of the Grouping dialog box appears. By default, the Months option is selected. You have choices to group by Seconds, Minutes, Hours, Days, Months, Quarters, and Years.
How do I filter grouped rows in Excel?
Grouping in Excel | Filters in Excel
- Click on the data tab.
- Choose the cells.
- Choose groups from the menu.
- A box appears with the option of rows and columns.
- Choose the ones you wanted to group either rows or columns.
- Click ok.
What is the difference between group and ungroup data?
Grouped data is data that has been organized in classes after its analysis. Examples include how many bags of maize collected during the rainy season were bad. On the other hand, ungrouped data is data which does not fall in any group. It is still raw data.
What are the difference between group and ungroup objects?
You can combine several objects into a group to treat them as a single one. For example, you might group objects laying on a table with the table to in order move them together. When you ungroup the bigger group, objects in a nested group will remain grouped.
Download Article
Layer your data to stay organized
Download Article
- Preparing Your Data
- Outlining Automatically
- Outlining Manually
- Minimizing & Clearing
- Q&A
- Tips
- Warnings
|
|
|
|
|
|
Outlining (grouping) data in Excel is a great way to organize and summarize data. This feature nests your information into up to eight levels. Inner levels have the detailed data for the surrounding outer level. As long as your data has column headings and no blank rows, you can automatically group and outline automatically with Excel. This wikiHow guide teaches you how to group and outline Excel data so you can work with large data sets more efficiently.
This works on Windows and Mac!
Things You Should Know
- Prepare your data by making column or row headers and getting rid of blank rows and columns.
- Outline rows or columns automatically by selecting a cell in the data and going to Data > Group > Auto Outline.
- For the manual method, click the Group button and choose “Rows” or “Columns.”
-
1
Organize the data you want to outline. Each column should have a column header in the first row. Make sure the range you’re going to outline doesn’t contain blank rows or columns.[1]
- For a general spreadsheet guide, check out how to make a spreadsheet in Excel and format it.
- If you’re looking for Excel database info, read our guide on creating a database from an Excel spreadsheet.
- Are you using the free version of Excel and considering upgrading to Microsoft 365? See our coupon site for Staples discounts.
-
2
Optionally, create a summary row. This is also called a subtotal. You have two options for this:
- Select a cell in the data range. Go to the Data tab and click Subtotal in the Outline group.
- Insert summary rows with your own formulas. For example, you could use the SUM function to subtotal information. These can go above or below the data.
- If you place your summary rows above the data, open the dialog box in the Outline group of the Data tab (it’s the right angle with an arrow). Uncheck “Summary rows below detail.”
Advertisement
-
1
Select a cell that’s in the range you’re going to outline. This can be any cell in the data.
- Your data must have column headers and no blank lines for this feature to work.
-
2
Click the Data tab. It’s on the left side of the green ribbon that’s at the top of the Excel window. Doing so will open a toolbar below the ribbon.
-
3
Click the down arrow under the Group button. You’ll find this option on the far-right side of the Data tab. A drop-down menu will appear.
-
4
Click Auto Outline. It’s in the Group drop-down menu.
- If you receive a pop-up box that says «Cannot create an outline», your data doesn’t have an outline-compatible formula in it. You may also have some blank cells in your data or missing column headers. You’ll need to manually outline the data.
Advertisement
-
1
Select your data. Click and drag your cursor from the top-left cell of the data you want to group to the bottom-right cell of the data.
-
2
Click Data if this tab isn’t open. It’s in the left side of the green ribbon at the top of Excel.
-
3
Click Group. It’s on the right side of the Data toolbar.
-
4
Select a group option. Click Rows to minimize your data vertically, or click Columns to minimize horizontally.
-
5
Click OK. It’s at the bottom of the pop-up window. Your grouped data is all set!
Advertisement
-
1
Minimize your data. Click the [-] button at the top or on the left side of the Excel spreadsheet to hide the grouped data. In most cases, doing this will only display the final line of the data.
-
2
Clear your outline if needed. Click Ungroup to the right of the Group option, then click Clear Outline… in the drop-down menu. This will ungroup and unhide any data that was minimized or grouped previously.
Advertisement
Add New Question
-
Question
How do I reverse the grouping so that the total is at the top line and the collapsed lines fall below?
Click the «Data» tab, then come to the «Outline» section, then click the small arrow on the right bottom corner to «Show the Outline Dialog Box». From the settings, unclick «Summary Rows Below Detail.»
-
Question
My data is grouped, but I cannot see the outline symbols along the left side of my spreadsheet. What can I do?
While the document is open, go to «File,» «Options,» «Advanced,» «Display options for this worksheet.» Make sure «Show outline symbols if an outline is applied» is selected. This is necessary for every sheet where there are outlines/groupings applied.
-
Question
How do I group Rows 23 through 31 and then group Rows 32 through 36? When I do it, Excel groups Rows 23 thru 36.
You need an empty row between your two groups. Otherwise Excel will automatically merge them.
See more answers
Ask a Question
200 characters left
Include your email address to get a message when this question is answered.
Submit
Advertisement
-
You cannot use this function if the sheet is shared.
Thanks for submitting a tip for review!
Advertisement
-
Don’t use grouping/outlining if you plan to protect the worksheet. If you do, other users won’t be able to expand and collapse the rows.
Advertisement
About This Article
Article SummaryX
1. Open the Excel document.
2. Click Data
3. Click Group
4. Click Auto Outline
5. Click [-] to minimize data.
Did this summary help you?
Thanks to all authors for creating a page that has been read 1,502,512 times.