Productivity & Work

How to Use Pivot Tables in Excel

Owned and published by DLTutu, an independent app-guide publisher. Editorial policy · Sources · Report a correction

Quick answer

Open your data in Excel for Windows, Mac, or the web, make sure each column has a heading, and select the table. On desktop, choose Insert > PivotTable, pick a worksheet, confirm the range, then drag fields into Rows, Columns, Values, and Filters. Start with a field such as Sales and set its summary to Sum. The first setup is a tidy table with unique headers, no blank rows, and consistent values.

Key takeaways

  • YesA PivotTable summarizes a clean source table without requiring a formula for every grouping.
  • YesFields are placed into Rows, Columns, Values, and Filters to define the report layout.
  • YesSelecting any cell inside the source data lets Excel propose the range for the PivotTable.
  • YesYou must refresh a PivotTable after changing its source data unless an established connection refreshes it for you.
  • YesSlicers add clickable controls for filtering the whole PivotTable without using worksheet formulas.
  • YesExcel for Windows, Mac, and the web support the main PivotTable workflow, while phone apps offer a more limited editing experience.

An Excel PivotTable groups records into summaries without a formula for every grouping. Learn how to summarize data, compare totals, and filter a report from a clean table. It suits sales, staffing, inventory, survey, and project data when you want totals, comparisons, and filters. The guide explains how to place fields in Rows, Columns, Values, and Filters, choose a summary such as Sum, and build the report in Excel for Windows, Mac, or the web.

Begin by removing blank rows, merged cells, repeated headings, and subtotal or grand-total rows. Keep dates, names, and categories consistent so Excel can group them accurately. It also covers refreshing changed data, grouping records, adding slicers, and avoiding blank categories, incorrect totals, and stale results.

What is Excel PivotTables and how does it work?

An Excel PivotTable is a report that summarizes a source table by rearranging and grouping its fields. A source table is the original list of records, usually stored on a worksheet. A field is one column, and the Field List is the pane where you add fields to the PivotTable. The Rows area creates grouped line items, while the Columns area places a second grouping across the report. The Values area calculates numbers with functions such as Sum, Average, Count, or Max, and the Filters area restricts the entire report. PivotTables can be refreshed when the source changes, but they do not update unless a connection refreshes them or you refresh them manually.

Before you start

  • YesInstall Excel from the official Microsoft 365 apps site using Install apps, or from the Mac App Store on Mac, or use Excel for the web through the official Microsoft 365 site.
  • YesFor Excel for the web, sign in with a Microsoft account; desktop use requires a qualifying Microsoft 365 or Excel license.
  • YesUse a computer or browser for the full beginner-to-intermediate workflow, because the phone apps provide a more limited PivotTable editing experience.
  • YesPrepare a worksheet containing one record per row, unique column headings, and consistent entries.

How to use Excel PivotTables, step by step

