Create an Excel Pivot Table in Just Two Clicks

Many Pivot Tables focus on common questions, like “What are the total sales by salesperson”, or “What are the daily sales”.

When answering these common questions, you can create the Pivot Tables with just a few clicks by using the Recommended Pivot Tables feature located on the Insert ribbon.

Fragment of the Excel ribbon with the Insert tab highlighted and a frame around Recommended PivotTables.

This displays a panel on the right side of the screen showing thumbnail images of common Pivot Tables based on your specific data.

Excel pane with Recommended PivotTables based on TableSales. Three recommended pivot tables visible: 'Order amount' by 'Order date', "Order amount' by 'Salesperson' and 'Order date', 'Order amount' by 'Salesperson'.

If you see a Pivot Table that meets your needs, you can click the “New Sheet” or “Existing Sheet” buttons to place the selected Pivot Table as needed.

These are fully formatted and ready to use Pivot Table.  You can, of course, modify them as needed, or you can use them as-is.

Adjust Pivot Table Fields Settings and Layout

When working with the PivotTable Fields drag-and-drop interface, you may find it easier to work with by rearranging the field list and field wells.

This can be done by clicking the Tools (gear) icon in the upper right corner of the PivotTable Fields panel.

Excel pane with PivotTable Fields. The toggle icon indicating Settings highlighted.

From here, you can rearrange the field list and field wells into one of four layouts.

Five layout options for the PivotTable Fields pane: Fields Section and Areas Section Stacked; Fields Section and Areas Section Side-By-Side; Fields Section Only; Areas Section Only (2 by 2); Areas Section Only (1 by 4).

Each layout has its pros and cons.  Your screen size, number of fields, and personal preference will drive the layout choice that serves you best.  Experiment with them all to see which one you prefer.

Also, when working with tables that have many fields, locating a specific field can be challenging.  The field list is presented in what is called Data Source Order.  In other words, fields are listed from top to bottom as they appear left to right in the data source.

It may be easier to sort the list in alphabetical order to locate fields more easily when you are not familiar with the data set’s order.

Fragment of the PivotTable Fields settings showing fields sorting options: Sort A to Z (selected and highlighted), and Sort in Data Source Order.

Featured Course

Excel Essentials for the Real World

Learn time-saving hacks to work smarter in Excel. Our members also consistently report a newfound enthusiasm for using Excel after taking our course.
Learn More

Add a Timeline Slicer to a Pivot Table

Timeline Slicers are useful when working with Pivot Tables that can utilize dates to aggregate or filter data.

Timeline Slicers allow us to set a level by which to filter  (such as years, quarters, months, days, etc.), and then use drag-and-drop controls to reduce or expand the start and end ranges or click specific intervals to filter.

Fragment of an Excel worksheet with a pivot table showing Order Amount by Salesperson and a Timeline slicer based on Order date field, with the date grouping set to Quarters and the slider positioned between Q3 2021 and Q2 2022.

Timeline Slicers can be created by selecting PivotTable Analyze (tab) – Filter (group) – Insert Timeline.

Fragment of the Excel ribbon with the "PivotTable Analyze" tab highlighted and a frame around "Insert Timeline" button.

When creating the Timeline Slicer, any date-based fields in your Pivot Table will be listed for use by the control.

Insert Timelines dialog box with 3 date fields: Order Date, Ship Date, Receive Date next to empty checkboxes.

You can customize the Timeline Slicer’s color, as well as which controls and information you wish displayed for the user to utilize.

Using a Hidden Pivot Table for Dynamic Reports

Typically, the Pivot Table is the final link in the analytic chain.  But it doesn’t have to be.  Consider this use for a Pivot Table.

Since we can’t use Slicers to filter individual cell calculations, we can use a Slicer to filter a Pivot Table, then use the Pivot Table’s filter results to drive single-cell calculations.  Here’s how this works:

We start with a Pivot Table that uses a field from the data (ex: Salesperson).

Fragment of an Excel worksheet with a pivot table showing Salespersons and a PivotTable fields pane next to it, with the Salesperson field checked and placed in the Rows area.

Create a Pivot Table Slicer that uses the Salesperson field.

Fragment of an Excel worksheet with a pivot table showing Salespersons and a Slicer based on the Salesperson field.

Select a single entry from the Pivot Table Slicer to reduce the Pivot Table to but a single entry.

Fragment of an Excel worksheet with a pivot table showing Salespersons and a Slicer based on the Salesperson field. "Archer Lamble" selected in the Slicer and the Salesperson pivot table filtered down to only show "Archer Lamble".

We can now use the single entry display in the Pivot Table (cell G3) in a variety of cell formulas.

Fragment of an Excel worksheet showing a report on "Archer Lamble", including "Years with company", "Total Sales" and "Day with highest sales". Values in columns C and the formulas behind the values visible in column E.

Changing the Slicers to a different person changes the Pivot Table which then updates all the downstream calculations.

