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
MEDIAN formula in Excel - practical examplesMEDIAN formula in Excel - practical examplesApr 11, 2025 pm 12:08 PM

This tutorial explains how to calculate the median of numerical data in Excel using the MEDIAN function. The median, a key measure of central tendency, identifies the middle value in a dataset, offering a more robust representation of central tenden

Google Spreadsheet COUNTIF function with formula examplesGoogle Spreadsheet COUNTIF function with formula examplesApr 11, 2025 pm 12:03 PM

Master Google Sheets COUNTIF: A Comprehensive Guide This guide explores the versatile COUNTIF function in Google Sheets, demonstrating its applications beyond simple cell counting. We'll cover various scenarios, from exact and partial matches to han

Excel shared workbook: How to share Excel file for multiple usersExcel shared workbook: How to share Excel file for multiple usersApr 11, 2025 am 11:58 AM

This tutorial provides a comprehensive guide to sharing Excel workbooks, covering various methods, access control, and conflict resolution. Modern Excel versions (2010, 2013, 2016, and later) simplify collaborative editing, eliminating the need to m

How to convert Excel to JPG - save .xls or .xlsx as image fileHow to convert Excel to JPG - save .xls or .xlsx as image fileApr 11, 2025 am 11:31 AM

This tutorial explores various methods for converting .xls files to .jpg images, encompassing both built-in Windows tools and free online converters. Need to create a presentation, share spreadsheet data securely, or design a document? Converting yo

Excel names and named ranges: how to define and use in formulasExcel names and named ranges: how to define and use in formulasApr 11, 2025 am 11:13 AM

This tutorial clarifies the function of Excel names and demonstrates how to define names for cells, ranges, constants, or formulas. It also covers editing, filtering, and deleting defined names. Excel names, while incredibly useful, are often overlo

Standard deviation Excel: functions and formula examplesStandard deviation Excel: functions and formula examplesApr 11, 2025 am 11:01 AM

This tutorial clarifies the distinction between standard deviation and standard error of the mean, guiding you on the optimal Excel functions for standard deviation calculations. In descriptive statistics, the mean and standard deviation are intrinsi

Square root in Excel: SQRT function and other waysSquare root in Excel: SQRT function and other waysApr 11, 2025 am 10:34 AM

This Excel tutorial demonstrates how to calculate square roots and nth roots. Finding the square root is a common mathematical operation, and Excel offers several methods. Methods for Calculating Square Roots in Excel: Using the SQRT Function: The

Google Sheets basics: Learn how to work with Google SpreadsheetsGoogle Sheets basics: Learn how to work with Google SpreadsheetsApr 11, 2025 am 10:23 AM

Unlock the Power of Google Sheets: A Beginner's Guide This tutorial introduces the fundamentals of Google Sheets, a powerful and versatile alternative to MS Excel. Learn how to effortlessly manage spreadsheets, leverage key features, and collaborate

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

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Tools

EditPlus Chinese cracked version

EditPlus Chinese cracked version

Small size, syntax highlighting, does not support code prompt function

SecLists

SecLists

SecLists is the ultimate security tester's companion. It is a collection of various types of lists that are frequently used during security assessments, all in one place. SecLists helps make security testing more efficient and productive by conveniently providing all the lists a security tester might need. List types include usernames, passwords, URLs, fuzzing payloads, sensitive data patterns, web shells, and more. The tester can simply pull this repository onto a new test machine and he will have access to every type of list he needs.

MinGW - Minimalist GNU for Windows

MinGW - Minimalist GNU for Windows

This project is in the process of being migrated to osdn.net/projects/mingw, you can continue to follow us there. MinGW: A native Windows port of the GNU Compiler Collection (GCC), freely distributable import libraries and header files for building native Windows applications; includes extensions to the MSVC runtime to support C99 functionality. All MinGW software can run on 64-bit Windows platforms.

WebStorm Mac version

WebStorm Mac version

Useful JavaScript development tools

ZendStudio 13.5.1 Mac

ZendStudio 13.5.1 Mac

Powerful PHP integrated development environment