A pivot table in Excel is a small, separate grid that summarises a large data list — totals, counts, averages and percentages — without changing the original data. To put one in, click any cell inside your data, go to Insert > PivotTable, choose whether to place it on a new worksheet or an existing one, and click OK. Excel then shows an empty pivot area with a field list, and you drag fields into the Rows, Columns, Values and Filters areas to build the summary. Before you start, your data must be laid out as a clean table: one header row, no blank rows or merged cells inside the range, and every row a single record.
What You'll Need
- Excel for Windows or Mac (desktop), or Excel for the web. The desktop version shows a slightly different ribbon layout from the web version, and labels can differ a little by version, device or region.
- A data range that is already tidy: column headers in row 1, no gaps, no subtotal rows mixed into the data, and consistent entries (for example, the same spelling of a region name everywhere).
- Dates and numbers stored as real numbers, not text. A column of amounts left-aligned usually means they were typed or imported as text and will not sum correctly.
Step-by-Step
- Select your data. Click any single cell inside the data range. Excel automatically detects the surrounding block, so you do not need to highlight everything manually — but if the block has a blank column or row splitting it, you will need to select the full range yourself by dragging from the top-left to the bottom-right cell.
- Open the pivot table command. On the Insert tab, click PivotTable. If a small dropdown appears next to it, choose From Table/Range. Excel opens a dialog with your range already filled in.
- Check the source range. Confirm the address in the Table/Range box covers every column and row, including the header row. If it is wrong, correct it here or select the range again on the sheet.
- Choose where it goes. Pick New Worksheet for a clean start, or Existing Worksheet and click a cell location to place it beside your data. A new worksheet is the safer default because it gives the pivot room to grow.
- Click OK. You now see the empty pivot grid on the left and the PivotTable Fields pane on the right, listing every header from your data.
- Add a row field. Drag a field you want to group by — for example Region or Product — into the Rows area. It appears down the left side of the pivot grid. Alternatively, tick the checkbox next to the field name and Excel places it for you.
- Add a column field (optional). Drag a second grouping field into Columns for a cross-tab layout, such as Quarter across the top.
- Add the values. Drag a numeric field such as Sales into Values. Excel sums numbers and counts text automatically, so a text field dropped here becomes a count of records.
- Change how values are summarised. Click the field in the Values area and choose Value Field Settings (or right-click the numbers in the grid and pick the same command). Switch between Sum, Count, Average, Max and Min. The Show Values As tab turns the same figures into percentages of a total, a running total or a rank.
- Filter what you see. Drag a field into Filters to create a report-level filter above the pivot, or use the small dropdown arrow beside a row label to hide individual items.
- Format the numbers. In the Values field settings, click Number Format and choose currency, percentages or thousands separators so amounts read cleanly.
- Refresh after data changes. A pivot table does not update by itself when you edit the source cells. Right-click anywhere in the pivot and choose Refresh, or click Refresh on the PivotTable Analyze tab.
Common Mistakes
The most frequent problem is a source range that is too narrow. If rows added below the original data are ignored after a refresh, the pivot is still pointing at the old range. Turning your data into a real Excel Table first (select the data and press Ctrl+T, or **Insert > Table** on Mac) solves this permanently, because a pivot built on a table expands with it.
Second is mixed data types. Numbers stored as text produce a sum of zero, and dates stored as text refuse to group into months or quarters. Check for small green error triangles in the corner of cells and use Convert to Number from the warning that appears.
Third is dragging the wrong field into Values — for example putting Order ID there instead of Order Amount, which gives a count of orders rather than a sales total. Fourth is leaving blank cells in the header row, which forces Excel to invent names like Column1 and Column2. Finally, avoid editing cells inside the pivot grid by typing over them; those changes are wiped on the next refresh. Change the underlying data instead.
Tips
Give your pivot a sensible layout before you study the numbers: on the design options, switch off the field headers and banded rows if the grid feels cluttered, and consider Tabular Form under Report Layout when you plan to copy the results elsewhere.
Slicers make filtering far faster than dropdown arrows: with the pivot selected, insert a slicer for the fields you filter most often, and it will work as clickable buttons. Connect one slicer to several pivot tables if you build more than one summary from the same data.
Sort within the pivot by right-clicking a value and using the sort options — largest to smallest on a revenue column, for instance — rather than sorting the source data, which would change your original records. If you want to see the individual rows behind a number, double-click that number and Excel creates a new sheet listing the contributing records.
Keep one pivot table per sheet where possible, and place new pivots a few rows below any existing one with a blank gap, so growth does not overwrite neighbouring content.
Troubleshooting
The pivot is empty. Usually no field has been dropped into Values, or the dragged field is text and shows a count of blank items. Add a numeric field to Values.
Totals look wrong. Look for duplicate rows in the source data, subtotals included inside the range, or amounts stored as text. Select the range and use Remove Duplicates if duplicates are genuine errors.
Dates will not group by month. Right-click a date within the pivot and choose Group, then select Months and Years. If grouping is greyed out, the column contains text or blanks — clean it and refresh.
Refresh does nothing new. Confirm the range covers the new rows, or convert the data to a Table. If the file is set to manual calculation mode, press F9 to recalculate.
You get an error about overlapping cells. Place the pivot where there is clear space, or choose a new worksheet.
Field names look wrong. Rename the header in the source cell, then refresh — renaming inside the field list alone does not help in all versions.
Frequently Asked Questions
Does a pivot table change my original data?
No. It reads the source range and builds a separate summary. Edits inside the pivot grid are temporary and vanish on refresh; edit the source rows instead.
Can I build a pivot table on a Mac?
Yes. The commands sit on the same Insert tab, though the field pane and some dialog wording look slightly different from the Windows version.
Why does my pivot show Count instead of Sum?
Excel counts when the field holds text or contains even one blank or text entry. Change it under Value Field Settings, and clear the text entries if a sum is what you need.
How many pivot tables can I make from one dataset?
There is no practical limit for normal use. Each pivot is independent, so you can build several views of the same table on different sheets.
Can I update a pivot on a phone?
The Excel mobile app lets you view and refresh existing pivot tables, but creating and reshaping them is best done on a desktop or the web version.