Checked against the official pages: [1][2][3][4]

  1. Install official Excel

    Install Microsoft Excel by signing in to the official Microsoft 365 apps site and selecting Install apps, or on Mac download it from the Mac App Store and activate it with a Microsoft 365 subscription. Alternatively, open the official Microsoft 365 site and choose Excel for the web. Sign in with a Microsoft account and open the workbook containing your source data. Avoid third-party programs presented as separate PivotTable apps, because PivotTables are already built into Excel.

  2. Prepare the source table

    Place all records in a contiguous worksheet range. Give every column a short, unique heading in the first row, and keep one record on each row. Remove blank rows, merged cells, repeated headings, and existing subtotal or grand-total rows. Keep dates, names, and categories in consistent formats so Excel can group them accurately.

  3. Select the data range

    Save the workbook as an .xlsx file if it will be shared with other Excel users. Click any single cell inside the source table so Excel can detect the surrounding range. Check that the selected range includes the headings and every record. Avoid selecting several nonadjacent areas because Excel may create a less useful source range.

  4. Insert the PivotTable

    In Excel for Windows or Mac, choose Insert > PivotTable from the ribbon, then choose New Worksheet to separate the report from the source data, or Existing Worksheet and select the cell where it should begin. In Excel for the web, choose Insert > PivotTable to open the Insert PivotTable pane, then use Create your own PivotTable and choose a new or existing sheet. Confirm your choice to create the PivotTable and its field controls.

  5. Verify the source range

    Review the table or range shown in the Create PivotTable dialog before confirming it. Make sure it contains the column headings and excludes blank or unrelated rows. If the range is incorrect, cancel the dialog, select one cell inside the correct table, and insert the PivotTable again. The Field List should display every source column as a usable field.

  6. Add row fields

    Drag a categorical field such as Department, Product, or Team into the Rows area. The Field List appears on the right in desktop versions, while Excel for the web uses the PivotTable Fields pane beside the worksheet. Arrange multiple row fields in the order you want them nested, and place the most important grouping first. Read the resulting labels to confirm that each field contains the values you intended to summarize.

  7. Calculate a value

    Drag a numeric field such as Sales or Quantity into the Values area. Confirm that its summary function is appropriate, such as Sum, Average, Count, or Max. If a field contains identifiers rather than quantities, use Count instead of Sum. Use Value Field Settings to rename the output and apply the required number format.

  8. Add column fields

    Drag a second categorical field, such as Region or Channel, into the Columns area. Excel places each column combination across the PivotTable and calculates the values at the intersections. Keep the structure simple until you understand how the row and column hierarchies interact. Remove an unwanted field by dragging it out of its area or using the field dropdown.

  9. Filter the report

    Drag a field that should control the whole report into the Filters area. Use the dropdown above the PivotTable to select one or more categories. A filter affects all values in the PivotTable rather than only one row or column. Clear the filter when you want to see the full dataset again.

  10. Format the layout

    Open PivotTable Design to adjust the report layout, grand totals, and overall appearance. Use Value Field Settings to control number formatting without changing the source values. Choose Report Layout when you prefer a table-like arrangement for easier reading and copying. Save the workbook after checking that headings, totals, and filters are clearly labeled.

  11. Refresh changed data

    After editing the source table, right-click the PivotTable and choose Refresh. Use Data > Refresh All when several reports in the workbook need to update. If the source range has grown, open PivotTable Analyze > Change Data Source and select the expanded range. Refresh also updates summaries affected by changes elsewhere in the source table.

  12. Group and drill down

    To group monthly records into broader periods, right-click the relevant field in the PivotTable and choose Group. Excel groups the selected labels according to the options you choose. Double-click a subtotal to create drill-down worksheets containing the records behind that total. Use Show Values As when you need running totals or differences instead of ordinary sums.

  13. Add a slicer

    Click inside the PivotTable, then on the PivotTable Analyze tab select Insert Slicer and tick the fields that should become filter controls. Click an item in the slicer to filter the report, and hold Ctrl (Command on Mac) to select several items. To connect the slicer to another PivotTable built on the same data, select the slicer and use Report Connections on the Slicer tab. Slicers are useful because they provide clear, reusable controls for people who will use the workbook.

Key Excel PivotTables features explained

1

Field List

The Field List contains every column from the source table and places fields into the report layout. Use it to add, remove, reorder, rename, and filter fields without editing formulas.

2

Rows and Columns

Rows and Columns define the two grouping levels used to arrange the PivotTable. Nesting fields creates a hierarchy, while deeper hierarchies can make the report harder to read.

3

Values

Values are the calculated results shown in the PivotTable body. A field can use Sum, Average, Count, Max, Min, and other summary functions, with each value labeled according to its function.

4

Filters

A filter restricts the complete PivotTable to selected field values. It is useful for isolating a team, product group, channel, or other category before you inspect the results.

5

Refresh and grouping

