Excel Pivot Tables: The Complete Guide from First Click to Dashboard

Excel Pivot Tables: The Complete Guide from First Click to Dashboard

πŸ“Ž This article includes 1 downloadable practice file ↓

⏱ 4 min readUpdated 27 September 2026

A pivot table summarises thousands of rows in seconds β€” totals by region, by month, by product β€” without a single formula. It is the most time-saving feature in Excel that many people still avoid because it looks complicated. It is not. This guide builds one from scratch and then covers the settings that turn a basic pivot into a real report.

In this article
  1. 1. Prepare the data (this decides everything)
  2. 2. Create the pivot
  3. 3. Value field settings
  4. 4. Show Values As β€” the hidden superpower
  5. 5. Group dates, numbers and items
  6. 6. Slicers and timelines
  7. 7. Calculated fields
  8. 8. Distinct counts
  9. 9. Layout for reports
  10. 10. GETPIVOTDATA: formulas that read the pivot
  11. 11. Refresh and common problems
  12. 12. Beyond the pivot table

1. Prepare the data (this decides everything)

  • One header row, one record per row, no blank rows or columns, no merged cells.
  • One type of data per column β€” dates in a date column, numbers as numbers.
  • Convert it to a Table (Ctrl+T). New rows are then included automatically when you refresh.
  • Data in β€œwide” format with a column per month? Unpivot it first.

2. Create the pivot

  1. Click inside the table β†’ Insert β†’ PivotTable β†’ New Worksheet β†’ OK.
  2. In the field list, drag Region to Rows, Product to Columns, Amount to Values.

That is a complete cross-tab. Drag fields between areas to look at the data another way β€” that is the β€œpivot” in pivot table.

Area What it does
Rows One row per unique value
Columns One column per unique value
Values What to calculate (sum, count, average…)
Filters A dropdown that filters the whole pivot

3. Value field settings

Numbers are summed by default, text is counted. Right-click a value β†’ Summarize Values By to switch to Average, Max, Min or Count. Click Number Format in the same dialog to format the whole field once β€” it survives refreshes, unlike formatting cells.

4. Show Values As β€” the hidden superpower

Right-click a value β†’ Show Values As:

  • % of Grand Total β€” each region’s share of all sales.
  • % of Row Total β€” product mix within each region.
  • Difference From (previous month) β€” month-on-month change.
  • Running Total In (Date) β€” year-to-date.
  • Rank Largest to Smallest β€” league tables.
πŸ’‘ Drag the same field (Amount) into Values twice: show one as the sum and the other as % of total, side by side.

5. Group dates, numbers and items

  • Dates: right-click a date in Rows β†’ Group β†’ Months and Years (and Quarters).
  • Numbers: right-click a quantity β†’ Group β†’ start 0, end 100, by 10 β€” instant distribution bands.
  • Items: select several items (North, East) β†’ right-click β†’ Group β†’ rename the group β€œZone 1”.

6. Slicers and timelines

PivotTable Analyze β†’ Insert Slicer adds clickable buttons for a field; Insert Timeline adds a date slider. Right-click a slicer β†’ Report Connections to control several pivots with one slicer β€” the core of a simple dashboard.

7. Calculated fields

PivotTable Analyze β†’ Fields, Items & Sets β†’ Calculated Field, e.g. Margin = Amount - Cost. Note that calculated fields work on sums: a calculated β€œPrice = Amount / Qty” divides total amount by total quantity, which is usually what you want for averages.

8. Distinct counts

β€œHow many different customers bought in each region?” Tick Add this data to the Data Model when creating the pivot. Then Value Field Settings offers Distinct Count.

9. Layout for reports

  • Design β†’ Report Layout β†’ Show in Tabular Form and Repeat All Item Labels β€” makes the pivot look like a normal table you can copy elsewhere.
  • Design β†’ Subtotals β†’ Do Not Show when you only need grand totals.
  • Design β†’ Blank Rows for readability.

10. GETPIVOTDATA: formulas that read the pivot

Type = and click a pivot cell β€” Excel writes =GETPIVOTDATA("Amount",$A$3,"Region","North"). It keeps working when the pivot re-arranges. Replace the fixed text with cell references to build a formatted summary page on top of a pivot. Turn the behaviour off in PivotTable Analyze β†’ Options if you prefer normal cell references.

11. Refresh and common problems

Problem Fix
New rows not included Source is a fixed range β€” change it to a Table (Change Data Source)
Old items still in filters PivotTable Options β†’ Data β†’ Number of items to retain: None
Numbers counted instead of summed A blank or text cell in the column β€” clean the source
Dates will not group Some β€œdates” are text β€” convert them
Column widths jump on refresh Options β†’ uncheck Autofit column widths on update
πŸ’‘ Right-click β†’ Refresh updates one pivot; Data β†’ Refresh All updates every pivot and Power Query in the workbook.

12. Beyond the pivot table

In Microsoft 365, PIVOTBY and GROUPBY create pivot-style summaries with formulas that update instantly β€” try GROUPBY in the Formula Lab. For millions of rows, load data into the Data Model (Power Pivot) and write measures.

πŸ“Ž Practice files for this article

  • πŸ“—
    300-row sales datasetDates, regions, reps, categories, customers, quantities, prices and costs u2014 everything the guideu2019s exercises use.
    ⬇ XLSX Β· 21 KB

Free to use for learning. Files with macros (.bas) are plain text β€” import them with Alt+F11 β†’ File β†’ Import File, and always test on a copy.