Group and Ungroup in Excel: Shortcuts, Collapse and Remove Grouping

To group rows or columns in Excel, select them and press Shift + Alt + Right Arrow on Windows. To ungroup, press Shift + Alt + Left Arrow. To remove all grouping at once, go to Data > Ungroup > Clear Outline. Your data stays intact through all of these actions.

Quick Reference: Group and Ungroup in Excel

  • Group shortcut (Windows): Select rows or columns, press Shift + Alt + Right Arrow.
  • Ungroup shortcut (Windows): Select the grouped range, press Shift + Alt + Left Arrow.
  • Collapse a group: Click the minus (–) button on the left margin or top bar, or press the numbered outline buttons (1, 2, 3) in the top-left corner.
  • Remove all grouping: Data tab > Ungroup > Clear Outline. This is different from ungrouping a selection.
  • Excel grouping is non-destructive. Your data stays intact whether you collapse, expand or remove the outline entirely.

Group vs Ungroup Basics

Grouping in Excel means telling the application to treat a set of rows or columns as a collapsible unit. You are not hiding data manually row by row. You are creating an outline structure that Excel tracks, so you can show or hide sections with a single click.

Ungrouping reverses that. It removes the outline bracket from the selected rows or columns. The data stays exactly where it is. Nothing gets deleted, moved or reformatted. This matters because many beginners panic when they first collapse a group and think rows have disappeared.

When you would actually use this at work

Think about an MIS sheet tracking monthly sales for 12 regions across India. Each region has 20 rows of SKU-level data. Grouping those 20 rows under each region heading means your manager sees a clean 12-row summary. One click expands any region for the detail. This is the kind of practical Excel skill that comes up in data analyst interview questions more often than most candidates expect.

Grouping works on rows, columns or both. You can nest groups too, creating multiple outline levels. Excel supports up to eight outline levels per sheet. In practice, two or three levels is usually all you need.

Group vs Hide: the real difference

Feature Group / Outline Hide Rows/Columns
User can expand/collapse Yes, with one click or shortcut No, must right-click and unhide
Visible outline controls Yes (-/+ buttons, level numbers) No
Printable structure Yes, outline levels print Hidden rows do not print
Suitable for shared reports Yes, very professional Can confuse recipients
Removed with Clear Outline Yes N/A

According to Statista (2023), Microsoft Excel has over 1.1 billion users worldwide, making it the most widely deployed spreadsheet tool in enterprise environments globally. Despite that scale, outline and grouping features remain among the least-used productivity tools in the application, even though they have been available since Excel 97.

Shortcuts to Group, Ungroup, Expand and Collapse in Excel

The keyboard shortcuts for how to group and ungroup in Excel are consistent across Excel 2016, 2019, 2021 and Microsoft 365. Mac shortcuts differ slightly, so both are listed below.

Complete shortcut reference table

Action Windows Shortcut Mac Shortcut
Group selected rows/columns Shift + Alt + Right Arrow Command + Shift + K
Ungroup selected rows/columns Shift + Alt + Left Arrow Command + Shift + J
Collapse group (hide detail) Alt + A, then H Click the – button
Expand group (show detail) Alt + A, then J Click the + button
Show only outline level 1 Ctrl + 1 (numpad area) Command + 1
Show all levels Ctrl + 8 Command + 8
Open Group dialog box Alt + A + G + G Data menu > Group

How to group rows in Excel step by step

  1. Select the row numbers you want to group by clicking and dragging down the row header area on the left side of the sheet.
  2. Press Shift + Alt + Right Arrow. A dialog may appear asking whether to group rows or columns. Choose Rows and click OK.
  3. You will see a bracket appear on the left margin with a minus (-) sign. That is your group.
  4. Click the – sign to collapse it, or press the level number (1 or 2) at the top-left of the sheet to control all groups at that level.

How to group columns in Excel

Grouping columns in Excel follows the same process as grouping rows. Select the column headers you want to group, then press Shift + Alt + Right Arrow. The outline controls appear across the top of the sheet rather than down the left side. Click the – button above the grouped columns to collapse them, and the + button to expand them again. To ungroup a specific column range, select those column headers and press Shift + Alt + Left Arrow.

