Excel Tutorials

How to Make a Pivot Table in Excel

Build the same PivotTable in Excel and Google Sheets, add a linked PivotChart, and avoid the single most common reason a pivot table looks wrong: forgetting to refresh it. This lesson uses the Event Planner workbook from Excel Foundations, free to download below.

Return to Class

Download the Event Planner Workbook

Follow along in the same file used in the video. No email required.

⬇ Event Planner Workbook (.xlsx)

What Is a PivotTable?

A PivotTable takes a large, detailed dataset and summarizes it into a compact table you can rearrange just by dragging fields around, group by category, sum a column, count entries, all without writing a single formula or touching the original data. Both Excel and Google Sheets have their own version, built through slightly different menus but working on the same underlying idea.

The tradeoff for that power is that a PivotTable isn't automatically live the way a formula is, it has to be manually refreshed after the source data changes, which is where most of the confusion around PivotTables actually comes from.

How to Create a PivotTable in Excel

Step-by-step, matching the video above.

1

Select your data

Click anywhere inside your dataset, or select the full range including headers.

2

Open the Insert tab

Click Insert on the ribbon, then PivotTable.

3

Choose where it goes

Pick New Worksheet to place it on a fresh tab, or Existing Worksheet to pin it to a specific location, then click OK.

4

Drag fields into place

In the PivotTable Fields pane, drag category-type fields into Rows, and numeric fields you want totaled into Values.

5

Add columns or filters if needed

Drag another field into Columns to break the summary out further sideways, or into Filters to add a dropdown that narrows the whole table.

6

Change how a value is summarized

Click the dropdown on any field in the Values area and choose Value Field Settings to switch between Sum, Count, Average and more.

7

Refresh after the source data changes

Right-click inside the PivotTable and choose Refresh, or use Refresh All on the Data tab, PivotTables never update automatically on their own.

Worked Example
A: CategoryB: Cost
Venue2,500
Catering1,800
Venue600
Decor450
Catering300

Drag Category into Rows and Cost into Values, and the PivotTable collapses these five raw rows into three: Venue (3,100), Catering (2,100), Decor (450), summed automatically. Add another field into Columns, like Month, and the same data breaks out sideways by month too, no formulas written anywhere.

Building the Same Pivot Table in Google Sheets

Same underlying idea, a different menu, and one extra panel worth knowing.

Select your data and insert it

Select your range, then go to Insert > Pivot table.

Choose a destination

Pick New sheet or Existing sheet, then click Create.

Use the Pivot table editor panel

On the right side, click Add next to Rows, Columns, Values or Filters, and choose the field you want in each.

Set how Values are summarized

Click the Summarize by dropdown next to a field in Values to switch between SUM, COUNTA, AVERAGE and other options.

Refreshing works differently here

Google Sheets pivot tables update automatically as the source data changes, no manual refresh step required, the one meaningful difference from Excel's behavior.

PivotCharts: Visualizing Your PivotTable

A chart that stays linked to your PivotTable, filtering and updating together.

Creating one in Excel

Click any cell inside the PivotTable, go to Insert > PivotChart, and choose a chart type. The chart reflects whatever the PivotTable currently shows.

Creating one in Google Sheets

With your pivot table built, go to Insert > Chart, Sheets automatically detects the pivot table as the data source.

Why it's different from a regular chart

A PivotChart stays connected to the PivotTable's filters, changing a filter or rearranging fields updates the chart automatically along with the table.

Refreshing vs. Rebuilding: Keeping a PivotTable Current

The single most common source of "my PivotTable is wrong" confusion.

Editing existing rows

Changing a value already inside your original data range requires a manual Refresh in Excel before the PivotTable reflects it.

Adding new rows past the original range

If your source was a plain cell range, new rows added past the bottom aren't included until you manually update the PivotTable's source range via PivotTable Analyze > Change Data Source.

The fix: use a Table as your source

