Filter data in a PivotTable
To focus on a smaller portion of a large amount of your PivotTable data for in-depth analysis, you can filter the data. There are several ways to do that. Start by inserting one or more slicers for a quick and effective way to filter your data. Slicers have buttons you can click to filter the data, and they stay visible with your data so you always know what fields are shown or hidden in the filtered PivotTable.
Tip: Now in Excel 2016, you can multi-select slicers by clicking the button on the label as shown above.
Filter data in a PivotTable
-
Select a cell in the PivotTable. Select Analyze > Insert Slicer .
-
Select the fields you want to create slicers for. Then select OK.
-
Select the items you want to show in the PivotTable.
Filter data manually
-
Select the column header arrow for the column you want to filter.
-
Uncheck (Select All) and select the boxes you want to show. Then select OK.
-
Click anywhere in the PivotTable to show the PivotTable tabs (PivotTable Analyze and Design) on the ribbon.
-
Click PivotTable Analyze > Insert Slicer.
-
In the Insert Slicers dialog box, check the boxes of the fields you want to create slicers for.
-
Click OK.
A slicer appears for each field you checked in the Insert Slicers dialog box.
-
In each slicer, click the items you want to show in the PivotTable.
Tip: To change how the slicer looks, click the slicer to show the Slicer tab on the ribbon. You can apply a slicer style or change settings using the various tab options.
Other ways to filter PivotTable data
Use any of the following filtering features instead of or in addition to using slicers to show the exact data you want to analyze.
Use a report filter to filter items
Show the top or bottom 10 items
Filter data manually
-
In the PivotTable, click the arrow on Row Labels or Column Labels.
-
In the list of row or column labels, uncheck the (Select All) box at the top of the list, and then check the boxes of the items you want to show in your PivotTable.
-
The filtering arrow changes to this icon to indicate that a filter is applied. Click it to change or clear the filter by clicking Clear Filter From <Field Name>.
To remove all filtering at once, click PivotTable Analyze tab > Clear > Clear Filters.
Use a report filter to filter items
By using a report filter, you can quickly display a different set of values in the PivotTable. Items you select in the filter are displayed in the PivotTable, and items that are not selected will be hidden. If you want to display filter pages (the set of values that match the selected report filter items) on separate worksheets, you can specify that option.
Add a report filter
-
Click anywhere inside the PivotTable.
The PivotTable Fields pane appears.
-
In the PivotTable Field List, click on the field in an area and select Move to Report Filter.
You can repeat this step to create more than one report filter. Report filters are displayed above the PivotTable for easy access.
-
To change the order of the fields, in the Filters area, you can either drag the fields to the position that you want, or double-click on a field and select Move Up or Move Down. The order of the report filters will be reflected accordingly in the PivotTable.
Display report filters in rows or columns
-
Click the PivotTable or the associated PivotTable of a PivotChart.
-
Right-click anywhere in the PivotTable, and then click PivotTable Options.
-
In the Layout tab, specify these options:
-
In Report Filter area, in the Arrange fields list box, do one of the following:
-
To display report filters in rows from top to bottom, select Down, Then Over.
-
To display report filters in columns from left to right, select Over, Then Down.
-
-
In the Filter fields per column box, type or select the number of fields to display before taking up another column or row (based on the setting of Arrange fields you specified in the previous step).
-
Select items in the report filter
-
In the PivotTable, click the dropdown arrow next to the report filter.
-
Select the checkboxes next to the items that you want to display in the report. To select all items, click the checkbox next to (Select All).
The report filter now displays the filtered items.
Display report filter pages on separate worksheets
-
Click anywhere in the PivotTable (or the associated PivotTable of a PivotChart ) that has one or more report filters.
-
Click PivotTable Analyze (on the ribbon) > Options > Show Report Filter Pages.
-
In the Show Report Filter Pages dialog box, select a report filter field, and then click OK.
Show the top or bottom 10 items
You can also apply filters to show the top or bottom 10 values or data that meets the certain conditions.
-
In the PivotTable, click the arrow next to Row Labels or Column Labels.
-
Right-click an item in the selection, and then click Filter > Top 10 or Bottom 10.
-
In the first box, enter a number.
-
In the second box, pick the option you want to filter by. The following options are available:
-
To filter by number of items, pick Items.
-
To filter by percentage, pick Percentage.
-
To filter by sum, pick Sum.
-
-
In the search box, you can optionally search for a particular value.
Filter by selection to display or hide selected items only
-
In the PivotTable, select one or more items in the field that you want to filter by selection.
-
Right-click an item in the selection, and then click Filter.
-
Do one of the following:
-
To display the selected items, click Keep Only Selected Items.
-
To hide the selected items, click Hide Selected Items.
Tip: You can display hidden items again by removing the filter. Right-click another item in the same field, click Filter, and then click Clear Filter.
-
Turn filtering options on or off
If you want to apply multiple filters per field, or if you don't want to show Filter buttons in your PivotTable, here's how you can turn these and other filtering options on or off:
-
Click anywhere in the PivotTable to show the PivotTable tabs on the ribbon.
-
On the PivotTable Analyze tab, click Options.
-
In the PivotTable Options dialog box, click the Layout tab.
-
In the Layout area, check or uncheck the Allow multiple filters per field box depending on what you need.
-
Click the Display tab, and then check or uncheck the Field captions and filters check box, to show or hide field captions and filter drop downs
-
You can view and interact with PivotTables in Excel Online, which includes some manual filtering and using slicers that were created in the Excel desktop application to filter your data. You won't be able to create new slicers in Excel Online.
To filter your PivotTable data, do one of the following:
-
To apply a manual filter, click the arrow on Row Labels or Column Labels, and then pick the filtering options you want.
-
If your PivotTable has slicers, just click the items you want to show in each slicer.
If you have the Excel desktop application, you can use the Open in Excel button to open the workbook and apply additional filters or create new slicers for your PivotTable data there. Here's how:
Click Open in Excel and filter your data in the PivotTable.
For news about the latest Excel Online updates, visit the Microsoft Excel blog.
For the full suite of Office applications and services, try or buy it at Office.com.
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