How-to · Excel for Mac

How to group and outline rows in Excel on Mac: steps for Microsoft 365 users

To group rows in Excel on Mac, select the whole rows, then choose Data > Outline > Group > Group. If Excel asks, pick Rows, or press ⌘⇧K to group the selection without the ribbon.

Updated Checked against Excel for Mac in Microsoft 365, latest build checked 16.114.310 minEasy

Person at a Mac learning how to group and outline rows in Excel on Mac
Learning the Excel steps at a desk. · Image by Mohamed_hassan from Pixabay

Quick answer

  • Select whole rows, then choose Data > Outline > Group > Group.
  • Press ⌘⇧K to group and ⌘⇧J to ungroup.
  • Press ⌃8 to show or hide the outline symbols in the margin.
  • A greyed-out Group button often means a protected sheet, several selected sheets, or a cell inside a Table.
  • Unhide rows before grouping, or the outline can misread your data.

What you need

  • Excel for Mac in Microsoft 365
  • A worksheet you can edit, not a protected sheet
  • Rows that belong together as one set
  • A copy of the file for practice, if the sheet matters

How to Group and outline rows in Excel on Mac in Excel on a Mac

  1. Select whole rows

    Click the row number at the left edge of the first row in the group. Hold Shift and click the last row number. Selecting whole rows keeps the grouping command simple.

    Tip: Dragging across row numbers works too, as long as you start on a row number, not a cell.

  2. Open the Data tab

    Data

    Click Data in the ribbon at the top of the Excel window. The Outline group on this tab holds the Group and Ungroup commands.

  3. Click Group

    DataOutlineGroupGroup

    In the Outline group, click Group, then choose Group from its menu. Excel groups the selected rows straight away when you selected whole rows.

  4. Pick Rows if Excel asks

    If you selected cells instead of whole rows, the Group dialog appears. Select Rows, then click OK. Excel groups the rows and draws the outline bar in the margin.

  5. Test the outline

    Look at the left margin. A bar runs beside the grouped rows, with a button near the summary row. Click the button to collapse the group, then click again to expand it.

    Tip: Collapse and expand once before you save, so you know the group works.

  6. Group the next set with the shortcut

    ⌘⇧K

    Select the next set of whole rows and press ⌘⇧K. This skips the ribbon. Press ⌘⇧J later to ungroup a set you no longer need.

    Tip: Shortcuts can change with your keyboard layout, so confirm them once on your own Mac.

  7. Move the summary row if needed

    If the summary should sit above the detail, open the Outline group's dialog launcher and clear Summary rows below detail. Then click OK to apply the change.

What row grouping does in an Excel sheet

Grouping rows stacks detail rows under one summary row. You collapse the detail to see only the total, then expand it when a figure needs checking. Excel draws the outline in the left margin, with a bracket line beside the rows and a button to collapse or expand them.

Grouping suits sheets with a clear hierarchy. A daily sales log with a total row under each month is a good example. So is a budget with detail lines under each category heading. Collapse the sheet to read the category totals, then open one category when a number looks wrong.

Grouping changes only how rows look. Microsoft's outline guide describes a Clear Outline command that removes the outline without deleting data. That makes grouping easy to undo, so test it on a copy first if the sheet matters.

Structure also helps you check your work. A 2008 paper by Panko reviewed fifteen years of research and found spreadsheet errors to be common and non-trivial. Collapsing a sheet to check totals against their detail is one simple habit that helps you catch mistakes.

Person at a Mac learning how to group and outline rows in Excel on Mac
Learning the Excel steps at a desk. · Image by Mohamed_hassan from Pixabay

Unhide rows before you group them on Mac

Hidden rows and filtered rows can throw off a manual group. Microsoft's outline guide says to display all data before grouping by hand, because hidden data can lead to incorrect grouping. Clear any filter on the sheet first.

To unhide everything, click the blank box where the row and column headers meet. Then go to Home > Cells > Format > Hide & Unhide and pick the option for unhiding rows. Group the rows only after every row you expect is visible.

Group rows with the Data tab on Mac

Microsoft's outline guide gives the path Data > Outline > Group > Group. The Data tab sits after Formulas in the ribbon, and its Outline group holds the grouping tools.

Group is the first item, and its arrow opens Auto Outline. Ungroup has its own menu with Ungroup and Clear Outline. Ungroup works on the rows you select, while Clear Outline removes the outline itself.

Microsoft's outline guide is not a Mac-specific page, so labels may differ slightly in your build. If they do, look in the Outline group on the Data tab for the Group button.

Mac shortcuts for grouping and outlining rows

