Locked lesson.
About this lesson
When you wish to show different aggregation on your PivotTable fields than what is provided by default.
Lesson versions
Multiple versions of this lesson are available, choose the appropriate version for you:
2016, 2019/365.
Exercise files
Download the ‘before’ and ‘after’ Excel workbooks from the video tutorial and try the lesson yourself.
Aggregation.xlsx179.9 KB Aggregation - Completed.xlsx
181.5 KB
Quick reference
Aggregation
Understanding and changing PivotTable field aggregation.
Where/when to use the technique
When you wish to show different aggregation on your PivotTable fields than what is provided by default.
Instructions
Default aggregation for fields dragged into the values area of a PivotTable
SUM
- Columns with purely numeric data will automatically aggregate as a Sum
COUNT
- Columns with any text in them will automatically be aggregated as a Count
Changing aggregation
- There are 3 options to change the aggregation type
- Right-click the column in the PivotTable > Value Field Settings
- Go to the VALUES area of the PivotTable field list > click the drop down arrow on the field > Value Field Settings
- Right-click the column in the PivotTable > Summarize Values By
Issues where numeric data aggregates as Count (instead of Sum) by default
- This issue occurs when the source column contains:
- Text values
- Blanks (This is no longer an issue for Office 365 users!)
- To fix this issue
- Check the source column for any text/blank values
- Replace text with true values
- Replace blanks with 0
- Refresh the PivotTable
Aggregation types available
- Sum, Count, Count Numbers, Average, Max, Min
- Product, StdDev, StdDevp
- Var, Varp
Lesson notes are only available for subscribers.