Share via

Grouping and Average in a Pivot Table

Anonymous
2011-04-08T22:26:02+00:00

I have a table with dates in one column and values in the next several columns.  I'd like to have a pivot table group the dates by year and have the following columns list the average of the data.  So in the sample table the result would be "2011  Red=12.67 and White=68" and "2010  Red=23.34 and White=80.34"

Date           Red     White

1/12011      13      100

2/1/2011     10        30

3/1/2011      15       74

1/1/2010      25      75

2/1/2010      30      101

3/1/2010      15       65

Microsoft 365 and Office | Excel | For home | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

Answer accepted by question author

  1. Ashish Mathur 101.8K Reputation points Volunteer Moderator
    2011-04-08T23:03:57+00:00

    Hi,

    Try this

    1. Drag dates to the row arew, Red to the Data area and White to the Data area
    2. Right click on the first date under the date column and select Group.  Uncheck the default month and select year
    3. Right click on the first number under "Red" in the pivot and under Summarise by Average
    4. Right click on the first number under "White" in the pivot and under Summarise by Average

    Hope this helps.

    1 person found this answer helpful.
    0 comments No comments

Answer accepted by question author

  1. HansV 462.6K Reputation points MVP Volunteer Moderator
    2011-04-08T23:04:33+00:00

    Click anywhere in the data.

    Activate the Insert tab of the ribbon.

    Click PivotTable.

    Specify the location for the pivottable, then click OK.

    In the Field List, drag Date to the Row Labels.

    Drag Red to the Values area.

    Click the dropdown in the field, and select Value Field Settings...

    Right-click any date in the pivot table.

    Select Group... from the popup menu.

    Select Years and deselect everything else, then click OK.

    Select Average as summarize function, then click OK.

    Do the same for White.

    0 comments No comments

0 additional answers

Sort by: Most helpful