NOTE: Be aware that if the user selects multiple items from the Slicer, only the first entry in the Pivot Table will be used in the calculations.  This is because the formulas are only looking at a single cell in the Pivot Table area.

Fragment of an Excel worksheet with a pivot table showing Salespersons and a Slicer based on the Salesperson field. Multiple names selected in the Slicer filtering the pivot table, starting with "Jack Potter".
Below it, a report on "Jack Potter", including "Years with company", "Total Sales" and "Day with highest sales".

Display the Top N Items in a Pivot Table (Top N Analysis)

Pivot Table results can get rather lengthy, especially when working with dozens, hundreds, or thousands of items in a field, like product names or employee names.

Suppose you only want to see the Top 3 (or whatever number you wish) items of the data set.

Two views of the same pivot table showing 'Order Total' by 'Salesperson'. The one on the left showing all Salespersons. The one on the right filtered down to include the three with the highest Order Total.

To do this, select the Filter dropdown for the Rows field (ex: Salesperson), and choose Value Filters.

Pivot table filter on the Salesperson column, with Value Filters highlighted and expanded to show available options, including the highlighted Top 10.

In the Top 10 Filter dialog box, select the number of items you wish to display, along with the field that holds the number that the Top N will be based around.

The Top 10 Filter dialog box for the Salesperson column. Set to show Top 3 Items by Order Total.

If you are using a row-based hierarchy (ex: Year to Month to Salesperson), each month will be reduced to only show the top N salespersons based on the Order Total.

A pivot table showing 'Order Total' by 'Salesperson', 'Year' and 'Month'. Each month filtered to show only the top 3 Salespersons for that month.

An added touch would be to right-click one of the Order Total values and sort from largest to smallest.  This performs the sorting on a per-Top N basis.

Pivot Tables Customizing Labels and Headings

If you are working with data that has less than desirable labels for certain items, you can change the labels in the Pivot Table without changing the source data or breaking the link between the two.

For example, the labels “Qtr1, Qtr2, Qtr3…” should read as “Quarter 1, Quarter 2, Quarter 3…”.

To do this type directly into the Pivot Table cell that has the undesirable label and replace it with one that works for you.

Two views of a pivot table showing 'Order Total' by 'Salesperson', 'Year' and 'Quarter'. Each month filtered to show only the top 3 Salespersons for that month. In the top view, the Quarters are displayed as Qtr1, Qtr2. In the bottom view, Quarter 1 is fully spelled out.

Of course, the best option is to change the values in the source data, but if this is not possible, at least you have the option to change the labels in the Pivot Table report.

Does this mean that someone could type over the calculated values and compromise a report?  No: this type of replacement is not allowed in Pivot Tables.

Two views of a pivot table showing 'Order Total' by 'Salesperson', 'Year' and 'Quarter'. An arrow pointing from a cell in the Order Total column to an Excel error message saying "We can't change this part of the PivotTable".

Featured Course

Black Belt Excel Package

What would your life look like if you became an Excel Black Belt? You’ll get the best deal with this (cost savings) package. It will take you from Excel Newbie to Grand Master.
Learn More
Excel Black Belt course cover

Repeating or Centering Items in a Pivot Table

When working with lengthy Pivot Tables, it can be easy to lose focus of what category you’re examining when the list contains many rows, especially when printed data crosses to a new printed page.

To help maintain focus, the category items can be repeated to look more like a traditional tabular structure.

This is done by selecting a Pivot Table, then clicking Design (tab) – Layout (group) – Report Layout – Repeat All Item Labels.

Fragment of the Excel ribbon with the Design tab highlighted and Report Layout button highlighted and expanded to show available options, with Repeat All Item Labels highlighted.
Two views of a pivot table showing 'Order Total' by 'Salesperson', 'Year' and 'Quarter'. In the left view, Year and Quarter labels appear only once, in the right view Year and Quarter labels are repeated in each row.

If you don’t wish to repeat the heading labels for every heading, you can right-click a specific heading and click “Field Settings…”.  In the Field Settings dialog box, on the Layout & Print tab, check the box labeled “Repeat Item Labels”.

Pivot table showing 'Order Total' by 'Salesperson', 'Year' and 'Quarter'. A cell in the Quarter column is selected and an arrow points from it to the Field Settings dialog box open to the Layout & Print tab, where "Repeat item labels" is checked and highlighted.
Pivot table showing 'Order Total' by 'Salesperson', 'Year' and 'Quarter'. Year label appears only once, and Quarter labels are repeated in each row.

Another way to display headings is to center them across their child-level items.

To do this, click a Pivot Table, then select PivotTable Analyze (tab) – PivotTable (group) – Options.

Fragment of the Excel ribbon with the "PivotTable Analyze" tab highlighted and a frame around "Options" button.

On the Layout & Format tab,  in the Layout section, check the box labeled “Merge and center cells with labels”.