Shortcuts from Microsoft's keyboard page. Ribbon paths from Microsoft's outline guide.
ActionMac shortcutRibbon path in Microsoft's guide
Group selected rows or columns⌘⇧KData > Outline > Group > Group
Ungroup selected rows or columns⌘⇧JData > Outline > Ungroup > Ungroup
Show or hide outline symbols⌃8Not listed. Use the shortcut.
Hide selected rows⌃9Not listed. Use the shortcut.
Unhide selected rows⌃⇧(Home > Cells > Format > Hide & Unhide

Microsoft says many Windows Ctrl shortcuts also work with Control in Excel for Mac. Grouping and ungrouping use Command and Shift instead, so ⌘⇧K and ⌘⇧J are the pair to remember.

Use the shortcut and select whole rows first

Exceljet advises selecting whole rows or columns before you group. If you select only cells, Excel asks whether to group rows or columns. Whole rows skip that question and group straight away.

Click the row number at the left edge of the first row. Hold Shift and click the last row number in the group. Press ⌘⇧K, and the outline bar appears in the margin.

The keys have been around for a while. A 2012 Microsoft Q&A answer about Excel 2011 lists the same Command and Shift pair for grouping and ungrouping. That answer came from a community member, not Microsoft staff, so check the keys on your own build.

Auto Outline for sheets with total rows

Auto Outline builds groups for you when the sheet has summary formulas. Microsoft's guide places it at Data > Outline > Group arrow > Auto Outline. Excel looks for summary rows whose formulas point at the detail rows near them.

Auto Outline works best when totals sit in predictable places. A row that sums the rows above it gives Excel a clear detail range. If totals are scattered or mixed with notes, the outline can group the wrong rows, so check the result before you save.

If Auto Outline gets it wrong, choose Data > Outline > Ungroup > Clear Outline. Then group the rows by hand. Clear Outline keeps your data, so only the groups go away.

Office desk with a Mac, a typical place to group and outline rows in Excel on Mac
A desk setup for spreadsheet work. · Image by StartupStockPhotos from Pixabay

Collapse, expand, and move the summary row

Each group has a summary row. Microsoft's guide says the summary sits below the detail by default. Excel can place it above the detail instead, which suits reports where each block starts with its heading.

To move the summary, open the Outline group's dialog launcher and clear Summary rows below detail. For column groups, clear Summary columns to right of detail instead.

Press ⌃8 to show or hide the outline symbols. Use it when the margin buttons vanish and you need them back. Microsoft lists ⌃8 as the Mac shortcut for displaying or hiding outline symbols.

Excel for the web follows the same Data > Outline path. It cannot set the summary position or apply outline styles, so make those changes in the desktop app on your Mac.

Group columns the same way

The same steps group columns. Select whole column letters, then choose Data > Outline > Group > Group and pick Columns. Exceljet's shortcut page lists ⌘⇧K for rows or columns, so the same keys apply.

Ungroup rows or clear the outline on Mac

Select the grouped rows, then choose Data > Outline > Ungroup > Ungroup. You can also press ⌘⇧J. The rows return to a flat list, and the margin bar disappears.

To remove the whole outline from a sheet, choose Data > Outline > Ungroup > Clear Outline. Microsoft says this removes the outline without deleting data. Your rows stay where they were, just without the collapse buttons.

Why the Group button is greyed out

A greyed-out Group button has a cause, and it is often one of the following. Microsoft's outline guide does not list these causes. They come from user reports on forums and help sites, so treat each one as a lead to check.

  • Protected sheet. The sheet blocks outline changes. Unprotect it if you know the password, or ask the person who protected it.
  • Several sheets selected. Excel may disable some commands while sheets are selected together. Click one sheet tab to clear the selection.
  • Active cell inside a Table. Click a cell outside the Table, then try again. Test this on a copy first.
  • Hidden or filtered rows. Clear the filter, unhide the rows as described above, then group again.

If none of these fit, check that the workbook is not read-only. A read-only copy cannot save outline changes.

Mistakes people make with row groups

  • Putting the summary row inside its own group. Collapsing the group then hides the total as well, which defeats the point.
  • Grouping to hide errors. Collapsed rows hide detail, not mistakes. Expand every group and check the numbers before you share the file.
  • Expecting grouping to sort rows. Grouping does not reorder anything. Sort first, then group.
  • Leaving the outline symbols off. If you hide them with ⌃8 and forget, the sheet looks ungrouped to everyone who opens it.

Check a grouped sheet before you share it

Expand every group before you send a file. Scan each summary row against the detail under it. Save one copy with the groups collapsed for a clean summary, and one with them open for the people who need the detail.

Which Excel build to check first

Microsoft's Excel for Mac release notes list build 16.114.3 (Build 26102720) as the newest entry at the time of writing. It is dated October 27, 2026.

The October builds from 16.113.4 through 16.114.3 list quality, performance and security fixes only, with no changes to the Data tab or outlines. Check your own build under Excel > About Excel, and trust your screen over this guide if the labels differ.

Laptop and notebook on a desk, ready to group and outline rows in Excel on Mac
Notes and a laptop before a spreadsheet review. · Image by Firmbee from Pixabay

What to do next with grouped rows

Save a copy of any workbook before you group a sheet others rely on. Group the copy, collapse and expand it, and check the totals. Then repeat the steps on the original.

If you need totals by category rather than collapsible detail, a pivot table may suit the job better. The steps are in how to make a pivot table in Excel on Mac.

Clean the data before you total it. Text that looks like numbers gets skipped by sums. The fixes are in how to convert text to numbers in Excel on Mac.

Excel shortcuts for this on Mac

Excel keyboard shortcuts on Mac
To do thisPress
Group selected rows or columns⌘⇧K
Ungroup selected rows or columns⌘⇧J
Show or hide outline symbols⌃8
Hide selected rows⌃9
Unhide selected rows⌃⇧(

If it does not work

The Group button is greyed out
Check for a protected sheet, several selected sheets, an active cell inside a Table, hidden rows, or a read-only file. Clear each cause in turn, and test on a copy.
Hidden rows make the outline look wrong
Unhide all rows first with Home > Cells > Format > Hide & Unhide, then group again. Hidden data can produce an incorrect grouping.
The outline symbols are missing
Press ⌃8 to toggle them back on. Microsoft's guide gives the Windows path File > Options > Advanced but not the Mac location, so look in Excel's settings for an outline symbols option.
The summary row sits above the detail
Open the Outline group's dialog launcher and clear Summary rows below detail. The summary moves above the group when that box is clear.
Rows look deleted after ungrouping
Ungroup does not delete rows. They may be hidden, so select the rows on either side and press ⌃⇧( to unhide them. Press ⌘Z if you ran the wrong command.

Faster with Lazur

Do it faster: ask Lazur while you are in Excel

Hold ⌥ ⌘ and say what you want. Lazur sees your Excel window. Lazur draws a circle and a label around the button or menu you need.

  • 1

    Hold ⌥⌘ and talk

  • 2

    Lazur draws a circle and a label around the button or menu you need.

  • 3

    You stay in Excel. Nothing to copy into a chat window.

Free for 3 days, then $18/month. Download for Mac

You say“Where is the Group button?”

Lazur · points at itLazur draws a circle and a label around the Group button on your screen, so you can find it fast.

Excel
HomeInsertGroup buttonRight hereDrawFormulasDataReview

Questions people ask

What is the Mac shortcut to group rows in Excel?

Select whole rows, then press ⌘⇧K. Microsoft's keyboard page lists this for grouping selected cells, and Exceljet lists it for rows or columns. Ungroup uses ⌘⇧J.

Does grouping rows delete any data?

No. Grouping changes how rows display. Microsoft says Clear Outline removes an outline without deleting data, so your rows stay in place.

Why does Excel ask whether to group Rows or Columns?

You selected cells, not whole rows. Select the row numbers instead, and Excel groups the rows directly without showing the dialog.

Can I group rows in Excel for the web?

Yes, through the same Data > Outline path. You cannot set the summary position or apply outline styles there, so use the desktop app for those changes.

How do I get the outline symbols back on Mac?

Press ⌃8. Microsoft's keyboard page lists this as the shortcut to display or hide outline symbols.

Is the Group button the same in older Excel for Mac?

The shortcut keys match a 2012 community answer about Excel 2011. Labels can change between versions, so look for the Outline group on the Data tab if yours differ.

Will Auto Outline work on any sheet?

Not reliably. Auto Outline needs summary formulas that point at the detail rows. Without them, Excel has nothing to outline, so group the rows by hand.

Sources

  1. Outline (group) data in a worksheet - Microsoft Support · Microsoft · checked 2026-11-09
  2. Keyboard shortcuts in Excel - Microsoft Support · Microsoft · checked 2026-11-09
  3. Excel Shortcut: Group rows or columns - Exceljet · Exceljet · checked 2026-11-09
  4. Keyboard shortcut for Group... (Ungroup) in Excel 2011 - Microsoft Q&A · Microsoft Q&A · checked 2026-11-09
  5. Release notes for Office for Mac - Microsoft Learn · Microsoft Learn · checked 2026-11-09
  6. Spreadsheet Errors: What We Know. What We Think We Can Do - arXiv · arXiv · checked 2026-11-09

Try Lazur free for 3 days

Hold a key and ask. Lazur sees your screen, points at the button and talks you through it, in any Mac app. No credit card.