How to make a pivot table in Excel

Published: November 8, 2026 · 7 min read

You have a long sheet of sales, expenses or attendance, and you want to know the total per month, per product or per city. A pivot table does it with no formulas and a few clicks.

What is a pivot table good for?

A pivot table is a separate summary table that Excel builds from your raw data. You only tell it what goes in the rows, what goes in the columns, and what to add up or count. It never changes your data, so you can experiment freely.

It answers questions like: what was the revenue per month, which product earned the most, how many orders came from each city, how much did each person spend per category.

Preparation: how the data should look

A pivot table works smoothly when the data is tidy. Check these four things first:

Tip: turn the range into a table

Click into the data and press Ctrl + T. Excel converts the range into a table that grows with new rows, so the pivot table will still see data you add later.

Step 1: Insert the pivot table

  1. Click any cell inside your data.
  2. On the Insert tab, click PivotTable.
  3. In the dialog, check that the selected range covers all your data.
  4. Choose New Worksheet and click OK.

An empty pivot table appears with the PivotTable Fields pane on the right. If the pane is hidden, click inside the empty pivot area.

Step 2: Drop fields into the four areas

At the bottom of the pane there are four areas. Drag field names onto them from the list above:

AreaWhat it doesExample
RowsWhat you group the rows byProduct
ColumnsWhat you group the columns byMonth
ValuesWhat you summariseSum of revenue
FiltersA field that filters the whole tableCity

Try it: drag Product to Rows and Amount to Values. You instantly see total revenue per product. Drag Month to Columns and the table gets a monthly breakdown.

Step 3: Change how values are summarised

Excel adds up numbers and counts text by default. To change that, click the field in the Values area and choose Value Field Settings. Here you can switch to average, count, maximum or minimum.

On the Show Values As tab you can also ask for percentages, for example what share of total revenue each product makes up.

Grouping dates

If the rows show daily dates but you need monthly totals, right-click a date, choose Group, and select Months (and Years if needed). Newer versions of Excel often do this automatically.

Refreshing: Excel won't tell you on its own

When you change the source data or add a row, the pivot table does not update automatically. Right-click it and choose Refresh, or press Alt + F5. If your source is a table (see above), new rows are included.

Common problems and fixes

What you seeLikely causeFix
A count instead of a sumThe numbers are stored as text, or the column has a blank cellConvert the column to numbers, fill the blanks, then refresh
An error about a field name when insertingOne column has an empty headerGive every column a header
New rows don't show upThe source range didn't grow with the dataTurn the source into a table (Ctrl + T), or change the data source on the PivotTable Analyze tab
Dates can't be groupedA text value or a blank is in the date columnFix the dates so they are real dates, and fill the blanks

If you don't want to build everything by hand

The Insert tab also has a Recommended PivotTables button. Excel offers ready-made pivot tables tailored to your data, and you pick the closest one. It is a good way to learn too: see which field landed in which area, then refine from there.

This guide uses menu names from Microsoft 365 and Excel 2021. Older versions follow the same steps, but buttons may sit in slightly different places.

Stuck in a program?

Pointlark sees your screen, answers out loud, and shows you where to click. Hold Ctrl + Win, ask, and follow the blue dot. Coming soon for Windows 10 and 11.

Notify me