Fragment of the PivotTable Options dialog box, with the Layout & Format tab highlighted and a checkmark placed next to "Merge and center cells with labels".
Pivot table showing 'Order Total' by 'Salesperson', 'Year' and 'Quarter'. Both Year and Quarter labels are merged and centered.

Enjoy your newly centered headings.

Pivot Table Custom Sort Items Using Dragging or Typing

Sorting data in Pivot Tables is straightforward.  Right-clicking text allows you to sort alphabetically, numbers numerically, and dates chronologically.

But what if you want to sort by some unconventional, or preferential means?  Suppose you want to keep an eye on a specific entry, so you want it to be at the top of the list regardless of any other conditions.

To reorder the list, select the desired cell, then click and hold the green border of the cursor and drag up or down to the needed position.  A thick green bar will indicate the drop location for the item.

Two views of a pivot table showing 'Order Total' by 'Salesperson'. In the left view "Amy Trefl" is in the seventh row, in the right view "Amy Trefl" has been dragged to the second row.

This will place the selected entry in that position throughout all grouping iterations of the report.  In other words, if you place “Lily Code” at the top of the “January” cluster, “Lily Code” will appear at the top of ALL monthly clusters.

Another way to reposition an item in a Pivot Table list is to click where you wish the entry to appear and type the text for the entry being moved.

This technique may be faster and more efficient when working with long lists and you are familiar with the data.

Pivot Table Calculate Percentage Difference from a Previous Period

Take the following Pivot Table report as an example.

Pivot table showing Sales by Years and Months.

Suppose we need to calculate the percentage change from each month to the previous month.  Or the percentage change from each month to the previous year’s month.

To do this, add the base value field (in this case, “Sales”) a second time to the Values field well.

Pivot table showing Sales by Years and Months, with Sales column repeated twice.

Right-click one of the newly added values and select Show Values as – % Difference From…

Pivot table context menu with "Show Values As" highlighted and expanded to view the available calculation options, with "% Difference From" highlighted.

In the following dialog box, select the Base Field (in this example, it is the Months field), and the Base Item, which would be “previous”.

"Show Values As" dialog box, with 'Months' as Base Field and '(previous)' as Base Item.

We are presented with the percentage difference for each month compared to the previous month.

Pivot table showing Sales by Years and Months, with Sales column repeated but showing percentages.

If we wanted to see the percentage difference for the same month of the previous year, we would set the Base Field to Years.

"Show Values As" dialog box, with 'Months' as Base Field and '(previous)' as Base Item.
Pivot table showing Sales by Years and Months, with Sales column repeated but showing percentages.

NOTE: Because there is no inherent time intelligence being utilized here (like would be if using DAX formulas), the word “previous” simply refers to the previous cell.  This could be a previous product, person, country, etc.

Disable the Drill Down Feature in Pivot Tables

A great feature of Pivot Tables is the ability to double-click a calculated value and produce a separate table that is a filtered set of rows from the source data but made up of only rows that contribute to the clicked value.  This is known as drilling down into the data.

On the left a pivot table showing Sales by Salesperson and Years. A cell on the cross-section of "Don Johnson" and "2022" highlighted. An arrow leading from the highlighted cell to an Excel table on the right, which shows details of the transactions from Don Johnson in 2022, including Order ID, Order date, and Sales value of each order.

But what if you don’t want your viewer to have the ability to examine the underlying data?

To disable this drill-down feature, click in the Pivot Table, then select PivotTable Analyze (tab) – PivotTable (group) – Options.

Fragment of the Excel ribbon with the "PivotTable Analyze" tab highlighted and a frame around "Options" button.

On the Data table, deselect the PivotTable Data feature labeled “Enable show details”.

PivotTable Options dialog box, with the Data tab highlighted and an empty checkbox next to "Enable show details".

If a user attempts to drill down into the data using a double-click maneuver, they are presented with a denial message.

Excel error message saying "We can't change this part of the PivotTable".

Bonus Tip

If you’re using Pivot Tables for reporting, check out what’s in store – you can now use images inside Pivot Tables (currently available in Office Insiders) for greater visual impact!

Cheat Sheet

Download the handy Cheat Sheet summarizing all the tips:

Practice Workbook

Feel free to Download the Workbook HERE.

Excel Download Practice file

Featured Course

Power Excel Bundle

10x your productivity in Excel 💪. This bundle includes Master Excel Power Query course & Master Power Pivot and DAX course. It’s Excel’s Ultimate Power Tools in ONE convenient (cost savings) bundle. Learnings apply to Power BI as well.
Learn More
Power Excel Bundle course cover

Leila Gharani

I'm a 6x Microsoft MVP with over 15 years of experience implementing and professionals on Management Information Systems of different sizes and nature.

My background is Masters in Economics, Economist, Consultant, Oracle HFM Accounting Systems Expert, SAP BW Project Manager. My passion is teaching, experimenting and sharing. I am also addicted to learning and enjoy taking online courses on a variety of topics.