If your original data is an Excel Table (Ctrl+T) instead of a plain range, the PivotTable's source automatically expands to include new rows, refresh still required, but no range to manually update.

Grouping Data: Dates, Numbers and Text

Raw daily dates or a wide spread of numbers rarely make a useful PivotTable row on their own, grouping collapses them into meaningful buckets.

Grouping dates into months, quarters or years

Right-click any date already in the Rows or Columns area and choose Group, then select Months, Quarters or Years. A field of 365 individual daily dates collapses into just 12 month rows.

Grouping numbers into ranges

Right-click a numeric field in Rows and choose Group, then set a starting value, ending value, and interval, like grouping every expense into 0-100, 100-200, 200-300 buckets automatically.

Grouping text values manually

Select several row labels while holding Ctrl, right-click, and choose Group to combine them under one custom label, useful for merging similar categories that were entered inconsistently.

Grouping in Google Sheets

Google Sheets groups dates automatically once a date field is added to Rows, offering Year, Quarter, Month and Day breakdowns directly in the field's dropdown, no separate Group command needed.

Worked Example: Grouped by Month
MonthSum of Cost
June1,850
July2,400
August1,100

The same event-planning data from the earlier example, but with individual Event Date values grouped into months instead of listed one by one. What would have been dozens of daily rows becomes three readable totals, all from right-clicking one date field and choosing Group.

Show Values As: More Than Just Raw Numbers

A Values field defaults to showing its raw Sum or Count, but it can display something more useful with one dropdown change.

% of Grand Total

Right-click a Values field, choose Show Values As > % of Grand Total, and every number becomes a percentage of the overall total instead of a raw figure, instantly showing which category dominates the budget.

% of Column Total

Useful when comparing categories within each column separately, like seeing what percentage of each month's spending went to Venue, rather than a percentage of everything combined.

Running Total In

Shows each row as a cumulative total building on the one before it, useful for tracking spending building up toward a budget cap over time.

Difference From

Compares each value against a specific reference row or column you choose, like comparing every month's spending against a baseline month.

Slicers and Timelines: Interactive Filtering

A more visual alternative to the Filters area dropdown, Excel-specific.

Inserting a Slicer

Click inside the PivotTable, go to PivotTable Analyze > Insert Slicer, and choose a field. A floating panel of clickable buttons appears, one per unique value, filtering the table with a single click instead of a dropdown menu.

Inserting a Timeline

For a date field specifically, PivotTable Analyze > Insert Timeline adds a draggable date-range slider, letting you filter to a custom date window visually.

Connecting one Slicer to multiple PivotTables

Right-click a Slicer, choose Report Connections, and check any other PivotTables built from the same source, one Slicer can then filter several PivotTables at once.

Calculated Fields: Adding a Custom Formula

When none of the built-in summary options do what you actually need, a Calculated Field adds your own formula directly into the PivotTable.

Creating one

Click inside the PivotTable, go to PivotTable Analyze > Fields, Items & Sets > Calculated Field, name it, and write a formula referencing other fields, like Cost divided by a Budget field to calculate a percentage used.

How it behaves

A Calculated Field appears in the field list just like any other and can be dragged into Values, its result recalculates automatically as the PivotTable updates.

A real limitation to know

Calculated Fields operate on the summarized totals, not the original row-by-row data, which can produce unexpected results with anything more complex than basic arithmetic between two summed fields.

Common PivotTable Mistakes to Avoid

⚠️

Forgetting to refresh after editing the source data

In Excel specifically, a PivotTable shows stale numbers until you right-click it and choose Refresh, it never updates on its own.

⚠️

Using a plain range instead of a Table as the source

New rows added past a plain range's original boundary won't be included until the data source is manually updated. An Excel Table avoids this entirely.

⚠️

Dragging a field into the wrong area

Dragging a unique ID or name field into Values instead of Rows produces a giant, unsummarized mess. Category-type fields belong in Rows or Columns, numbers you want totaled belong in Values.

⚠️

