Leila Gharani - Pivot Table Practice Workbook

Download Your Pivot Table Toolkit

I’ll send you the sales data so you can build your first professional Pivot Table today.

What Is a Pivot Table in Excel?

A Pivot Table in Excel is an easy way to summarize large amounts of data. It helps you find patterns and trends by organizing data in a clear and simple layout.

With a Pivot Table, you can arrange data in rows or columns and switch between these views easily. Excel calculates and shows summaries like totals, averages, or counts automatically.

Think of it as sorting puzzle pieces to see the whole picture.

Why Use a Pivot Table in Excel?

Pivot Tables are great for answering questions about your data and spotting patterns. For example:

Product Analysis:

  • Total sales for each product.
  • Total sales for all products.
  • Product sales ranking from highest to lowest.

Customer Analysis:

  • Total sales for each customer.
  • Percentage of total sales for each customer.

Using a Pivot Table makes finding these answers quick and easy.

How Do You Create a Pivot Table in Excel?

To create a Pivot Table, follow these steps:

  1. Click on a cell that is part of your data set.
  2. Select Insert (tab) -> Tables (group) -> PivotTable.
Excel Insert tab with the PivotTable button highlighted in the Tables group to begin creating a Pivot Table from the selected data range
  1. In the Create PivotTable dialog box the selected data range will be displayed.
    • Confirm the range and choose where you want the Pivot Table to appear.
    • Click OK.
Excel Create PivotTable dialog showing the selected data range and the New Worksheet option chosen before clicking OK

Adding Fields to a Pivot Table

Once you’ve created a Pivot Table, you’ll see two things:

  • An empty Pivot Table on the left .
  • A Pivot Table Fields List on the right. The Fields List allows you to add and organize data in your Pivot Table.
Excel worksheet showing an empty Pivot Table on the left and the PivotTable Fields panel on the right after a new Pivot Table is created

Using the Field List

The PivotTable Fields List displays the headers from your source data.

Excel PivotTable Fields panel showing the source data column headers as a checklist ready to be added to the Rows, Columns, Values, or Filters areas

To answer questions about your data, follow these steps:

Add Rows:

  • Click and hold the Customer Name entry in the Field List.
  • Drag it to the Rows area.

Add Values:

  • Click and hold the Sales USD entry in the Field List.
  • Drag it to the Values area.
Excel PivotTable Fields panel with Customer Name dragged to Rows and Sales USD dragged to Values to build a customer sales summary table

We are presented with the following Pivot Table.

Excel Pivot Table showing total sales per customer with Customer Name in rows and Sum of Sales USD in the values column

Change Summary Calculation

By default, the Pivot Table sums the sales. If you prefer a different summary method (like count or average), follow these steps:

  • Right-click any sales number in the report.
  • Choose “Summarize Values by…” and select the method you want.
Excel right-click context menu on a Pivot Table value showing the Summarize Values By submenu with Sum, Count, Average, and other options

If you’re unsure how to start or want a quick way to explore your data, Excel’s Recommended PivotTables feature is a great tool.

  1. Select Your Data: Click on your data set.
  2. Open Recommended PivotTables:
    • Go to the Insert tab.
    • Click Tables, then Recommended PivotTables.
Excel Insert tab with Recommended PivotTables button highlighted in the Tables group to let Excel suggest layouts based on the data

Excel will analyze your data and suggest several table designs. These suggestions are tailored to common questions you might have about your data.

Choosing a Suggested Table

  • Review Suggestions: Look through the suggested table designs.
  • Select a Table: Click on a table that fits your needs. This can provide you with an instant, useful summary of your data.
Excel Recommended PivotTables dialog showing several suggested table layouts with previews such as Total Sales by Salesperson and Daily Sales Summary

Starting from Scratch

If none of the suggested tables work for you, you can start with a blank PivotTable:

  • Choose Blank PivotTable: In the lower-left corner, select Blank PivotTable.
  • Add Fields Manually: Begin adding fields to your PivotTable as needed.

Using Recommended PivotTables can save you time and help you quickly find insights in your data. If needed, you can always customize or create a new table from scratch.

What Are the Four Pivot Table Areas (Rows, Columns, Values, Filters)?

You can place your Pivot Table fields in four different areas to change how your Pivot Table looks: Filters, Columns, Rows, and Values.

