The source data contains three fields: Date, Sales, and Color. Only two fields are used to create the pivot table: Date and Color.

The Color field has been added as a Row field to group data by color. The Color field has also been added as a Value field, and renamed “Count”:

The Date field has been added as a Column field and grouped by year:

Helper column alternative

As an alternative to automatic date grouping, you can add a helper column to the source data, and use a formula to extract the year. Then add the Year field to the pivot table directly.




Dave Bruns

Hi - I’m Dave Bruns, and I run Exceljet with my wife, Lisa. Our goal is to help you work faster in Excel. We create short videos, and clear examples of formulas, functions, pivot tables, conditional formatting, and charts.   

Pivot table count by year - 93Pivot table count by year - 4Pivot table count by year - 47