Refresh updates the report after the source data changes, while grouping combines related labels into broader categories. These functions keep the PivotTable useful as the underlying dataset changes.

6

Slicers

A slicer provides clickable buttons for filtering a PivotTable. It is especially helpful in shared workbooks because users can change the view without editing worksheet formulas or using the filter menus.

Tips & shortcuts

  • Select one cell inside the source table instead of manually highlighting every column, and Excel will usually detect the range correctly.
  • Use a descriptive field name in the source table, because the PivotTable often uses that heading as the visible label.
  • Right-click a subtotal and choose Show Details to inspect the records behind an aggregated result.
  • Use PivotTable Design > Subtotals to hide or show subtotals when they make a hierarchy difficult to scan.
  • Choose Show Values As > Running Total when you need cumulative figures within each grouped category.
  • Keep most reports to one or two row fields and one or two column fields before adding more hierarchy.
  • Move the most important grouping above less important fields in the Rows or Columns area so the report reads in a logical order.
  • Name important values clearly in Value Field Settings; otherwise labels such as Sum of Sales or Count of Orders may be less informative than needed.

Common mistakes to avoid

  • Blank or merged cells in the source table create blank categories, so clean the range before inserting the PivotTable.
  • Adding a text field to Values produces a count instead of the intended total, so check that the summary function matches the field.
  • Including subtotal rows from another report in the source data can double-count records, so remove those rows first.
  • Forgetting to refresh leaves old totals on screen, so refresh after every relevant source-data change.
  • Building a complex PivotTable on a phone makes field placement harder, so use Excel for Windows, Mac, or the web for full editing.

Troubleshooting

The Insert > PivotTable command is unavailable

Open the workbook in desktop Excel with permission to edit it, and check whether the sheet or workbook is protected. On the Review tab, select Unprotect Sheet, or clear Protect Workbook, and enter the password if one was set, but only if you own the file or have the creator's permission. If the workbook is open in Excel for the web, make sure you are in editing mode or open an editable copy in desktop Excel.

Totals are zero, incorrect, or unexpectedly counted

Check the function shown for each field in Values, because Excel may be using Count rather than Sum. Inspect the source cells to confirm that numbers are stored as numbers rather than text, and exclude subtotal rows that were included in the original range.

The PivotTable shows blank categories

Return to the source table and remove empty cells, stray spaces, repeated headings, and inconsistent entries. In the PivotTable's row-label filter, clear the option labeled Blank if it remains selected. Refresh the report after cleaning the source.

The Field List is missing

Click inside the PivotTable to activate it, then right-click and choose Show Field List. In Excel for the web, look for the PivotTable Fields pane beside the worksheet instead. If a slicer or another object is selected, click an empty PivotTable cell before trying to add fields.

New source records do not appear

Open PivotTable Analyze > Change Data Source and expand the selected range to include the new records. Refresh the PivotTable after correcting the range. Converting the source to an Excel table can also help it expand predictably, provided the table contains no total rows.

Privacy & safety

Use the Review tab's sheet and workbook protection controls to keep sensitive workbooks and shared spreadsheets secure. Protect Sheet can prevent accidental changes to the source data or PivotTable layout, but anyone with edit access may still be able to bypass weak protection. Inspect Data > Queries & Connections before refreshing linked data, because a refresh may contact an external service. Leave external-content security prompts enabled instead of automatically approving every connected source. Install Excel only from the official Microsoft 365 apps site using Install apps, or from the Mac App Store on Mac, because separate programs claiming to be required PivotTable utilities are unnecessary and may be scams.

Sources

These are the developers' and platforms' own pages we checked this guide against. What an app does is taken from them; which app suits whom is our editorial judgement. Links open the official site.

  1. Protect a worksheet support.microsoft.com
  2. Use slicers to filter data 249f966b a9d5 4b0f b31a 12651785d29d support.microsoft.com
  3. Create a pivottable to analyze worksheet data a9a84538 bfe9 40a9 a8e9 f99134456576 support.microsoft.com
  4. Download install or reinstall microsoft 365 or office 2024 on a pc or mac support.microsoft.com

