How to Use Pivot Tables in Excel: Step-by-Step

Charts & pivot tables · Updated November 23, 2026

Pivot tables are Excel’s fastest way to summarize, analyze, and explore large datasets without writing a single formula. In a few clicks you can turn thousands of rows into a compact summary table, group data by category, and switch views by dragging fields. This guide walks you through creating, customizing, and troubleshooting pivot tables in Microsoft Excel for Microsoft 365 on Windows. Mac shortcuts are noted where they differ.

What You’ll Need

  • Excel 2016 or later (Microsoft 365 recommended for the latest features).
  • A dataset formatted as a table or a contiguous range with column headers in the first row. No blank rows or columns inside the data.
  • Each column should contain one type of data (e.g., dates in one column, amounts in another). Avoid merged cells.

Step-by-Step

  1. Prepare your data. Ensure every column has a unique header. If you have a blank row or column within the range, remove it. Convert the range to an Excel table by selecting any cell and pressing Ctrl+T (Mac: Cmd+T). This makes future updates easier.
  2. Select any cell inside your data. Click anywhere in the range or table. Do not select the entire sheet.
  3. Insert the pivot table. Go to Insert > PivotTable. In the dialog, confirm the range is correct. Choose New Worksheet to keep things clean, or Existing Worksheet and pick a location. Click OK.
  4. Understand the PivotTable Fields pane. On the right, you’ll see a list of your column headers (fields). Below that are four areas: Filters, Columns, Rows, and Values.
  5. Add a field to Rows. Drag a categorical field (e.g., “Region” or “Product”) to the Rows area. Each unique value becomes a row in your pivot table.
  6. Add a field to Values. Drag a numeric field (e.g., “Sales” or “Quantity”) to the Values area. By default, Excel sums numeric fields. The pivot table now shows totals per row category.
  7. Add a field to Columns. Drag another categorical field (e.g., “Year” or “Quarter”) to the Columns area. This creates a cross-tabulation with those values as column headers.
  8. Add a field to Filters. Drag a field (e.g., “Status”) to the Filters area. A dropdown appears above the pivot table, letting you filter the entire report by that field.
  9. Change the value calculation. Click the arrow next to the field name in the Values area, choose Value Field Settings, and pick a different function like Count, Average, Max, or Min. Click OK.
  10. Refresh when data changes. If you edit the source data, right-click anywhere in the pivot table and choose Refresh, or press Alt+F5 (Mac: Cmd+Option+F5). To refresh on file open, go to PivotTable Analyze > Options > Data and check “Refresh data when opening the file.”
  11. Group dates or numbers. Right-click a date or numeric field in the Rows area, choose Group, and select options like months, quarters, or ranges. Click OK.
  12. Sort and filter within the pivot. Click the dropdown arrow on a row or column label to sort A to Z, or filter to specific items. For top 10, use the Value Filters submenu.
  13. Format the pivot table. Click anywhere in the pivot, then go to PivotTable Design and choose a style. To show grand totals or turn them off, right-click the pivot and select PivotTable Options > Totals & Filters.
  14. Create a pivot chart. With the pivot selected, go to PivotTable Analyze > PivotChart. Choose a chart type. The chart updates when you refresh or change the pivot.

Common Mistakes

  • Blank rows or columns in the source data. Excel may not detect the full range. Use Ctrl+T to create a table, or manually adjust the range in the PivotTable dialog.
  • Dragging text fields to Values. Excel will count them instead of sum. That’s fine if you want a count, but if you expected a sum, check that the field is numeric and not stored as text.
  • Forgetting to refresh. Pivot tables do not auto-update when source data changes. Always refresh after editing.
  • Using merged cells in headers. This breaks field detection. Unmerge and repeat headers if needed.
  • Adding new rows outside the table range. If you didn’t convert to a table, new rows below the original range are ignored. Convert to a table first.

Tips

  • Use the Recommended PivotTables feature. Go to Insert > Recommended PivotTables for a quick start if you’re unsure which fields to use.
  • Double-click any value in the pivot to open a new sheet with the underlying detail rows. Great for auditing.
  • Enable “Defer Layout Update” at the bottom of the Fields pane when working with large data. Make all your field changes, then click Update.
  • Rename fields in the pivot by typing directly into the cell (e.g., change “Sum of Sales” to “Total Sales”). This is cosmetic and doesn’t affect the source.
  • Use slicers for interactive filtering. With the pivot selected, go to PivotTable Analyze > Insert Slicer and pick fields. Slicers are visual buttons that filter instantly.
  • Keyboard shortcut to create a pivot: Select a cell in your data and press Alt+N+V (Mac: Cmd+Option+P).

Troubleshooting

  • Pivot table shows “(blank)” — This means some cells in the source field are empty. Either fill them or filter them out using the row label dropdown.
  • Values show as counts instead of sums — The field is likely text. Convert the source column to numbers (select column, Data > Text to Columns > Finish, or use VALUE() in a helper column). Then refresh.
  • New rows added to source don’t appear — If you didn’t convert to a table, the pivot range is fixed. Convert to a table (Ctrl+T) and refresh. If using a table, new rows are included automatically after refresh.
  • “The PivotTable field name is not valid” — This usually means a header is missing or blank. Ensure every column has a unique, non-empty header.
  • Pivot table is slow with huge data — Try using the Data Model: check “Add this data to the Data Model” when creating the pivot. This compresses data and speeds up calculations.
  • Can’t group dates — The date column may contain text. Select the source column, go to Data > Text to Columns, choose Delimited, then Date (MDY), and Finish. Refresh the pivot.

Frequently Asked Questions

  • Can I use a pivot table with data on another sheet? Yes. In the Create PivotTable dialog, select the range on another sheet. If the data is in a table on another sheet, just select a cell in that table and insert a pivot.
  • How do I show percentages instead of totals? Right-click a value in the pivot, choose Show Values As, then select e.g., % of Grand Total or % of Column Total.
  • Why does my pivot table not update when I change the source? Pivot tables are not live. Right-click and choose Refresh, or set it to refresh on open via PivotTable Options > Data.
  • Can I copy a pivot table to another workbook? Yes, but the copied pivot will still reference the original source. Better to copy the source data and create a new pivot, or use the Data Model.
  • How do I remove a field from the pivot? Uncheck the field in the Fields pane, or drag it out of the area it’s in. The field disappears from the layout.
  • What is the difference between a pivot table and a regular table? A regular table (Ctrl+T) is just a structured range with filters. A pivot table summarizes and aggregates data dynamically. You can create a pivot from a regular table.

Related

Try it: the Percentage Formula Generator: percent of, percent change, increase and decrease, with the formula.

More in Charts & pivot tables

Sources: Function behaviour and menu paths: Microsoft Support documentation for Excel. Method & sources

Spotted an error in this guide? Let us know.