How to Group by Year in Excel Pivot Table?

In this article, we will demonstrate how to group by year in an Excel Pivot Table.

In the dataset below we have some Sales Persons with corresponding Dates and Sales Amounts. We’ll group these dates by year using 3 different techniques.

excel pivot table group by year


Method 1 – Using the Pivot Table Fields Feature to Group by Year

The simplest way to group dates in a Pivot Table is to use PivotTable Fields.

Steps:

  • Select the entire dataset.
  • Go to the Insert tab >> PivotTable >> select From Table/Range.

  • In the window that appears, select the range and New Worksheet as the location for the Pivot Table.
  • Click OK.

excel pivot table group by year

Excel will create a pivot table in a new worksheet.

  • In the Pivot Table worksheet, select Date and drag it to Rows.

excel pivot table group by year

Excel automatically groups the dates.

  • Similarly, drag Sales Person to the Columns field and Sales Amount to the Values field.

The pivot table will look like this:

excel pivot table group by year

To finish, format the table as you wish.

Read More: How to Group by Week in Excel Pivot Table


Method 2 – Using the Pivot Table Analyze Tab  to Group Dates by Year

Another way of grouping dates by year in a Pivot Table is by applying the PivotTable Analyze tab,

Steps:

  • Create a pivot table following Method 1.

The table will look like this:

  • Select any date.
  • Go to the PivotTable Analyze tab.
  • Select Group >>Group Field.

excel pivot table group by year

A new box named Grouping will pop up.

  • Select Years.

Excel will group the dates by year.

excel pivot table group by year

Read More: How to Group by Month in Excel Pivot Table


Method 3 – Using the Context Menu to Group by Year in a Pivot Table

We can also use the context menu to group dates by year.

Steps:

  • Create a pivot table following Method 1.

The table will look like this:

  • Select any date and right-click your mouse to bring up the context menu.
  • Select Group.

excel pivot table group by year

A new box named Grouping will pop up.

  • Select Years.

Excel will group the dates by year.

excel pivot table group by year


Things to Remember

  • Method 1 works for Excel version 2016 and later.
  • If you use earlier versions, use Method 2 and Method 3.

Download Practice Workbook

Related Articles


<< Go Back to Group Dates in Pivot Table | Group Pivot Table | Pivot Table in Excel | Learn Excel

Get FREE Advanced Excel Exercises with Solutions!
Akib Bin Rashid
Akib Bin Rashid

AKIB BIN RASHID, a materials and metallurgical engineer, is passionate about delving into Excel and VBA programming. To him, programming is a valuable time-saving tool for managing data, files, and internet-related tasks. Proficient in MS Office, AutoCAD, Excel, and VBA, he goes beyond the fundamentals. Holding a B.Sc in Materials and Metallurgical Engineering from Bangladesh University of Engineering and Technology, MD AKIB has transitioned into a content development role. Specializing in creating technical content centred around Excel and... Read Full Bio

We will be happy to hear your thoughts

Leave a reply

Advanced Excel Exercises with Solutions PDF

 

 

ExcelDemy
Logo