To add a pivot table in Excel, first make sure your source data is a clean table with a single header row and no blank rows or columns. Then click any cell inside that data, go to Insert > PivotTable, choose whether to place it on a new worksheet or an existing one, and click OK. Excel opens a blank pivot table with a field list on the right; drag fields into the Rows, Columns, Values and Filters areas to build your summary. That is the whole process — the rest of this guide covers how to do it cleanly, what to check when the field list looks wrong, and how to avoid the mistakes that make pivot tables behave strangely.

What You'll Need

  • Excel for Windows, Excel for Mac, or Excel for the web. The steps below are written for the desktop versions; the web version has the same Insert > PivotTable entry point but a reduced set of options.
  • A worksheet of data where the first row contains column headers (for example Date, Region, Product, Salesperson, Amount).
  • No completely blank rows or columns inside the data range.
  • No merged cells in the header row or in the data body.

Menu labels can differ slightly by Excel version, device and region, so if you do not see an exact label named here, look for the closest equivalent on the same tab.

Step-by-Step

  1. Clean the source data first. Delete blank rows and columns, unmerge any merged cells, and make sure every column has a unique header. A header must not be blank, because Excel will otherwise name the column something generic like Column1 and your field list becomes hard to read.
  2. Convert the range to a Table (recommended). Select any cell in the data and press Ctrl+T (Windows) or Command+T (Mac), confirm the range and that “My table has headers” is ticked, then click OK. This makes the pivot table expand automatically when you add rows later. If you skip this step, you must manually refresh and possibly re-select the range after adding data.
  3. Click any single cell inside the data. Do not select the whole sheet and do not select multiple separate ranges — a pivot table needs one contiguous block of data.
  4. Go to Insert > PivotTable. In the dialog that opens, confirm the Table/Range box shows the correct range or table name.
  5. Choose the location. Select “New Worksheet” for a clean starting point, or “Existing Worksheet” and click a cell if you want it beside your data. New Worksheet is safer because it avoids overwriting anything.
  6. Click OK. Excel places an empty pivot table frame on the chosen sheet and shows the PivotTable Fields pane on the right. If the pane is missing, right-click the pivot table and choose Show Field List.
  7. Drag a field into Rows. For example, drag “Region” into the Rows area. Each unique region appears as a row label.
  8. Drag a field into Values. Drag “Amount” into Values. Excel sums numeric fields by default and counts text fields. To change this, click the field in the Values area, choose Value Field Settings, and pick Sum, Count, Average, Max or Min.
  9. Add Columns or Filters if needed. Dragging “Product” into Columns creates a cross-tab; dragging “Date” into Filters adds a report-level filter above the table.
  10. Format the numbers. Right-click any value, choose Number Format, and apply currency, percentage or thousands separators so the summary is readable.
  11. Refresh when the source changes. Click anywhere in the pivot table and press Alt+F5 (Windows) or use PivotTable Analyze > Refresh. On Mac, use the Refresh button on the PivotTable Analyze tab. If the source is a Table, the pivot picks up new rows on refresh; if it is a plain range, you may need to change the data source via PivotTable Analyze > Change Data Source.

Common Mistakes

  • Leaving blank header cells. Excel creates unhelpful field names and sometimes treats the first data row as a header.
  • Including totals inside the source range. A “Grand Total” row at the bottom gets treated as data and doubles your sums. Keep totals outside the source table.
  • Using merged cells. Merged headers break the field list and can cause “field name not valid” errors.
  • Forgetting to refresh. The pivot table does not update live; it shows a snapshot until you refresh.
  • Dragging the same field into Values twice. This creates duplicate columns; remove one from the Values area.
  • Expecting text to sum. Text fields default to Count, which is correct — do not force a Sum on a text column.

Tips

  • Name your source Table (Table Design > Table Name) so the pivot’s data source is easy to identify later.
  • Use Slicers (PivotTable Analyze > Insert Slicer) for clickable filters instead of drop-downs — they are easier to read and can be connected to multiple pivot tables.
  • Group dates by right-clicking a date field in the Rows area and choosing Group, then selecting Months, Quarters or Years.
  • If you need a static copy, copy the pivot table and use Paste Special > Values; the copy will not refresh.
  • Keep one pivot table per sheet when starting out; overlapping pivot tables cause “pivot table cannot overlap” errors.

Troubleshooting

The PivotTable Fields pane is empty or missing. Click inside the pivot table and check PivotTable Analyze > Field List. If the source range is wrong, use Change Data Source and reselect the correct range or table.

“PivotTable field name is not valid” error. This almost always means a blank header cell or a merged cell in the header row. Unmerge and fill every header, then recreate the pivot table.

Numbers show as Count instead of Sum. The column contains text, blanks or errors. Clean the column so every cell is numeric, then set Value Field Settings to Sum.

The pivot table will not refresh or shows old data. Confirm the source range includes the new rows. If the source is a plain range, extend it via Change Data Source or convert the range to a Table.

“A PivotTable report cannot overlap another PivotTable report” error. Move the existing pivot table or place the new one on a new worksheet.

Dates group incorrectly or not at all. Check that the date column is stored as real dates, not text. Select the column and use Data > Text to Columns or format the cells as Date.

Frequently Asked Questions

Can I add a pivot table from data on another sheet?

Yes. When inserting, type or select the range on the other sheet in the Table/Range box, or use an Excel Table name. The source can be on any sheet in the same workbook.

Does a pivot table update automatically when I change the source data?

No. You must refresh it (Alt+F5 on Windows, or the Refresh button on the PivotTable Analyze tab). If the source is a Table, new rows are included after refresh; a plain range may need its data source updated.

Can I add more than one value field?

Yes. Drag additional numeric fields into the Values area. Each appears as a separate column, and you can set a different summary function for each.

Why does my pivot table show blank rows?

Blank rows usually come from blank cells in the source column used in Rows. Filter them out in the source or tick “Hide blanks” where available in the field settings.

Can I delete a pivot table without affecting the source data?

Yes. Select the entire pivot table and press Delete. The source data stays intact; only the summary is removed.

Is a pivot table available in Excel for the web?

Yes, Insert > PivotTable exists in Excel for the web, but some advanced options such as certain calculated fields and slicer connections may be limited compared with the desktop app.