Pivot Table Description: What It Is & How to Use It

Charts & pivot tables · Updated November 23, 2026

A pivot table is an interactive data summarization tool in spreadsheet software like Microsoft Excel and Google Sheets that lets you reorganize, group, and aggregate large datasets by dragging fields into rows, columns, values, and filters—without altering the original data. It turns thousands of raw rows into a compact, readable summary (e.g., total sales by region or average score by category) in seconds.

Background: Why Pivot Tables Exist

Before pivot tables, summarizing data meant writing formulas like SUMIF or COUNTIF for every combination of categories, or manually sorting and subtotaling—both slow and error-prone. Pivot tables were popularized by Lotus Improv in the early 1990s, then brought to Excel in 1993 (Excel 5.0) where they became a standard feature. The name “pivot” comes from the ability to rotate (pivot) the data layout by dragging fields to different areas, changing the perspective instantly. They are now a core tool in business analysis, finance, and any field that works with tabular data.

How a Pivot Table Works: The Four Areas

Every pivot table is built from four drop zones, each with a specific role:

  • Rows – Fields placed here become row labels; each unique value appears as a row (e.g., product names).
  • Columns – Fields placed here become column headers (e.g., quarters).
  • Values – Numeric fields placed here are aggregated (sum, average, count, etc.) to produce the numbers in the table.
  • Filters – Fields placed here allow you to show only a subset of the data (e.g., a specific year).

The pivot table engine takes your raw data, groups it by the unique values in the row and column fields, then applies the chosen aggregation to the values field. For example, with sales data listing Region, Product, and Amount, dragging Region to Rows, Product to Columns, and Amount to Values (summed) gives a matrix of total sales per region per product. Changing the aggregation from Sum to Average or Count is a single click.

How to Create a Pivot Table in Excel (Microsoft 365)

Here are the exact steps for Excel on Windows (Mac steps are nearly identical; the ribbon is the same):

  1. Click anywhere inside your data range (make sure it has headers).
  2. Go to Insert > PivotTable (or press Alt+N+V on Windows, Cmd+Option+P on Mac).
  3. In the dialog, Excel automatically selects the table/range. Choose “New Worksheet” or “Existing Worksheet” and click OK.
  4. In the PivotTable Fields pane on the right, drag fields to the four areas described above. The table updates immediately.

In Google Sheets, the path is Insert > Pivot table, then choose a range and location. The field list appears on the right, and you add fields by clicking “Add” next to Rows, Columns, Values, or Filters.

Choosing the Right Aggregation and Layout

The default aggregation for numeric fields is Sum, but that may not always be what you need. Right-click any value in the pivot table and choose Value Field Settings (Excel) or Summarize by (Sheets) to switch to Count, Average, Max, Min, or more advanced options like Standard Deviation. For text fields, the default is Count.

Layout matters too. In Excel, under Design > Report Layout, you can choose “Compact,” “Outline,” or “Tabular.” Compact saves space, Tabular puts each field in its own column, which is often easier for further analysis. You can also turn on “Repeat All Item Labels” to fill in blank cells for readability. In Sheets, the layout is less customizable, but you can still reorder fields by dragging them in the field list.

Common Problems and How to Fix Them

Several issues trip up new users:

  • Blank or “(blank)” entries – These appear when your source data has empty cells in a field. Fix by filtering out blanks in the source or using a filter in the pivot table.
  • Values showing as “Count of” instead of “Sum” – This happens when the field contains text or blank cells. Ensure the column is truly numeric and has no blanks.
  • New rows not appearing after refreshing – If you added rows to your source data, the pivot table’s range may not include them. Convert your data to an Excel Table (Ctrl+T) before creating the pivot, or update the range in PivotTable Analyze > Change Data Source.
  • Pivot table not refreshing automatically – Right-click the pivot and choose “Refresh.” For automatic refresh on file open, set it in PivotTable Options.
  • Cannot move or resize cells inside a pivot – This is by design; pivot tables are dynamic. Use “Copy” and “Paste Values” to make a static snapshot if needed.

Comparing Pivot Tables with Other Tools

Pivot tables are often compared with Excel’s SUMIF/COUNTIF formulas and with Power Query. SUMIF formulas give you a static summary that updates when data changes, but they require writing a formula for each combination of categories—tedious for many groups. Power Query is a data transformation tool that can shape data before you summarize, but it doesn’t provide the interactive drag-and-drop layout of a pivot table. Pivot tables sit between them: they are interactive and require no formulas, but they don’t change the underlying data structure. For very large datasets (millions of rows), Power Pivot (an Excel add-in) uses a different engine and can handle more data, but for most users, a standard pivot table is sufficient.

Cost and Availability

Pivot tables are included in all desktop versions of Microsoft Excel, including the free Excel for the web (though some advanced features are limited). Google Sheets includes pivot tables for free with a Google account. No extra cost beyond the software itself. If you’re using Excel for the web, note that some features like “Show Values As” (e.g., % of column total) are available, but the “Value Field Settings” dialog is simplified; you may need to use the “Show values as” dropdown in the field list.

Frequently Asked Questions

Q: How do I group dates in a pivot table?
Right-click a date field in the pivot table, choose “Group” (Excel) or “Create pivot date group” (Sheets), then select days, months, quarters, or years. Excel automatically groups dates by month/year when you drag a date field to Rows, but you can customize it.

Q: Can I use a pivot table to count unique values?
Yes. In Excel, add the field to Values, then in Value Field Settings choose “Distinct Count” (available only if you add the data to the Data Model). In Google Sheets, use the “COUNTUNIQUE” summary type in the Values area.

Q: Why does my pivot table show “(blank)”?
It means there are empty cells in the field you placed in Rows or Columns. You can filter out “(blank)” by clicking the row/column label dropdown and unchecking it, or clean your source data.

Q: How do I refresh a pivot table when my data changes?
Right-click the pivot table and select “Refresh.” To refresh all pivot tables at once, go to Data > Refresh All (Excel) or use the refresh button in Sheets. If you added new rows, you may need to change the data source range first.

Q: Can I create a pivot table from multiple sheets?
Yes, but you need to combine the data first. Use Power Query (Excel) to append tables, or use the “Consolidate” feature (legacy) in Excel. In Google Sheets, you can use the QUERY function or manually combine ranges with curly braces, then create the pivot from the combined range.

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.