Skip to main content

Kutools for Office — One Suite. Five Tools. Get More Done.

How to create and filter a pivot table in Excel?

Author Sun Last modified

With a pivot table, we can better and conveniently analyze the data as we need. Now in this tutorial, I will talk about how to create and filter a pivot table in Excel.

Create a pivot table in Excel

Filter in pivot table in Excel


arrow blue right bubble Create a pivot table in Excel

For instance, if you have data as shown in the screenshot below, follow these steps to create a pivot table.

A screenshot showing the data used to create a pivot table in Excel

1. Select all the data including headers, then click Insert > PivotTable > PivotTable. See screenshot:

A screenshot showing the Insert PivotTable option in Excel

2. Then in the popped out Create PivotTable dialog, you can choose where to locate the pivot table, here I choose New Worksheet.

A screenshot showing the Create PivotTable dialog box in Excel

Tip: If you choose Existing Worksheet, you need to select a cell to locate the pivot table in the existing worksheet.

3. Click OK. Then a PivotTable Field List pane appears in the left of the worksheet.

A screenshot of the PivotTable Field List pane in Excel

4. Now you just need to drag the fields to the filed areas you need. For example, here I just want to sum every category’s amount, I will drag Category field to Row Labels section, and Amount($) field to Values section. See screenshot:

A screenshot showing fields dragged into Row Labels and Values sections in Excel's PivotTable

Tip: You can select the calculation you want in the Values section.

Now the pivot table is created:

A screenshot showing a completed pivot table summing categories in Excel

To include the date in the pivot table, drag the Date field below the Category field in the Row Labels box as below screenshot shown:

A screenshot showing the pivot table with a date field added to Row Labels in Excel

Note: The fields’ order in Row Labels section determines the relationship between the fields. The below one is the sub row label of the above one.


arrow blue right bubble Filter in pivot table in Excel

If you want to filter the pivot table, you can do as follows:

There are two ways that can help you to filter pivot table data.

Method 1: Using the Report Filter Section

1. Drag the field you want to filter based on to the Report Filter (or Filter) section. Here, for instance, I want to filter data based on category. Now I drag Category field to the Report Filter section, then a Filter row called Category appears above the pivot table. See screenshot:

A screenshot showing a Report Filter added to a pivot table in Excel

2. Then go to click the down arrow to show a filter list, then check Select Multiple Items option, and then check the category options you want to show only in the PivotTable. And click OK.

A screenshot showing the filter options to select categories in a pivot table in Excel

Now the pivot table only shows data based on the categories you want.

A screenshot showing filtered pivot table data based on selected categories

Note: If you want to show all back, just go to the filter list to check all categories.

A screenshot showing the option to clear all category filters in Excel's pivot table

Method 2: Using Row Labels Filter

This method is simpler and more powerful.

1. Just click the down arrow beside Row Labels in the pivot table, then select the field you want to filter based on from the Select field list. See screenshot:

A screenshot showing the Row Labels filter in a pivot table

2. Then select the filter rule you need in the list. Here I select Date Filters > This Week. Then click OK.

A screenshot showing the Date Filters option in a pivot table in Excel

Note: You can also check the dates you want to show in the Pivot Table in the drop down list directly. Now the data are filtered by date.

A screenshot showing filtered pivot table data based on date in Excel

Note: If you want to clear all the filter rules, you can click the Filter button and select the field you used to filter in the Select filed box, and click Clear Filter From “Field name”. See screenshot:

A screenshot showing the option to clear a filter in a pivot table in Excel


Related Articles:

Best Office Productivity Tools

🤖 Kutools AI Aide: Revolutionize data analysis based on: Intelligent Execution   |  Generate Code  |  Create Custom Formulas  |  Analyze Data and Generate Charts  |  Invoke Kutools Functions
Popular Features: Find, Highlight or Identify Duplicates   |  Delete Blank Rows   |  Combine Columns or Cells without Losing Data   |   Round without Formula ...
Super Lookup: Multiple Criteria VLookup    Multiple Value VLookup  |   VLookup Across Multiple Sheets   |   Fuzzy Lookup ....
Advanced Drop-down List: Quickly Create Drop Down List   |  Dependent Drop Down List   |  Multi-select Drop Down List ....
Column Manager: Add a Specific Number of Columns  |  Move Columns  |  Toggle Visibility Status of Hidden Columns  |  Compare Ranges & Columns ...
Featured Features: Grid Focus   |  Design View   |   Big Formula Bar    Workbook & Sheet Manager   |  Resource Library (Auto Text)   |  Date Picker   |  Combine Worksheets   |  Encrypt/Decrypt Cells    Send Emails by List   |  Super Filter   |   Special Filter (filter bold/italic/strikethrough...) ...
Top 15 Toolsets12 Text Tools (Add Text, Remove Characters, ...)   |   50+ Chart Types (Gantt Chart, ...)   |   40+ Practical Formulas (Calculate age based on birthday, ...)   |   19 Insertion Tools (Insert QR Code, Insert Picture from Path, ...)   |   12 Conversion Tools (Numbers to Words, Currency Conversion, ...)   |   7 Merge & Split Tools (Advanced Combine Rows, Split Cells, ...)   |   ... and more
Use Kutools in your preferred language – supports English, Spanish, German, French, Chinese, and 40+ others!

Supercharge Your Excel Skills with Kutools for Excel, and Experience Efficiency Like Never Before. Kutools for Excel Offers Over 300 Advanced Features to Boost Productivity and Save Time.  Click Here to Get The Feature You Need The Most...


Office Tab Brings Tabbed interface to Office, and Make Your Work Much Easier

  • Enable tabbed editing and reading in Word, Excel, PowerPoint, Publisher, Access, Visio and Project.
  • Open and create multiple documents in new tabs of the same window, rather than in new windows.
  • Increases your productivity by 50%, and reduces hundreds of mouse clicks for you every day!

All Kutools add-ins. One installer

Kutools for Office suite bundles add-ins for Excel, Word, Outlook & PowerPoint plus Office Tab Pro, which is ideal for teams working across Office apps.

Excel Word Outlook Tabs PowerPoint
  • All-in-one suite — Excel, Word, Outlook & PowerPoint add-ins + Office Tab Pro
  • One installer, one license — set up in minutes (MSI-ready)
  • Works better together — streamlined productivity across Office apps
  • 30-day full-featured trial — no registration, no credit card
  • Best value — save vs buying individual add-in