Simon Sez IT

Online software training and video tutorials for Microsoft, Adobe & more

  • Course List
    • Adobe
      • Dreamweaver
        • Dreamweaver CC
        • Dreamweaver CS6
        • Dreamweaver CS5
        • Dreamweaver CS4
      • Flash
        • Flash CS5
      • InDesign
        • InDesign CS6
        • InDesign CS5
      • Photoshop
        • Photoshop CS6
        • Photoshop CS5
        • Adobe Photoshop CS4
      • Photoshop Elements
        • Photoshop Elements 2022
        • Photoshop Elements 2019
        • Photoshop Elements 2018
        • Photoshop Elements 15
        • Photoshop Elements 14
        • Photoshop Elements 13
        • Photoshop Elements 12
        • Photoshop Elements 11
        • Photoshop Elements 10
        • Photoshop Elements 9
        • Photoshop Elements 8
    • Microsoft
      • Access
        • Access 2019
        • Access 2019 Advanced
        • Access 2016
        • Access 2016 Advanced
        • Access 2013
        • Access 2013 Advanced
        • Access 2010
        • Access 2010 Advanced
        • Access 2007
      • Excel
        • Excel 2021 Advanced
        • Excel 2021 Intermediate
        • Excel 2021 Beginners
        • PivotTables for Beginners
        • Excel Dashboards
        • Advanced Formulas in Excel
        • Excel for Business Analysts
        • Advanced PivotTables
        • Power Pivot, Power Query and DAX in Excel
        • Excel 2019 Beginners (Mac)
        • Excel 2019 Beginners
        • Excel 2019 Advanced
        • Excel 2016 Beginners
        • Excel 2016 Intermediate
        • Excel 2016 Advanced
        • Excel 2013
        • Excel 2013 Advanced
        • Excel 2010 Beginners
        • Excel 2010 Advanced
        • Excel 2007
      • OneNote
        • OneNote Desktop and Windows 10
        • OneNote 2016
      • Outlook
        • Outlook 2019
        • Outlook 2016
        • Outlook 2013
        • Outlook 2010
        • Outlook 2007
      • Power Automate
        • Introduction to Power Automate
      • PowerPoint
        • PowerPoint 2021
        • PowerPoint 2019
        • PowerPoint 2016
        • PowerPoint 2013
        • PowerPoint 2010
        • PowerPoint 2007
      • Project
        • Project 2019
        • Project 2019 Advanced
        • Project 2016
        • Project 2016 Advanced
        • Project 2013
        • Project 2013 Advanced
        • Project 2010
        • Project 2010 Advanced
      • Publisher
        • Publisher 2013
      • SharePoint
        • SharePoint Online
        • SharePoint Foundation 2013
        • SharePoint Server 2013
        • SharePoint Foundation 2010
      • Teams
        • Microsoft Teams
      • VBA
        • Macros and VBA for Beginners
        • VBA for Excel
        • VBA Intermediate Training
      • Visio
        • Microsoft Visio 2019
        • Visio 2016
        • Visio 2013
        • Microsoft Visio 2010
      • Windows
        • Windows 11
        • Windows 10 (2020 Update)
        • Windows 10
        • Windows 8
        • Windows 7
        • Windows Vista
      • Word
        • Word 2019 Advanced
        • Word 2019
        • Word 2016
        • Word 2013
        • Word 2010
        • Word 2007
    • QuickBooks
      • QuickBooks
        • QuickBooks Pro 2021
        • QuickBooks Online Advanced
        • QuickBooks Online
        • QuickBooks Canada
        • QuickBooks Pro 2020
        • QuickBooks 2019
        • QuickBooks 2018
        • QuickBooks Pro 2017
        • QuickBooks Pro 2016
        • QuickBooks Pro 2015
        • QuickBooks Pro 2014
        • QuickBooks Pro 2013
        • QuickBooks Pro 2012
        • QuickBooks Pro 2011
        • QuickBooks Pro 2010
        • QuickBooks Pro 2009
    • Web Development
      • AngularJs
        • AngularJS Crash Course
      • Dreamweaver
        • Dreamweaver CC
        • Dreamweaver CS6
        • Dreamweaver CS5
        • Dreamweaver CS4
      • Bootstrap
        • Bootstrap Framework
      • Html/CSS
        • HTML/CSS Crash Course
        • HTML5 Essentials
      • Python
        • Introduction to Python
      • Java
        • Java for Beginners
      • JavaScript
        • JavaScript for Beginners
        • jQuery Crash Course
      • MySql
        • MySQL for Beginners
      • PHP
        • PHP for Beginners
        • Advanced PHP Programming
      • XML
        • XML Crash Course
    • Data Analysis
      • Financial Modeling
        • Financial Forecasting and Modeling
      • Alteryx
        • Introduction to Alteryx
      • Power BI
        • Power BI – Beyond the Basics
        • Power BI
      • Qlik Sense
        • Qlik Sense
      • R Programming
        • R Programming
      • Tableau
        • Tableau Desktop
      • Python
        • Introduction to Python
    • Work Productivity
      • Google Sheets
        • Google Sheets for Beginners
      • Confluence
        • Introduction to Confluence
      • Monday
        • Getting Started in Monday.com
      • Asana
        • Introduction to Asana
      • Jira
        • Getting Started in Jira
  • For Business
  • About Us
    • Testimonials
    • Contact Us
    • FAQ
    • Membership
    • About Us
  • Pricing
  • Free Resources
  • Sign In
  • Sign Up