Filters

  • Purpose: To filter the table by unique categories in the field.
  • How to Use: Add a field to the Filters area, and a dropdown menu will appear in the upper-left corner above the Pivot Table.
Excel Pivot Table with the Region field added to the Filters area showing a dropdown filter above the table to filter by specific regions
  • Example: If you add the Region field to Filters, you can filter the table to only show values for specific regions like America or Europe.
Excel Region filter dropdown open showing America and Europe as selectable filter options to limit the Pivot Table to specific regions

Columns

  • Purpose: To create vertical columns using unique items from the field as headers.
  • How to Use: Add a field to the Columns area to display each unique item as a column header.
  • Example: Moving the Region field to Columns will show column labels for each region, such as America and Europe.
Excel Pivot Table with Region moved to the Columns area showing America and Europe as column headers and customers as row labels

Rows

  • Purpose: To create horizontal rows with unique items from the field as headers.
  • How to Use: Add a field to the Rows area to display each unique item as a row header.
  • Example: Adding the Product field to Rows will list each product as a separate row.

Value

  • Purpose: To summarize data, typically numerical fields.
  • How to Use: Add fields to the Values area to calculate sums, averages, counts, etc.
  • Example: Adding Sales USD to Values will sum the sales by default. You can change this to count, average, or another summary method.

By understanding and using these four areas effectively, you can customize your Pivot Table to display your data in the most meaningful way.

Pro Tip: Customizing Field Settings

You can customize the Field List by clicking the gear button to open the field settings.

Excel PivotTable Fields panel with the gear icon highlighted to open field settings for changing the layout and sorting of the field list

You can change how the drag-and-drop zones are arranged, and also sort and search through your field names. Using a side-by-side layout usually gives you more space than the default stacked setup.

Excel PivotTable Fields layout options panel showing Stacked, Side-by-Side, Fields Section Only, and Areas Section Only layout choices

How to Format, Sort, and Customize a Pivot Table

Formatting the Results

You might notice the numbers in the pivot table don’t look right. If you want to show your numbers in a special way, like as currency or a percentage, right-click on any sales number and choose “Number Format…”. This takes you straight to the number formatting options.

❗Do NOT pick “Format Cells” from the menu. That only changes the cells you selected, not the whole report. Using “Number Format” means your chosen style applies to new data as it’s added, which doesn’t happen with “Format Cells”.

Excel right-click context menu on a Pivot Table value with Number Format highlighted to apply currency or percentage formatting to the entire field

Creating a Multi-Level Report

If you want to make a report that shows a “parent” item broken down into “child” items, put the required field in the same zone as another field.

💡The order of fields in the zone decides which is the “parent” and which are the “child” items.

Excel PivotTable Fields panel with Customer Name and Product Description both in the Rows area creating a two-level parent-child hierarchy

The hierarchy automatically creates subtotals for each parent-level item.

Excel Pivot Table showing Customer Name as the parent row with Product Description indented below each customer as the child row level

Collapsing and Expanding Hierarchies

Creating a parent/child relationship between fields adds “plus/minus” buttons next to each parent-level item.

Excel hierarchical Pivot Table with one customer row expanded showing product detail rows and another customer row collapsed showing only the subtotal

These buttons enable you to show detailed information for child items by clicking “+”, and hide it by clicking “-“, leaving just the summary for parent-level items visible.

You can turn these buttons on or off by going to PivotTable Analyze > Show > +/- Buttons.

Excel PivotTable Analyze tab with the plus-minus Buttons toggle highlighted in the Show group to hide or show expand and collapse buttons

Removing a Field from the Field List

If you decide you don’t want a field in a Field List zone anymore, you can drag it back to the main field list or just uncheck that field’s name in the main list.

Excel PivotTable Fields panel showing the Product Description field being unchecked or dragged out to remove it from the Rows drop zone

Updating the Default Headings

The automatic pivot table headings are not pretty. “Row Labels” and “Column Labels” are not at all informative, and “Sum of …” is rather clunky.  Definitely not suitable for presentation purposes.

Luckily, you can click inside the heading cell and type a more descriptive heading.

Excel Pivot Table with the default Row Labels and Sum of Sales USD headings highlighted as the starting point before typing custom heading names