Inconsistent category spelling in the source data

"Catering" and "catering " (with a trailing space) will show up as two separate rows in the PivotTable instead of combining into one. Clean up the source data first.

⚠️

Grouping dates before deciding what breakdown you actually need

Grouping by Month when you actually needed Quarter (or vice versa) means regrouping from scratch. Right-click the group and choose Ungroup, then group again with the correct interval.

⚠️

Expecting a Calculated Field to work row-by-row

Calculated Fields operate on already-summarized totals, not the original detailed rows, a formula that works fine on raw data can produce a misleading result once it's calculated on aggregated numbers instead.

Beyond the Spreadsheet

3 Summaries You Pivot by Hand.Already Live in Updoot.

A summary shouldn't need rebuilding and refreshing every time.

💰
You pivot
Spending totals by category
Budget & P&L
Totals stay current automatically, nothing to refresh
📊
You pivot
Sales performance by rep
KPI & Sales Tracking
Dashboards summarize themselves, live
🩺
You pivot
Business health by lever
Doot's Desk
Already summarized, green, yellow or red

Free 14-day trial. No credit card required.

Frequently Asked Questions

What is a PivotTable?

A PivotTable summarizes a large dataset into a compact, interactive table, letting you group, count, sum, or average your data by dragging fields around, without changing the original data at all.

How do I create a PivotTable in Excel?

Select your data, go to Insert > PivotTable, choose where to place it, click OK, then drag fields into the Rows, Columns, Values and Filters areas in the PivotTable Fields pane.

How do I create a pivot table in Google Sheets?

Select your data, go to Insert > Pivot table, choose a destination, then use the Pivot table editor panel on the right to add Rows, Columns, Values and Filters.

Why isn't my PivotTable updating when I change the data?

PivotTables don't update automatically. Right-click anywhere inside it and choose Refresh, or use Refresh All on the Data tab, after editing the source data.

What's the difference between Sum, Count and Average in a PivotTable?

These are different ways to summarize the values in a field. Sum adds them together, Count counts how many entries there are, and Average finds the mean, changeable anytime through Value Field Settings.

Can I make a chart from a PivotTable?

Yes, select any cell inside the PivotTable and go to Insert > PivotChart in Excel, or Insert > Chart in Google Sheets once your pivot table is built. The chart stays linked to the PivotTable's data.

How do I filter a PivotTable?

Drag a field into the Filters area of the PivotTable Fields pane, a dropdown appears above the table letting you narrow results to specific values.

Can I have more than one PivotTable from the same data?

Yes, you can build as many PivotTables as you want from the same source range, each one showing a different summary or breakdown.

Does a PivotTable work better with an Excel Table as the source?

Yes, if your source is a proper Excel Table, the PivotTable's range automatically expands to include new rows whenever you add them, no manual range updating needed.

Can I turn a PivotTable into regular values?

Yes, select the PivotTable, copy it, then Paste Special > Values Only over the same or a new location to convert it into a static table with no live formulas.

How do I group dates into months or quarters in a PivotTable?

Right-click any date in the Rows or Columns area, choose Group, and select Months, Quarters or Years to collapse individual dates into that time period automatically.

How do I show percentages instead of raw numbers in a PivotTable?

Right-click a field in the Values area and choose Show Values As, then pick % of Grand Total, % of Column Total, or another percentage-based option.

What is a Slicer in a PivotTable?

A Slicer is a floating panel of clickable buttons, one per unique value in a field, that filters a PivotTable visually instead of using a dropdown menu. Insert one from PivotTable Analyze > Insert Slicer.

Can I add a custom formula to a PivotTable?

Yes, using a Calculated Field, found under PivotTable Analyze > Fields, Items & Sets > Calculated Field, which lets you write a formula referencing other fields in the PivotTable.

Ready for summaries that stay current on their own?

Every business starts with a spreadsheet. Updoot is where you scale past it, no pivot table to build or refresh.

Start Your Free Trial →