How to collapse a group in Excel

Collapsing a group is what makes the feature worth using. Click the – button beside the group in the margin, and those rows vanish from view without being deleted. Click the + button to bring them back. This is the expand group Excel shortcut most people are looking for when they first see a grouped sheet someone else built.

You can also use the numbered buttons (1, 2, 3) that appear in the top-left corner of the worksheet. Pressing 1 shows only the top-level summary rows. Pressing 2 shows one level of detail. Pressing the highest number shows everything. This is particularly useful when you have inherited a complex MIS report and need to get oriented fast.

How to create nested groups in Excel

Nested groups let you build multiple outline levels inside a single sheet. To create a nested group, first group your outer range (for example, rows 2 to 50 for a full quarter). Then select a subset of those rows (for example, rows 2 to 15 for January) and press Shift + Alt + Right Arrow again. Excel adds a second outline level. The numbered buttons in the top-left will now show 1, 2 and 3, letting you control each level independently. Two or three levels of nesting covers most real-world MIS and financial report structures.

Group and ungroup in Excel: Hindi quick reference

Agar aap Hindi mein samajhna chahte hain: Group ka matlab hai ki aap kuch rows ya columns ko ek saath ek collapsible unit ki tarah band kar sakte hain. Ungroup ka matlab hai us group ko todna, data delete nahi hota. Shortcut yaad rakho: group ke liye Shift + Alt + Right Arrow, ungroup ke liye Shift + Alt + Left Arrow. Yeh skill kisi bhi MIS ya data analyst role mein kaam aati hai. Agar aap is field mein career banana chahte hain, to data analyst kaise bane guide zaroor padhein.

Removing All Grouping in Excel

There is a difference between ungrouping a selection and removing all grouping from a sheet. If a colleague sent you a file with ten different groups scattered across it and you want to start fresh, selecting ranges one by one is slow. Use Clear Outline instead.

How to remove all grouping at once

  1. Click anywhere on the sheet. You do not need to select any specific range.
  2. Go to the Data tab on the ribbon.
  3. Click the dropdown arrow below the Ungroup button.
  4. Select Clear Outline.

Every group on that sheet disappears instantly. The outline level buttons in the top-left corner vanish too. Your data is completely untouched. This is the fastest way to handle Excel remove group tasks when you are cleaning up a file before sharing it.

Common mistake to avoid

A lot of users press Delete or try to right-click and look for a remove group option in the context menu. It is not there. The Ungroup and Clear Outline commands live exclusively in the Data tab. Getting used to that tab location is the first thing to drill.

According to NASSCOM’s 2024 Future of Work report, over 67% of entry-level analyst roles in India list intermediate-to-advanced Excel as a mandatory requirement. Small workflow gaps like not knowing where Clear Outline lives actually matter in hiring decisions. If you are curious about which data skills employers prioritise most, our breakdown of highest paying tech skills in 2026 puts Excel and data manipulation tools firmly in the top tier for Indian job market salaries.

Getting Out of Group Mode in Excel

Excel does not have a separate group mode toggle the way Print Preview does. The outline is a structural property of the sheet. So exiting group mode really means removing the outline structure, which returns the sheet to its normal view.

If you see the numbered outline buttons (1, 2, 3) in the top-left and the bracket markers in the margins, grouping is active. To exit that state completely, use Data > Ungroup > Clear Outline. After that, the outline controls disappear and the sheet behaves like a standard worksheet with no grouping.

One thing that trips people up: if you press Escape or click away, the outline does not go away. It is not a dialog or a temporary state. It is a structural property of the sheet. You have to actively remove it with Clear Outline or by ungrouping each range individually.

What happens to grouped data when you save and share

The grouping structure saves with the .xlsx file. Anyone who opens it in Excel, Google Sheets (with some limitations) or LibreOffice Calc will see the same outline controls. If you are sending a report to a client who does not need to interact with the outline, clearing it before sharing keeps things clean and avoids confusion. This is a real on-the-job consideration that experienced analysts in BFSI, e-commerce and manufacturing sectors mention regularly.

