How to do the grouping in excel

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.

Data with a three-level outline

1.  To display rows for a level, click the appropriate one two three 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 plus and minus outline symbols, or press ALT+SHIFT+= to expand and ALT+SHIFT+- to collapse.

  1. 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.

  2. 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.

  3. 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.

    In the Outline group, click the dialog box launcher

    The Settings dialog box opens.

    The Settings dialog box for outlines

    Then in the Settings dialog box, clear the Summary rows below detail checkbox, and then click OK.

  4. Outline your data. Do one of the following:

    Outline the data automatically

    1. Select a cell in the range of cells you want to outline.

    2. On the Data tab, in the Outline group, click the arrow under Group, and then click Auto Outline.

      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.

    1. 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).

      A data selection ready to create an outer group

      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.

    2. 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.

      Click Rows and then click OK

      The outline symbols appear beside the group on the screen.

    3. 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.

      Data selected to group at level 2 in a hierarchy.

      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.

    4. On the Data tab, in the Outline group, click Group.

      Click Group on the Data tab

      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.

    5. Continue selecting and grouping inner rows until you have created all of the levels that you want in the outline.

    6. 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 Plus box or Minus box 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.

  1. 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.

  2. 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.

  3. 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.

    In the Outline group, click the dialog box launcher

    The Settings dialog box opens.

    The Settings dialog box for outlines

    Then in the Settings dialog box, clear the Summary columns to right of detail check box, and click OK.

  4. To outline the data, do one of the following:

    Outline the data automatically

    1. Select a cell in the range.

    2. 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.

    1. To outline the outer group (level 1), select all of the subordinate summary columns, as well as their related detail data.

      Data arranged in columns to be grouped

      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.

    2. On the Data tab, in the Outline group, click Group.

      Click Group on the Data tab

      The outline symbol appears above the group.

    3. 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.

      Data grouped in columns

      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.

    4. On the Data tab, in the Outline group, click Group.

      Click Group on the Data tab

      The outline symbols appear beside the group on the screen.

  5. Continue selecting and grouping inner columns until you have created all of the levels that you want in the outline.

  6. If you want to ungroup columns, select the columns, and then on the Data tab, in the Outline group, click Ungroup.

On the Data tab, click Ungroup

You can also ungroup sections of the outline without removing the entire level. Hold down SHIFT while you click the Plus box or Minus box 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

  1. If you don’t see the outline symbols one two three, plus, and minus, go to FileOptions 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.

  2. 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 plus button for the group, or press ALT+SHIFT+=.

    • To hide the detail data for a group, click the minus button for the group, or press ALT+SHIFT+-.

    • Expand or collapse the entire outline to a particular level    

      In the one two three 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 three.

    • Show or hide all of the outlined detail data    

      To show all detail data, click the lowest level in the one two three outline symbols. For example, if there are three levels, click three.

    • To hide all detail data, click one.

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    

  1. On the Data tab, in the Outline group, click the dialog box launcher.

    In the Outline group, click the dialog box launcher

    The Settings dialog box opens.

    The Settings dialog box for outlines

  2. Select the Automatic styles check box.

Apply a style to an existing summary row or column    

  1. Select the cells to which you want to apply a style.

  2. On the Data tab, in the Outline group, click the dialog box launcher.

    In the Outline group, click the dialog box launcher

    The Settings dialog box opens.

    The Settings dialog box for outlines

  3. Select the Automatic styles check box, and then click Apply Styles.

    Settings dialog box with Automatic Styles selected

You can also use autoformats to format outlined data.

  1. If you don’t see the outline symbols one two three, plus, and minus, go to FileOptions Advanced, and then under the Display options for this worksheet section, select the Show outline symbols if an outline is applied check box.

  2. Use the outline symbols one two three, minus, and plus to hide the detail data that you don’t want copied.

    For more information, see the section, Show or hide outlined data.

  3. Select the range of summary rows.

  4. On the Home tab, in the Editing group, click Find & Select, and then click Go To.

    Click Find & Select, and then click Go To

  5. Click Go To Special.

  6. Click Visible cells only.

  7. Click OK, and then copy the data.

Note: No data is deleted when you hide or remove an outline.

