Pivot Table Definition & How to Use One

Charts & pivot tables · Updated November 23, 2026

A pivot table is a data summarization tool that automatically sorts, counts, and totals data stored in a table or spreadsheet, letting you reorganize and display the same information in a new layout without altering the original data. In Excel and Google Sheets, you create one by selecting your data range and choosing the PivotTable option, then drag fields into rows, columns, values, and filters to instantly produce summaries like totals, averages, or counts.

What a Pivot Table Actually Does

Think of a pivot table as a dynamic report builder. It takes a flat list of records—say, sales transactions with columns for Date, Region, Product, and Revenue—and lets you group and aggregate those records in endless ways. The word “pivot” refers to rotating the data’s orientation: you can move a field from rows to columns to see the same numbers from a different angle. The underlying source data never changes; the pivot table only reads it and creates a separate summary view.

For example, with 1,000 sales rows, you can pivot to show total revenue by region, then drag the Product field into the Columns area to get a matrix of regions across products. Drag Date into the Rows area and group by month, and you have a monthly trend report. The same source data supports all these views—no formulas or copy-pasting required.

How a Pivot Table Is Built

In Microsoft Excel (Microsoft 365 on Windows), the process is:

  1. Click anywhere inside your data range (or select it).
  2. Go to Insert > PivotTable.
  3. In the dialog, confirm the range and choose where to place the pivot table (New Worksheet is usual).
  4. In the PivotTable Fields pane, drag fields into the four areas: Filters, Columns, Rows, and Values.

In Google Sheets, the path is Insert > Pivot table, then use the Pivot table editor on the right to add rows, columns, values, and filters. On Excel for Mac, the menu is Insert > PivotTable as well, but the field list appears in a side panel—drag fields the same way.

The Values area is where the math happens. By default, numeric fields are summed, and text fields are counted. Click the value field’s dropdown (or “Summarize by” in Sheets) to change to Average, Count, Max, Min, or a custom calculation like % of Grand Total.

Why Use a Pivot Table Instead of Formulas

You could write SUMIFS or COUNTIFS formulas to get the same totals, but pivot tables are faster and more flexible. With formulas, adding a new filter means editing the formula; with a pivot table, you just drag a field in or out. Pivot tables also handle multiple dimensions at once—for instance, showing both region and product category in the same table—which would require complex nested formulas.

Another advantage: pivot tables are interactive. Users can expand and collapse groups, drill into details, and apply slicers (visual filter buttons) to change what’s shown instantly. This makes them ideal for dashboards and ad-hoc analysis.

Choosing the Right Aggregation

The Values field defaults to Sum for numbers, but that’s not always correct. If your data contains duplicate records, a sum might double-count. For example, if you have a list of customers with a “Number of Orders” column, summing that column gives a meaningless total—you’d want Average or Max instead. Right-click a value field in Excel and choose Value Field Settings to change the summary type. In Google Sheets, click the dropdown next to the value field and pick “Summarize by.”

Common choices:

  • Sum – for revenue, quantity, or any additive measure.
  • Average – for prices, ratings, or per-unit metrics.
  • Count – for counting records or unique items (use “Count Distinct” in Sheets or “Distinct Count” in Excel’s Data Model).
  • Min/Max – for finding extremes like earliest date or highest score.

Common Problems and How to Fix Them

One frequent issue is blank or “(blank)” entries in row labels—this happens when the source data has empty cells in that field. Clean the data or fill blanks before creating the pivot table. Another issue: new rows added to the source data don’t appear in the pivot table because the range was fixed. Convert your data to an Excel Table (Ctrl+T) or use a named range; the pivot table will then refresh to include new rows. In Google Sheets, using a full column range (e.g., A:D) works but may include blank rows—filter them out.

If numbers show as text (left-aligned, green triangle), the pivot table can’t sum them. Convert text to numbers using the VALUE function or Text to Columns. Also, refreshing: after changing source data, right-click the pivot table and choose Refresh (or press Alt+F5 in Excel).

Pivot Tables vs. Other Tools

Pivot tables are often compared with:

  • Formulas (SUMIFS, COUNTIFS) – good for single summaries, but not for multi-dimensional cross-tabs.
  • Charts – pivot charts are linked to pivot tables and auto-update; standalone charts require manual updates.
  • Power Query – used for data cleaning and transformation, not summarization; you can load query results into a pivot table.
  • SQL GROUP BY – if your data is in a database, SQL can do similar grouping, but pivot tables are more interactive and require no code.

For large datasets (millions of rows), a normal pivot table may slow down. In Excel, use the Data Model (check “Add this data to the Data Model” when creating) to handle larger data and use distinct counts. In Google Sheets, pivot tables handle up to a few hundred thousand rows; beyond that, consider BigQuery or Sheets’ “Explore” feature.

Frequently Asked Questions

Can I create a pivot table from multiple sheets? Yes. In Excel, use the Data Model (Power Pivot) to combine tables, or use the “Multiple consolidation ranges” option in the PivotTable wizard (Alt+D+P). In Google Sheets, you’d need to combine data into one sheet first, or use the QUERY function to union ranges.

How do I show values as a percentage of the total? In Excel, right-click the value field, choose Show Values As > % of Grand Total. In Google Sheets, click the value field dropdown, select “Show as,” then “% of grand total.” This is useful for market share or budget allocation analysis.

Why does my pivot table not update when I change the source data? Pivot tables are not live—they store a snapshot. Click Refresh (Excel: Data tab > Refresh, or right-click > Refresh; Sheets: click the refresh button in the pivot editor). If you added new rows, you may need to update the source range or convert to a Table.

Can I sort or filter a pivot table? Absolutely. Click the dropdown arrows next to row or column labels to sort alphabetically or by values, and to filter specific items. Slicers (Excel) or filter controls (Sheets) give visual buttons for quick filtering.

Is a pivot table the same as a pivot chart? No. A pivot chart is a graphical representation of a pivot table’s data. When you create a pivot chart, it’s tied to the pivot table, so filtering the chart also filters the table, and vice versa.

What is the difference between a pivot table and a regular table? A regular table is just a structured range of data with filters and formatting. A pivot table is a separate summary object that aggregates data from a source range. You can have a pivot table built on top of a regular table—that’s a common best practice.

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.