Group or ungroup data in a PivotTable
Grouping data in a PivotTable can help you show a subset of data to analyze. For example, you may want to group an unwieldy list of dates or times (date and time fields in the PivotTable) into quarters and months, like this:
Note: The time grouping feature is new in Excel 2016. With time grouping, relationships across time-related fields are automatically detected and grouped together when you add rows of time fields to your PivotTables. Once grouped together, you can drag the group to your Pivot Table and start your analysis.
Group data
-
In the PivotTable, right-click a value and select Group.
-
In the Grouping box, select Starting at and Ending at checkboxes, and edit the values if needed.
-
Under By, select a time period. For numerical fields, enter a number that specifies the interval for each group.
-
Select OK.
Group selected items
-
Hold Ctrl and select two or more values.
-
Right-click and select Group.
Name a group
-
Select the group.
-
Select Analyze > Field Settings.
-
Change the Custom Name to something you want and select OK.
Ungroup grouped data
-
Right-click any item that is in the group.
-
Select Ungroup.
Need more help?
You can always ask an expert in the Excel Tech Community, get support in the Answers community, or suggest a new feature or improvement on Excel User Voice.
No comments:
Post a Comment