Pivot Table Summary Functions: Average

When you add a numeric data field to the Values area in a pivot table, the summary function defaults to either Sum or Count. You can change that field to use one of the other summary functions, such as Average.

The Average Function

The Average function in a pivot table works like the AVERAGE function on the worksheet to calculate the average (mean) of the values. It totals all the underlying values in the Values area, and divides by the number of values. 

pivottableaverage05 

You can use the Average function to compare amounts, such as order sizes, student grades, and project times, across a large number of instances.

Blanks and Zeros

Just as they are on the worksheet, blank cells are ignored when calculating the pivot table averages, but zero cells are included.

In the data source shown below, cell C7 is blank. That blank cell is not included in either the worksheet average (C12),

pivottableaverage01

or in the pivot table average, shown below.

pivottableaverage05 

Hidden Zeros

If you have formatted the worksheet to hide zero values, remember that those zero values will be included in the averages, even if the cells appear blank.

In the two data sources shown below, the overall average is different. Zeros are hidden on the worksheet, and cell F7 contains a zero. Cell C7 is blank.

pivottableaverage04

If you create pivot tables from these two data sources, the pivot table Average function would include the hidden zeros, just as the worksheet Average does.

Format the Results

When you use the Average summary function, the results will probably show a strange mixture of decimal places, as shown in the pivot table at the left, in the screen shot below.

pivottableaverage03

Format the field to have a consistent number of decimal places (as in the pivot table at the right, above), so the numbers are easy to compare.

pivottableaverage02

____________

2 thoughts on “Pivot Table Summary Functions: Average”

  1. Are there any suggestions as to why this does not work on the pivot table? It does work in the worksheet but when I use the average in the pivot table, it takes the blanks (I have also tried null) as 0 and throws off my average. Office 2013.

    1. @BeckyJo, it sounds like Excel is seeing something in those cells, even though they look blank.
      Can you select all the blank cells in the source data, then press Delete to clear them out?
      Then refresh the pivot table, and see if the results change.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.