Related AI guides: How to Use Microsoft Copilot · Best AI for Excel · Best AI for Data Analysis

Frequently asked questions

Are Excel PivotTables free?

PivotTables do not require a separate purchase; they are built into Excel. Excel for Windows and Mac requires a qualifying Microsoft 365 or Excel license, while Excel for the web offers free basic use after you sign in with a Microsoft account. Check the official Microsoft 365 site for current access options. You can practice the basic process without buying a separate add-in.

Are Excel PivotTables safe?

Yes, Excel PivotTables are safe when you use the official app and trusted files. The PivotTable summarizes data inside your workbook and does not publish it. Refresh operations can contact linked data sources, so review external connections before running them. Never install a separate PivotTable utility from an unsolicited link because genuine PivotTables are already included in Excel.

What is the difference between PivotTables on iPhone and Android?

Use Excel for Windows, Mac, or the web rather than choosing between phone apps for full PivotTable creation. Excel for iPhone and Android can open workbooks and display completed PivotTables, but their touch interfaces provide a less straightforward field-layout workflow for beginners. Build and edit the report on a computer, then use the phone app to review or share it. Neither phone app is required for this guide.

Can I use Excel PivotTables on a computer?

Yes. Excel PivotTables are designed for Excel on Windows and Mac, and Excel for the web provides the same core workflow in a browser. The desktop ribbon includes PivotTable Analyze and Design tools, while the web version presents the source data, PivotTable, and field controls together. A computer or browser is the recommended platform for the complete beginner-to-intermediate process.

What are the four areas in a PivotTable?

The four main areas are Rows, Columns, Values, and Filters. Put categorical fields in Rows to create grouped line items, and add another grouping in Columns for cross-tab comparisons. Put numeric fields in Values to calculate Sum, Average, Count, or another summary. Put a field in Filters when a selection should restrict the entire PivotTable.

How do I update an Excel PivotTable after changing the data?

Refresh the PivotTable after changing its source table. Right-click the report and choose Refresh, or use Data > Refresh All when several reports in the workbook need updating. If added rows fall outside the original range, open PivotTable Analyze > Change Data Source and select the expanded range first. Then refresh again and verify that the totals reflect the new records.

Can I make a chart from a PivotTable?

Yes. Select a cell inside the PivotTable, choose Insert > PivotChart in Excel for Windows or Mac, and select the chart type. Excel creates a chart linked to the PivotTable rather than a separate chart based only on the currently visible cells. Changing the PivotTable filters or layout updates the linked chart, making it useful for interactive summary reporting.

Why are there blank items in my PivotTable?

Blank items usually mean the source table contains empty cells, stray spaces, repeated headings, or inconsistent text. Clean those records and remove subtotal rows before building the PivotTable. If the blanks remain, use the row-label filter and clear the option labeled Blank. Refresh the report afterward to apply the corrected source data.

Can one PivotTable use multiple source tables?

Yes, but a single flat table is simplest for most users. Excel can combine related tables through Power Query by using Data > Get & Transform, then joining them with a matching key before loading the result. If you need model-based analysis, create a relationship in the Data Model and build the PivotTable from that model. The join must use a consistent matching key.

How can I use an Excel PivotTable to summarize data?

Use an Excel PivotTable to summarize a clean source table without adding a formula for every grouping. Give each column a unique heading, remove blank rows and repeated headings, and click one cell inside the table so Excel can identify the range. Insert the PivotTable, drag a numeric field such as Sales or Quantity into Values, and choose a summary function such as Sum, Average, Count, or Max. Add categorical fields to Rows or Columns to organize the totals.

Spotted something out of date? Report a change

Tell us what changed. We check every report against official sources before we update a guide — nothing is published automatically.

We store what you send to review it. See our privacy policy.