💡Pivot Tables don’t like when you name a heading that matches an existing heading.  One trick is to add a space before or after the custom heading to avoid the conflict.

How to Sort a Pivot Table

The default sort order is alphabetic, based on the row labels, but report readers are typically interested in things like “top performers” or “fewest incidents”.  We can easily sort the report by right-clicking an aggregation value and selecting Sort -> Sort Smallest to Largest or Sort Largest to Smallest.

Excel right-click context menu on a Pivot Table value with Sort and Sort Largest to Smallest highlighted to order customers by total sales

For sorting source data before it hits a Pivot Table, see How to Alphabetize in Excel.

How to Customize Pivot Table Layout and Design

There are dozens of customizable options available to Pivot Tables.  Some of the more widely used features on the Design tab include:

  • Turning on/off subtotals
  • Turning on/off grand totals
  • Altering the layout of the table
  • Adding/removing blank rows between parent-level rows
  • Repeating parent-level labels to child-level rows
  • Applying a pre-defined color scheme
  • Coloring (highlighting) alternate rows/columns/headings
Excel Pivot Table Design tab showing Subtotals, Grand Totals, Report Layout, Blank Rows, and PivotTable Styles options for visual customization

I encourage you to experiment with different combinations of cosmetic features to create visually interesting reports.

💡 The Design tab is contextual, meaning it only appears when you select a cell inside a pivot table.

Automatic Column Resize Based on Content

The Pivot Table will automatically resize the columns to ensure that no data is being visually truncated.  This happens whenever you rearrange the fields in the Field List, sort the data, refresh, or perform any similar operation. And in most cases, this is a welcomed behavior.

However, if you have resized your columns to a size of your choosing, you will likely lose those dimensions on the following update.

To deactivate this automatic column resizing behavior, select PivotTable Analyze (tab) -> PivotTable (group) -> Options.

Excel PivotTable Analyze tab with the Options button highlighted in the PivotTable group to open PivotTable Options and disable auto column resize

In the PivotTable Options dialog box, uncheck “Autofit column widths on update”.

Excel PivotTable Options dialog on the Layout and Format tab with the Autofit column widths on update checkbox unchecked to preserve manual column widths

Pivot Table Tips Every Beginner Should Know

Pivot Table Field List Not Showing

To show the Ribbon tabs and the Field List related to the Pivot Table, your cursor needs to be inside the Pivot Table area. You can also show or hide the Field List by clicking on the PivotTable Analyze tab, then going to Show and selecting Field List.

Excel PivotTable Analyze tab with the Field List button highlighted in the Show group to toggle the PivotTable Fields panel on or off

Clean your Source Data

Before creating a Pivot Table, make sure your data is set up correctly:

  • The data needs to be in a table format; columns are categories and rows are transactions (records).
  • Make sure there are no empty rows or columns.
  • Avoid including subtotal or total rows in your data.
  • Each column needs a unique title, and these titles should be in one cell each.

Making the Data Source Dynamic

To ensure your Pivot Table includes new data rows, convert your original data range into an official Excel Table. This way, the Pivot Table dynamically adjusts to changes in your data.

Steps to Create a Dynamic Data Source

Convert to Excel Table:

  • Click on a cell inside your data range.
  • Press Ctrl+T to open the Create Table dialog box.
  • Click OK to confirm.

Name Your Table (Optional but Helpful):

  • Go to the Table Design tab.
  • Under Properties, rename your table from the default name (e.g., “Table1”) to something meaningful like “TSales”.

For more on Excel Tables and why they’re the best foundation for any report, see our guide on the VSTACK function for combining sheets.

Create the Pivot Table

  • Summarize with PivotTable:
  • With your table selected, go to Table Design -> Tools (group) -> Summarize with PivotTable.
Excel Table Design tab with the Summarize with PivotTable button highlighted in the Tools group to create a dynamic Pivot Table from an Excel Table
  • Notice that the range selection now references the table name (e.g., “TSales”).
  • In the Create PivotTable dialog box, click OK.
Excel Create PivotTable dialog showing the table name TSales as the data source reference confirming the Pivot Table will update dynamically
  • In the Create PivotTable dialog box, click OK.

How to Add Percent of Total in Pivot Table

To find out what percentage of total sales each customer generated, follow these simple steps:

Add Sales USD Field Again:

  • Add the Sales USD field a second time to the Values area, placing it below the original entry.
Excel PivotTable Fields Values area showing Sales USD added twice to create a second column for displaying percentage of grand total

Show Values As Percentage:

  • Right-click one of the values in the newly-added column.
  • Select Show Values As -> % of Grand Total.
Excel right-click context menu on the second Sales USD column showing Show Values As submenu with Percentage of Grand Total option highlighted

Take a moment to explore the Show Values As options for other useful calculations.

Excel Pivot Table showing the Sales USD column alongside a new percentage column with each customer's share of total sales displayed side by side

Rename the Column Header:

  • Rename the new column header to something meaningful like “Percentage of Total Sales”.
Excel Pivot Table after renaming the percentage column header to Percentage of Total Sales with both actual and percentage values per customer

Now, your report shows the percentage of total sales for each customer. Next, you can use similar steps to analyze product data.

How to Copy a Pivot Table

Creating a second report by duplicating an existing Pivot Table is a useful trick. Here’s how you can do it:

  1. Highlight the original Pivot Table report.
  2. Press Ctrl + C on the keyboard.
  3. Click in an empty cell on a new sheet or to the side of an existing Pivot Table (ensure you leave enough blank columns to allow the original report to “grow” if needed.)
  4. Press Ctrl + V to paste a copy of the Pivot Table.
  5. Remove any unneeded field names from the drop zones and add the needed field names.
  6. If needed, sort the new Pivot Table by Values.
Excel worksheet with an original customer sales Pivot Table and a copied duplicate Pivot Table beside it showing the copy-paste result

An advantage of copying an existing report is that all the cosmetic settings (color, number formatting, totals, etc…) are retained in the duplicate report.

If you want to move a pivot table, you will find a handy feature on the PivotTable Analyze tab in the Actions group. It allows you to specify the destination where you want to move the selected pivot table.

Excel PivotTable Analyze tab with the Move PivotTable option highlighted in the Actions group to relocate the Pivot Table to a new destination

To permanently delete a pivot table, simply select the whole pivot table report (including filters, if any; you can use “Select” -> “Entire PivotTable” from the Actions group) and press Delete.

More Pivot Table Features to Explore

As you become advanced in the use of pivot tables, you will be able to create Calculated Fields – custom calculations that go beyond the standard aggregations available for the Values fields. You will work with custom groups, to create category classifications that may not be available in your data source.

This includes date groupings, which are applied automatically in Excel pivot tables whenever you add dates to your report, but which you can also customize to suit your needs.

Featured Course

Excel Data Modeling with Power Pivot & DAX

For Excel users whose data is spread over more than one table. Connect them properly, handle millions of rows, write the calculations pivot tables can’t. Same skills run Power BI.
Learn More
Power Pivot DAX course cover

How to Filter a Pivot Table with Slicers

If you’ve used Slicers you know how easy filtering is performed as opposed to old-school dropdown filters.

We can add slicers to out Pivot Tables to expedite the filtering process.  Plus, it’s fun and looks cool.

The Main Advantage to Slicers

Unlike filters that are built into the Pivot Table, Slicers can filter by ANY category in the data set.

Where traditional filters can only filter by what is in the report, Slicers manipulate the “back end” data, which is then carried forward to the Pivot Table.

To add Slicers to Pivot Table reports:

  1. Click on any cell in a Pivot Table.
  2. Select PivotTable Analyze (tab) -> Filter (group) -> Insert Slicer.
Excel PivotTable Analyze tab with the Insert Slicer button highlighted in the Filter group to add a slicer for interactive Pivot Table filtering
  1. In the Insert Slicer dialog box, select the categories you wish to filter.
Excel Insert Slicers dialog showing available field checkboxes with Region selected before clicking OK to insert the Region slicer

We are presented with a Slicer(s) for the item(s).

Excel Pivot Table with a Region slicer added beside it showing America, Europe, and other region buttons for one-click filtering

The slicer only affects the Pivot Table that was selected when the Slicer was created.  If you need the Slicer to filter multiple Pivot Tables:

  1. Select the Slicer.
  2. Select Slicer (tab) -> Slicer (group) -> Report Connections.