Practice with real Indian data

The fastest way to get comfortable with how to group and ungroup in Excel is to work through a realistic dataset. Try downloading a public dataset from data.gov.in, such as state-wise monthly GST collections, and practice grouping by state, then by quarter. Collapsing and expanding groups on real data makes the shortcuts stick in a way that toy examples do not. For more structured practice ideas, the data analytics projects guide on 3.0 University has beginner-friendly project ideas that use exactly this kind of structured Excel work.

LinkedIn’s Jobs on the Rise 2024 report listed Data Analyst as one of the top five fastest-growing roles in India, with a 33% year-on-year increase in job postings. Excel grouping and outline skills appear in job descriptions for MIS Analyst, Business Analyst and Operations Analyst roles across BFSI, e-commerce and manufacturing sectors. Understanding the difference between a data analyst vs data scientist can help you decide which skill set to prioritise next.

Data skills like these are directly transferable to roles in security operations, where analysts filter and collapse log data in dashboards every day. See how entry-level tech jobs are growing in 2026 and which skills are opening doors fastest.

Knowing how to group and ungroup in Excel, collapse sections with shortcuts and clear outlines completely puts you ahead of most spreadsheet users. These are not advanced features, but most people never learn them properly. Here are three things you can do this week to make them second nature.

  1. Open any multi-section Excel report you work with and practice grouping rows by category using Shift + Alt + Right Arrow. Then collapse and expand the groups using the margin buttons.
  2. Use Data > Ungroup > Clear Outline on a copy of that file and observe how the sheet changes. Undo it with Ctrl + Z and repeat until the menu path is automatic.
  3. Explore the 3.0 University online certification courses to build on these data skills. If you are interested in how data analysis connects to security analytics, the EC-Council Certified SOC Analyst course covers log filtering, dashboard work and anomaly detection, all skills that use the same structured data thinking you are building here.

Frequently Asked Questions

How do I ungroup in Excel?

Select the grouped rows or columns by clicking their headers, then press Shift + Alt + Left Arrow on Windows. This removes the grouping from the selected range only. Your data stays intact. If you want to ungroup everything on the sheet at once, go to Data > Ungroup > Clear Outline instead.

What is the shortcut to group and ungroup in Excel?

On Windows, the group and ungroup in Excel shortcut is Shift + Alt + Right Arrow to group and Shift + Alt + Left Arrow to ungroup. On Mac, use Command + Shift + K to group and Command + Shift + J to ungroup. Both shortcuts work on rows and columns depending on what you have selected.

How do I remove all grouping in Excel?

Go to the Data tab, click the dropdown arrow below the Ungroup button and select Clear Outline. This removes every group on the active sheet in one action. You do not need to select anything first. This is the fastest way to handle Excel remove row grouping or column grouping across a whole file.

How do I exit group mode in Excel?

Excel does not have a separate group mode toggle. The outline structure is a property of the sheet. To exit it, remove the outline using Data > Ungroup > Clear Outline. Once you do that, the numbered outline buttons and bracket markers disappear and the sheet returns to its normal view with no grouping active.

How do I collapse a group in Excel?

Click the – (minus) button in the left margin next to the grouped rows, or click the – button at the top for grouped columns. You can also click the numbered level buttons (1, 2, 3) in the top-left corner of the sheet to collapse all groups to a specific outline level at once. Click the + button to expand any collapsed group.

What is the difference between grouping and hiding rows in Excel?

Grouping creates a visible outline structure with -/+ buttons that any user can expand or collapse with one click. Hiding rows removes them from view with no visible indicator, and recipients must right-click and select Unhide to see them again. Grouping is more professional for shared reports because it is transparent and easy to reverse without knowing it was done.

Last updated: October 2026. Reviewed by the 3University editorial team.

We create, review, and maintain educational content covering Cybersecurity, Ethical Hacking, Artificial Intelligence, Blockchain, Web3, and emerging technologies.

Read More Articles