How to Group and Outline Excel Data: Easily Collapse Rows of Info

Download Article

Layer your data to stay organized

Download Article

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 How.com.vn 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.”
Part 1
Part 1 of 4:

Preparing Your Data

Download Article
  1. How.com.vn English: Step 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]
  2. How.com.vn English: Step 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
Part 2
Part 2 of 4:

Outlining Automatically

Download Article
  1. How.com.vn English: Step 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. How.com.vn English: Step 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. How.com.vn English: Step 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. How.com.vn English: Step 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
Part 3
Part 3 of 4:

Outlining Manually

Download Article
  1. How.com.vn English: Step 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. How.com.vn English: Step 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. How.com.vn English: Step 3 Click Group.
    It's on the right side of the Data toolbar.
  4. How.com.vn English: Step 4 Select a group option.
    Click Rows to minimize your data vertically, or click Columns to minimize horizontally.
  5. How.com.vn English: Step 5 Click OK.
    It's at the bottom of the pop-up window. Your grouped data is all set!
  6. Advertisement
Part 4
Part 4 of 4:

Minimizing & Clearing

Download Article
  1. How.com.vn English: Step 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. How.com.vn English: Step 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

Community Q&A

Search
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?
    How.com.vn English: Community Answer
    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?
    How.com.vn English: Community Answer
    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.
    How.com.vn English: Community Answer
    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

      Tips

      Submit a Tip
      All tip submissions are carefully reviewed before being published
      Thanks for submitting a tip for review!
      Advertisement

      Warnings

      • 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

      How.com.vn English: Kyle Smith
      Written by:
      How.com.vn Technology Writer
      This article was co-authored by How.com.vn staff writer, Kyle Smith. Kyle Smith is a How.com.vn Technology Writer, learning and sharing information about the latest technology. He has presented his research at multiple engineering conferences and is the writer and editor of hundreds of online electronics repair guides. Kyle received a BS in Industrial Engineering from Cal Poly, San Luis Obispo. This article has been viewed 1,519,118 times.
      How helpful is this?
      Co-authors: 29
      Updated: September 27, 2023
      Views: 1,519,118
      Categories: Microsoft Excel
      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,519,118 times.

      Is this article up to date?

      ⚠️ Disclaimer:

      Content from Wiki How English language website. Text is available under the Creative Commons Attribution-Share Alike License; additional terms may apply.
      Wiki How does not encourage the violation of any laws, and cannot be responsible for any violations of such laws, should you link to this domain, or use, reproduce, or republish the information contained herein.

      Notices:
      • - A few of these subjects are frequently censored by educational, governmental, corporate, parental and other filtering schemes.
      • - Some articles may contain names, images, artworks or descriptions of events that some cultures restrict access to
      • - Please note: Wiki How does not give you opinion about the law, or advice about medical. If you need specific advice (for example, medical, legal, financial or risk management), please seek a professional who is licensed or knowledgeable in that area.
      • - Readers should not judge the importance of topics based on their coverage on Wiki How, nor think a topic is important just because it is the subject of a Wiki article.

      Advertisement