Excel Slicer tab with the Report Connections button highlighted in the Slicer group to connect the slicer to multiple Pivot Tables at once
  1. In the Report Connections dialog box, select as many (or as few) Pivot Tables you need to achieve the desired behavior.
Excel Report Connections dialog showing a list of available Pivot Tables with checkboxes to select which ones the slicer will control

How to Refresh a Pivot Table When Source Data Changes

When the underlying data changes (additions, deletions, or modifications), you will need to “refresh” the report to reflect the changed data.

There are many ways to refresh the Pivot Table report.

  • Right-click on the Pivot Table report and select Refresh.
  • Select PivotTable Analyze (tab) -> Data (group) -> Refresh.
  • Select Data (tab) -> Queries & Connections (group) -> Refresh All.
  • Use the shortcut: Ctrl + Alt + F5.

Next time you’ll want to easily analyze data, you will know how to create a pivot table in Excel and how to make the most of it.

Looking to take your Pivot Tables skills in Excel to the next level? We’ve got you covered! Dive into our easy-to-follow article for some expert tips and tricks. Click here to learn more.

How to Create a Pivot Table with Microsoft Copilot

Microsoft 365 Copilot can build a Pivot Table from a plain English prompt. As of April 2026, Copilot’s agentic mode is the default experience in Excel, meaning it edits your workbook directly instead of just suggesting steps.

What You Need

  • A Microsoft 365 Copilot, Microsoft 365 Premium, Personal, or Family subscription
  • Data formatted as an Excel Table (Insert > Table or Ctrl+T)
  • The file saved in OneDrive or SharePoint with AutoSave on

Step 1: Open the Copilot Pane

Click the Copilot icon on the Home tab. Editing is on by default.

Step 2: Prompt for a Pivot Table

Try a specific prompt like:

“Create a Pivot Table showing total sales by customer and product, with region as a filter.”

Copilot returns a draft with fields placed in Rows, Columns, Values, and Filters automatically.

Step 3: Refine the Output

Follow up with prompts like “Sort by sales, largest to smallest” or “Show values as percentage of grand total.” Copilot adjusts the Pivot Table in place.

When to Use Copilot vs Manual Pivot Tables

Copilot is fastest for first drafts and exploratory analysis. Build manually when you need calculated fields, Power Pivot connections, or precise field placement. Copilot only sees the currently open workbook, so it cannot pull from external files or databases.

Pivot Table FAQs

How do I create a Pivot Table in Excel?

Click any cell in your data, go to Insert > PivotTable, confirm the range, choose New Worksheet or Existing Worksheet, and click OK. Then drag fields from the Field List into Rows, Columns, Values, or Filters.

What’s the best data format for a Pivot Table?

Each column needs a unique header in a single cell. Each row should be one record. No blank rows, no merged cells, no subtotal rows mixed in with the data. Convert the range to an Excel Table (Ctrl+T) so new rows are picked up automatically.

Why won’t my Pivot Table refresh with new data?

If your source is a fixed range, rows added below the original range won’t be included. Convert the source to an Excel Table before creating the Pivot Table. Tables expand automatically, so new rows appear after a refresh.

How do I show a Pivot Table value as a percentage of the total?

Add the value field to the Values area twice. Right-click the second column, choose Show Values As > % of Grand Total, then rename the column header to something clear like “Percentage of Total Sales.”

What’s the difference between a Slicer and a Filter in a Pivot Table?

A Filter only filters by fields already used in the report. A Slicer can filter by any field in the source data, even fields not visible in the Pivot Table, and one Slicer can control multiple Pivot Tables through Report Connections.

Can Copilot create a Pivot Table for me?

Yes. With a Microsoft 365 Copilot or Premium subscription, click the Copilot icon on the Home tab and prompt it: “Create a Pivot Table showing sales by customer and product.” Copilot builds it directly in your workbook.

Download the Pivot Table Practice File

Drag the fields, build your first Pivot Table, and lock in everything you just read.

Featured Bundle

Black Belt Excel Bundle

This Excel Black Belt Package includes EIGHT of our Popular Courses. You’ll learn high-value, in-depth Excel skills that solve real problems.
Learn More
Excel Black Belt Bundle XelPlus

Leila Gharani

Founder of XelPlus and ten-time Microsoft MVP. Leila helps over 500,000 professionals master Excel, Power BI, and data automation through practical, real-world training.