search
HomeTopicsexcelExcel slicer: visual filter for pivot tables and charts

This tutorial demonstrates how to add slicers to Excel tables, pivot tables, and pivot charts in Excel 2010 through 365. We'll cover advanced techniques like creating custom slicer styles, connecting a single slicer to multiple pivot tables, and more. This empowers you to create interactive and user-friendly reports.

Excel pivot tables are powerful tools for summarizing large datasets. Slicers, also known as visual filters, enhance their usability. Share your reports with colleagues, and they can filter data independently.

  • What are Excel slicers?
  • Slicers vs. PivotTable filters
  • Adding slicers in Excel:
    • Adding to pivot tables
    • Adding to Excel tables
    • Adding to pivot charts
  • Using slicers in Excel
  • Customizing Excel slicers
  • Connecting slicers to multiple pivot tables and charts
  • Locking pivot tables while keeping slicers unlocked
  • Removing slicers from a sheet

What are Excel Slicers?

Excel slicers are graphical filters for tables, pivot tables, and pivot charts. Their visual nature makes them ideal for dashboards and reports, simplifying data filtering. Introduced in Excel 2010, they're available in all subsequent versions (2013-365). Filter data by selecting one or more buttons within the slicer.

Excel slicer: visual filter for pivot tables and charts

Slicers vs. PivotTable Filters

Both slicers and pivot table filters achieve the same outcome – displaying some data while hiding others. However, they have distinct advantages and disadvantages:

  • Ease of Use: Pivot table filters can be cumbersome; slicers offer simpler, button-based filtering.
  • Connectivity: Filters are limited to single pivot tables; slicers can connect to multiple pivot tables and charts.
  • Flexibility: Filters are fixed to rows and columns; slicers are movable objects, positionable beside or even within chart areas for real-time updates.
  • Touchscreen Compatibility: Slicers are more touch-friendly than pivot table filters (except in Excel mobile apps).
  • Space: Pivot table filters are compact; slicers require more worksheet space.
  • Automation: Pivot table filters are easily automated with VBA; slicer automation requires more advanced skills.

Adding Slicers in Excel

Let's explore how to add slicers to your Excel data.

Adding a Slicer to an Excel Pivot Table

Adding a slicer to a pivot table is quick:

  1. Select any cell within the pivot table.
  2. In Excel 2013 and later, navigate to the Analyze tab > Filter group, and click Insert Slicer. In Excel 2010, use the Options tab and click Insert Slicer.
  3. The Insert Slicers dialog box appears. Select the fields for which you want to create slicers.
  4. Click OK.

The image below shows two slicers filtering by Product and Reseller.

Excel slicer: visual filter for pivot tables and charts

Resulting slicers:

Excel slicer: visual filter for pivot tables and charts

For time-based filtering, use a timeline slicer.

Adding a Slicer to an Excel Table

Modern Excel versions allow adding slicers to regular tables:

  1. Select a cell within your table.
  2. Go to the Insert tab > Filters group, and click Slicer.
  3. In the Insert Slicers dialog box, check the columns you want to filter.
  4. Click OK.

Excel slicer: visual filter for pivot tables and charts

Adding a Slicer to a Pivot Chart

To filter a pivot chart, create a slicer for its associated pivot table. The slicer will control both. For closer integration:

  1. Select a cell in the pivot chart.
  2. Go to the Analyze tab > Filter group, and click Insert Slicer.
  3. Choose the desired fields and click OK.

Excel slicer: visual filter for pivot tables and charts

The slicer can be positioned within the chart area for a streamlined look.

Using Slicers in Excel

Slicers are intuitive to use.

Slicers as Visual Filters

Click a slicer button to filter data. The pivot table updates instantly. Unselect a button to remove that item from the filter.

Excel slicer: visual filter for pivot tables and charts

Slicers can filter data even if the corresponding field is hidden in the pivot table.

Greyed-out items in a slicer indicate no matching data based on other slicer selections.

Excel slicer: visual filter for pivot tables and charts

Selecting Multiple Items

Select multiple items using Ctrl-click, the Multi-Select button, or Alt S (toggle multi-select).

Excel slicer: visual filter for pivot tables and charts

Moving and Resizing Slicers

Drag slicers to reposition them. Resize by dragging edges or using the Slicer Tools Options tab.

Excel slicer: visual filter for pivot tables and charts

Excel slicer: visual filter for pivot tables and charts

Locking Slicer Position

Prevent slicer movement by right-clicking, selecting Size and Properties, and checking "Don't move or size with cells".

Excel slicer: visual filter for pivot tables and charts

Clearing Slicer Filters

Clear filters using Alt C or the Clear Filter button.

Excel slicer: visual filter for pivot tables and charts

Disconnecting Slicers

Disconnect a slicer from a pivot table using Report Connections (or PivotTable Connections in Excel 2010).

Excel slicer: visual filter for pivot tables and charts