Home > Microsoft Excel > How to Group in Pivot Table? ( 2 Easy Methods)

How to Group in Pivot Table? ( 2 Easy Methods)

This guide on how to group in Pivot table is suitable for Excel 2016, 2019, 2021, and Excel for Microsoft 365. versions 

Pivot Tables are the number 1 tool in Excel for analyzing and presenting large amounts of data. However, to do this effectively we need to ensure we organize data into manageable subsets. The grouping and ungrouping features of Pivot Tables allow us to do this with ease. 

If you have been using Pivot Tables for a while, may already have noticed the auto-grouping features, particularly when working with time and date fields. You may not be as familiar with creating your own custom groups to break data up into manageable groups to make your Pivot Table easier to read and interpret. 

In this guide, understand how automatic grouping works and create your own groups to categorize PivotTable data. 

You’ll learn:

  • How to Group Dates in Pivot Table?
    • Automatic Grouping
    • Group Field
    • Group Field – By Name
    • Disabling Automatic Grouping
  • How to Group in Pivot Table Using Custom Groups?
  • How to Ungroup Data in Pivot Table?

How to Group Dates in Pivot Table?

Automatic Grouping

Let’s first take a look at the automatic grouping that occurs when we use the date field in a Pivot Table. In this example, we will be using sales data to build a PivotTable. Note that we have one ‘Date’ field in the dataset. This data is also already in a table. 

Automatic Grouping.
  • From the Table Design tab, in the Tools group, click Summarize with PivotTable. 
  • Select New Worksheet and click OK. 
  • Drag and drop the ‘Product’ field into ‘Rows’. 
Summarize with PivotTable.
  • Drag and drop the ‘Date’ field into ‘Rows’ above ‘Product’. 

Excel looks at the date in the dataset and establishes if it can break it down into smaller groups. We now have two additional fields: Quarter’s and Year’s in addition to the ‘Date’ field. We can use these fields independently. 

NOTE: To immediately undo automatic grouping, press Ctrl+Z. 

Breaking Date into Quarter, and Year.

If we only want to see the data summarized by ‘Year’, we could remove the ‘Date’ and ‘Quarters’ fields and just leave ‘Year’. 

How to Group in Pivot Table?
How to Group in Pivot Table?

Related:

4 Best Methods to Lock Cells in Excel

How to Add a Watermark in Excel? 2 Easy Methods

How to Make Excel Track Changes in a Workbook? 4 Easy Tips

Group Field

We can control how Excel automatically groups fields. It might be that we don’t want it to automatically split the dates into different subsets. We can control this using Group Field. 

  • Click in the PivotTable on a cell that contains a date. 
  • From the PivotTable Analyze tab, in the Group group, click Group. 
  • Select Group Field from the menu. 
Grouping in PivotTable.

In the Grouping dialog box, we can see the start and end dates of our sales data and how the data will be grouped when we drag and drop the field to the PivotTable. By default, my date field is grouped by Month, Quarters, and Years. 

We don’t have to use this default grouping. Simply de-select the highlighted groups to remove them. 

De-select unrequired fields.
  • Click OK. 

The Pivot Table now displays the data organized by ‘Month’ only. 

Summarize PivotTable with respect to Month.

Group Field – By Range

We can group fields by specific ranges. For example, maybe your PivotTable contains ages and you want to group them into 10-year buckets. Or maybe you have dates that you want to group into 28-day buckets. We can do this using Group Field. 

  • Click in the PivotTable on a cell that contains a date. 
  • From the PivotTable Analyze tab, in the Group group, click Group. 
  • Select Group Field from the menu. 
  • Select By Days. 
  • Use the scroll arrows and adjust the number of days to ‘28’. 
Group by Range.
  • Click OK. 

The Pivot data is now summarized by 28-day buckets. 

PivotTable View after Grouping by Date within a range.

Also Read:

How to Protect Cells in Excel Workbooks —5 Easy Ways

How to Indent in Excel? 3 Easy Methods

How to Add Subscript in Excel? (6 Best Methods)

Disabling Automatic Grouping

Automatic grouping can be disabled in Excel Options. Disabling grouping ensures that Excel will not automatically create groups based on the field selected.

  • From the File tab, click Options. 
  • Go to the Data page. 
  • In the Data options section, place a tick next to the Disable automatic grouping of Date/Time columns in PivotTables. 
Disable Automatic Grouping.

How to Group in Pivot Table Using Custom Groups?

We can create our own custom groups to categorize data and make it easier to analyze and interpret. 