Hide an outline

  • Go to FileOptions > 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

  1. Click the worksheet.

  2. One the Data tab, in the Outline group, click Ungroup and click Clear Outline.

    Click Ungroup, and then 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:

  1. Create a summary report

    1. Outline your data.

      For more information, see the sections Create an outline of rows or Create an outline of columns.

    2. Hide the detail by clicking the outline symbols one two three, plus, and minus to show only the totals as shown in the following example of a row outline:

      Outlined list with only total rows showing

    3. For more information, see the section, Show or hide outlined data.

  2. Chart the summary report

    1. 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.

    2. Click Insert > Charts > Recommended Charts, then click the All Charts tab and choose your chart type.

      Insert Chart dialog

      For example, if you chose the Clustered Column option, your chart would look like this:

      Chart made from subtotal data

      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

Outline of rows in Excel Online

  1. The first column contains labels.

  2. The detail rows and summary rows are grouped in the outline.

  3. The grand total is not grouped in the outline.

Outline of columns in Excel Online

  1. The first row contains labels.

  2. The detail columns and summary columns are grouped in the outline.

  3. The grand total is not grouped in the outline.

  1. 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.

  2. Select the data (including any summary rows or columns).

  3. On the Data tab, in the Outline group, click Group > Group Rows or Group Columns.

  4. Optionally, if you want to outline an inner, nested group — select the rows or columns within the outlined data range, and repeat step 3.

  5. 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 plus for the group, or press ALT+SHIFT+=.

  • To hide the detail data for a group, click the minus for the group, or press ALT+SHIFT+-.

Expand or collapse the entire outline to a particular level    

  • In the one two three 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 three.

Show or hide all of the outlined detail data    

  • To show all detail data, click the lowest level in the one two three outline symbols. For example, if there are three levels, click three.

  • To hide all detail data, click one.

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

Содержание

  • Настройка группировки
  • Группировка по строкам
  • Группировка по столбцам
  • Создание вложенных групп
  • Разгруппирование
  • Вопросы и ответы

Группирование в Microsoft Excel

При работе с таблицами, в которые входит большое количество строк или столбцов, актуальным становится вопрос структурирования данных. В Экселе этого можно достичь путем использования группировки соответствующих элементов. Этот инструмент позволяет не только удобно структурировать данные, но и временно спрятать ненужные элементы, что позволяет сконцентрировать своё внимания на других частях таблицы. Давайте выясним, как произвести группировку в Экселе.

Настройка группировки

Прежде чем перейти к группировке строк или столбцов, нужно настроить этот инструмент так, чтобы конечный результат был близок к ожиданиям пользователя.

  1. Переходим во вкладку «Данные».
  2. Переход во вкладку Данные в Microsoft Excel

  3. В нижнем левом углу блока инструментов «Структура» на ленте расположена маленькая наклонная стрелочка. Кликаем по ней.
  4. Переход в настройки структуры в Microsoft Excel

  5. Открывается окно настройки группировки. Как видим по умолчанию установлено, что итоги и наименования по столбцам располагаются справа от них, а по строкам – внизу. Многих пользователей это не устраивает, так как удобнее, когда наименование размещается сверху. Для этого нужно снять галочку с соответствующего пункта. В общем, каждый пользователь может настроить данные параметры под себя. Кроме того, тут же можно включить автоматические стили, установив галочку около данного наименования. После того, как настройки выставлены, кликаем по кнопке «OK».

Настройка группировки в Microsoft Excel

На этом настройка параметров группировки в Эксель завершена.

Группировка по строкам

Выполним группировку данных по строкам.

  1. Добавляем строчку над группой столбцов или под ней, в зависимости от того, как планируем выводить наименование и итоги. В новой ячейке вводим произвольное наименование группы, подходящее к ней по контексту.
  2. Добавление итоговой ячейки в Microsoft Excel

  3. Выделяем строки, которые нужно сгруппировать, кроме итоговой строки. Переходим во вкладку «Данные».
  4. Перемещение во вкладку Данные в Microsoft Excel

  5. На ленте в блоке инструментов «Структура» кликаем по кнопке «Группировать».
  6. Переход к группировке в Microsoft Excel

  7. Открывается небольшое окно, в котором нужно дать ответ, что мы хотим сгруппировать – строки или столбцы. Ставим переключатель в позицию «Строки» и жмем на кнопку «OK».

Установка группировки строк в Microsoft Excel

На этом создание группы завершено. Для того, чтобы свернуть её достаточно нажать на знак «минус».

Сворачивание строк в Microsoft Excel

Чтобы заново развернуть группу, нужно нажать на знак «плюс».

Lumpics.ru

Разварачивание строк в Microsoft Excel

Группировка по столбцам