Customizing Excel Slicers

Slicers are highly customizable.

Changing Slicer Style

Use the Slicer Styles gallery on the Slicer Tools Options tab.

Excel slicer: visual filter for pivot tables and charts

Creating Custom Slicer Styles

Create custom styles using the New Slicer Style button. Customize individual elements using the Format button.

Excel slicer: visual filter for pivot tables and charts

Excel slicer: visual filter for pivot tables and charts

Multiple Columns in Slicers

Adjust the number of columns in the slicer using the Columns box on the Slicer Tools Options tab.

Excel slicer: visual filter for pivot tables and charts

Excel slicer: visual filter for pivot tables and charts

Changing Slicer Settings

Use the Slicer Settings dialog box (right-click the slicer, then Slicer Settings…) to customize various options, including hiding the header, sorting items, and hiding items with no data.

Excel slicer: visual filter for pivot tables and charts

Connecting Slicers to Multiple Pivot Tables

Connect a slicer to multiple pivot tables (based on the same data source) using the Report Connections dialog box.

Excel slicer: visual filter for pivot tables and charts

Excel slicer: visual filter for pivot tables and charts

Excel slicer: visual filter for pivot tables and charts

Unlocking Slicers in Protected Worksheets

Unlock slicers in a protected worksheet by unchecking the Locked box in the Format Slicer pane, then protecting the sheet with the Use PivotTable & PivotChart option enabled.

Excel slicer: visual filter for pivot tables and charts

Excel slicer: visual filter for pivot tables and charts

Removing Slicers

Delete slicers by pressing Delete or right-clicking and selecting Remove.

Practice Workbook

[Link to Excel Slicer examples (.xlsx file)]

The above is the detailed content of Excel slicer: visual filter for pivot tables and charts. For more information, please follow other related articles on the PHP Chinese website!

Statement
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
How to create timeline in Excel to filter pivot tables and chartsHow to create timeline in Excel to filter pivot tables and chartsMar 22, 2025 am 11:20 AM

This article will guide you through the process of creating a timeline for Excel pivot tables and charts and demonstrate how you can use it to interact with your data in a dynamic and engaging way. You've got your data organized in a pivo

how to do a drop down in excelhow to do a drop down in excelMar 12, 2025 am 11:53 AM

This article explains how to create drop-down lists in Excel using data validation, including single and dependent lists. It details the process, offers solutions for common scenarios, and discusses limitations such as data entry restrictions and pe

how to sum a column in excelhow to sum a column in excelMar 14, 2025 pm 02:42 PM

The article discusses methods to sum columns in Excel using the SUM function, AutoSum feature, and how to sum specific cells.

how to make pie chart in excelhow to make pie chart in excelMar 14, 2025 pm 03:32 PM

The article details steps to create and customize pie charts in Excel, focusing on data preparation, chart insertion, and personalization options for enhanced visual analysis.

how to make a table in excelhow to make a table in excelMar 14, 2025 pm 02:53 PM

Article discusses creating, formatting, and customizing tables in Excel, and using functions like SUM, AVERAGE, and PivotTables for data analysis.

how to calculate mean in excelhow to calculate mean in excelMar 14, 2025 pm 03:33 PM

Article discusses calculating mean in Excel using AVERAGE function. Main issue is how to efficiently use this function for different data sets.(158 characters)

how to add drop down in excelhow to add drop down in excelMar 14, 2025 pm 02:51 PM

Article discusses creating, editing, and removing drop-down lists in Excel using data validation. Main issue: how to manage drop-down lists effectively.

All you need to know to sort any data in Google SheetsAll you need to know to sort any data in Google SheetsMar 22, 2025 am 10:47 AM

Mastering Google Sheets Sorting: A Comprehensive Guide Sorting data in Google Sheets needn't be complex. This guide covers various techniques, from sorting entire sheets to specific ranges, by color, date, and multiple columns. Whether you're a novi

See all articles

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

AI Hentai Generator

AI Hentai Generator

Generate AI Hentai for free.

Hot Article

R.E.P.O. Energy Crystals Explained and What They Do (Yellow Crystal)
3 weeks agoBy尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. Best Graphic Settings
3 weeks agoBy尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. How to Fix Audio if You Can't Hear Anyone
3 weeks agoBy尊渡假赌尊渡假赌尊渡假赌

Hot Tools

WebStorm Mac version

WebStorm Mac version

Useful JavaScript development tools

SAP NetWeaver Server Adapter for Eclipse

SAP NetWeaver Server Adapter for Eclipse

Integrate Eclipse with SAP NetWeaver application server.

MantisBT

MantisBT

Mantis is an easy-to-deploy web-based defect tracking tool designed to aid in product defect tracking. It requires PHP, MySQL and a web server. Check out our demo and hosting services.

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Dreamweaver Mac version

Dreamweaver Mac version

Visual web development tools