In this example, we need to create groups to specify the range that the product belongs to. 

  • Select the items that belong to the first group. 
Custom Grouping.
  • From the PivotTable Analyze tab, in the Group group, click Group. 
  • Select Group Selection from the menu. 

The group will be given a default name of ‘Group 1’. We can rename this. 

  • Press the F2 key to edit the cell. 
  • Rename the group to ‘Premium’. 
PivotTable View 1 after Custom Grouping.
  • Select the items that belong to the second group. 
PivotTable View 2 after Custom Grouping.
  • From the PivotTable Analyze tab, in the Group group, click Group. 
  • Select Group Selection from the menu. 

The group will be given a default name of ‘Group 2’. We can rename this. 

  • Press the F2 key to edit the cell. 
  • Rename the group to ‘Luxury’. 
Rename the Summarized Table.
  • Select the items that belong to the third group. 
  • From the PivotTable Analyze tab, in the Group group, click Group. 
  • Select Group Selection from the menu. 

The group will be given a default name of ‘Group 3’. We can rename this. 

  • Press the F2 key to edit the cell. 
  • Rename the group to ‘Standard’. 

Notice that the grouping will be applied to all corresponding items in the Pivot Table. 

Grouping the entire PivotTable.

Renaming Custom Groups

Custom groups are effectively a field and can be used as such in the PivotTable. Custom groups are given a default name based on the field they relate to, in this case, ‘Product2’. As this grouping represents the range that the product belongs to, it would make more sense to rename this field so it’s easier to identify. 

Rename Custom Groups.
  • Click the drop-down arrow next to the field. 
  • Select Field Settings from the menu. 
  • Name the field ‘Range’.
  • Click OK. 
Summarize PivotTable using a Range.

We can use this field to summarize Pivot Table data by range. This makes grouping an extremely useful tool as we are now summarizing using a field that doesn’t exist in the original data source. 

PivotTable View after Summarizing.
How to group in Pivot table using custom groups?

How to Ungroup Data in Pivot Table?

We can easily ungroup, group data by following these steps:

  • Select the grouped data. 
  • From the PivotTable Analyze tab, in the Group group, click Group. 
  • Select Ungroup from the menu. 
  • Or, press the keyboard shortcut Shift+Alt+Left.
Ungroup Data.

This process needs to be repeated for each group we created. 

Suggested Reads:

How to Autofit Excel Cells? 3 Best Methods

How to Extract an Excel Substring? – 6 Best Methods

How to Shade Every Other Row in Excel? (5 Best Methods)

Let’s Wrap Up

In this guide, we looked at in detail how to group data in a pivot table using various methods. We hope you found this helpful. Please visit our free resources section to get more advanced Excel tips for free.

Want to learn more about Excel? Click here to access our advanced Excel courses with in-depth training modules. You can train your entire team in Excel and other business software, for a low one-time monthly fee here.

Deborah Ashby

Deborah Ashby is a TAP Accredited IT Trainer, specializing in the design, delivery, and facilitation of Microsoft courses both online and in the classroom. She has over 11 years of IT Training Experience and 24 years in the IT Industry. To date, she's trained over 10,000 people in the UK and overseas at companies such as HMRC, the Metropolitan Police, Parliament, SKY, Microsoft, Kew Gardens, Norton Rose Fulbright LLP. She's a qualified MOS Master for 2010, 2013, and 2016 editions of Microsoft Office and is COLF and TAP Accredited and a member of The British Learning Institute.

30 day vertical banner

Most Popular Posts

  • How to Insert a Checkbox in Excel? 3 EASY Examples
  • How to Autofit Excel Cells? 3 Best Methods
  • XLOOKUP Google Sheets – 4 Best Alternatives!
  • Dashboards in Excel Using Pivot Tables, Pivot Charts and Slicers
  • Free Microsoft Project Training Course
  • Free Microsoft Access Tutorial for Beginners (3.5 Hours Video)
  • How to Use Blending Mode With Layers in Adobe Photoshop Elements 15
  • How to Create Charts and Graphs in Microsoft Excel 2016

Similar Posts

Creating a Company File in QuickBooks Pro 2013

Task Creation in Microsoft Project 2010

Inserting a Table in Dreamweaver CS6

Using Organization Data, Pictures, and More on Layouts in Visio 2010

Creating Basic Shapes in InDesign CS6

Using Percentile Statistical Functions in Excel 2013

Course Categories

  • Web Development
  • QuickBooks
  • Microsoft
  • Adobe
  • Data Analysis

About Us

  • About Us
  • Free Resources
  • Affiliates
  • Become an Instructor

Products

  • Pricing and Plans
  • Business Pricing
  • Government Discounts
  • Non-Profit Discounts

Support

  • FAQ’s
  • Contact Us
  • DVD support

Connect

YoutubeFacebook
© 2022 Simon Sez IT, Inc.
  • Terms
  • Privacy Policy
888.817.6665 Monday thru Friday 7:30 a.m. - 5:00 p.m. (ET)