Аналогичным образом проводится и группировка по столбцам.

  1. Справа или слева от группируемых данных добавляем новый столбец и указываем в нём соответствующее наименование группы.
  2. Добавление столбца в Microsoft Excel

  3. Выделяем ячейки в столбцах, которые собираемся сгруппировать, кроме столбца с наименованием. Кликаем на кнопку «Группировать».
  4. Переход к группировке столбцов в Microsoft Excel

  5. В открывшемся окошке на этот раз ставим переключатель в позицию «Столбцы». Жмем на кнопку «OK».

Группирование столбцов в Microsoft Excel

Группа готова. Аналогично, как и при группировании столбцов, её можно сворачивать и разворачивать, нажимая на знаки «минус» и «плюс» соответственно.

Создание вложенных групп

В Эксель можно создавать не только группы первого порядка, но и вложенные. Для этого, нужно в развернутом состоянии материнской группы выделить в ней определенные ячейки, которые вы собираетесь сгруппировать отдельно. Затем следует провести одну из тех процедур, какие были описаны выше, в зависимости от того, со столбцами вы работаете или со строками.

Создание вложенной группы в Microsoft Excel

После этого вложенная группа будет готова. Можно создавать неограниченное количество подобных вложений. Навигацию между ними легко проводить, перемещаясь по цифрам, расположенным слева или сверху листа в зависимости от того, что сгруппировано строки или столбцы.

Навигация по группам в Microsoft Excel

Разгруппирование

Если вы хотите переформатировать или просто удалить группу, то её нужно будет разгруппировать.

  1. Выделяем ячейки столбцов или строк, которые подлежат разгруппированию. Жмем на кнопку «Разгруппировать», расположенную на ленте в блоке настроек «Структура».
  2. Разгруппирование в Microsoft Excel

  3. В появившемся окошке выбираем, что именно нам нужно разъединить: строки или столбцы. После этого, жмем на кнопку «OK».

Разгруппирование строк в Microsoft Excel

Теперь выделенные группы будут расформированы, а структура листа примет свой первоначальный вид.

Как видим, создать группу столбцов или строк довольно просто. В то же время, после проведения данной процедуры пользователь может значительно облегчить себе работу с таблицей, особенно если она сильно большая. В этом случае также может помочь создание вложенных групп. Провести разгруппирование так же просто, как и сгруппировать данные.

Еще статьи по данной теме:

Помогла ли Вам статья?

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.

Example of How to Group in Excel

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:

  1. Select the rows you wish to add grouping to (entire rows, not just individual cells)
  2. Go to the Data Ribbon
  3. Select Group
  4. Select Group again

Steps to use the Excel Group Function

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.

Groups are the best alternative to hide cells in Excel

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.

  1. Go to the Data ribbon.
  2. Click on the tiny arrow in the bottom corner of the outline section.
  3. 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?

  1. Group adjacent two columns or rows separately with shortcut keys.
  2. Just select column A, and then hold Shift + Alt + Right arrow as following screenshot shown:
  3. 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

  1. Click on the data tab.
  2. Choose the cells.
  3. Choose groups from the menu.
  4. A box appears with the option of rows and columns.
  5. Choose the ones you wanted to group either rows or columns.
  6. 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. Image titled Group and Outline Excel Data Step 1

    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. Image titled Group and Outline Excel Data Step 2

    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.”
  3. Advertisement

  1. Image titled Group and Outline Excel Data Step 3

    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. Image titled Group and Outline Excel Data Step 4

    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. Image titled Group and Outline Excel Data Step 5

    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. Image titled Group and Outline Excel Data Step 6

    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.
  5. Advertisement

  1. Image titled Group and Outline Excel Data Step 7

    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. Image titled Group and Outline Excel Data Step 8

    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. Image titled Group and Outline Excel Data Step 9

    3

    Click Group. It’s on the right side of the Data toolbar.

  4. Image titled Group and Outline Excel Data Step 10

    4

    Select a group option. Click Rows to minimize your data vertically, or click Columns to minimize horizontally.

  5. Image titled Group and Outline Excel Data Step 11

    5

    Click OK. It’s at the bottom of the pop-up window. Your grouped data is all set!

  6. Advertisement

  1. Image titled Group and Outline Excel Data Step 12

    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. Image titled Group and Outline Excel Data Step 13

    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.

  3. 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?

    Community Answer

    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?

    Community Answer

    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.

    Community Answer

    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.

Is this article up to date?

Like this post? Please share to your friends:
  • How to do sums in word
  • How to do degrees in word
  • How to do cover page in word
  • How to do countif in excel
  • How to do corrections in word