How to Make a Pivot Table in Excel and Google Sheets
To make a pivot table in Excel or Google Sheets, select source data with column headers, choose Insert > PivotTable or Pivot table, and assign fields to Rows and Values. The result groups records and calculates summaries such as category totals without requiring a separate formula for each category.
On this page▾
- What a pivot table actually does
- What your source data needs to look like first
- Building a pivot table in Excel
- Building a pivot table in Google Sheets
- Keeping it updated when your data changes
- A simple first project to try
- Frequently asked questions
- How do I make a pivot table in Google Sheets?
- How do I make a pivot table in Excel?
| Practice category | Source amounts | SUM result |
|---|---|---|
| Food | 12 and 8 | 20 |
| Travel | 5 | 5 |
| Grand total | 12, 8, and 5 | 25 |
What a pivot table actually does
Microsoft's documentation describes a PivotTable as a tool for summarizing, analyzing, exploring, and presenting data, listing specific capabilities including "subtotaling and aggregating numeric data, summarizing data by categories and subcategories" and "moving rows to columns or columns to rows (or 'pivoting') to see different summaries of the source data." Google's help documentation gives a simpler framing: pivot tables let you "narrow down a large data set" and "see relationships between data points," with the specific example of analyzing "which salesperson produced the most revenue for a specific month."
In both cases, the underlying idea is the same: instead of scrolling through hundreds or thousands of raw rows, you tell the pivot table which columns to group by and which numbers to add up, and it creates a compact summary. Keeping that summary current after editing the source is a separate step that depends on the platform and refresh settings.
What your source data needs to look like first
Microsoft recommends organizing the source in columns with a single header row of unique, nonblank labels. Its overview also advises against blank rows or columns within the data range. Google states the header requirement directly: "Each column needs a header."
Use one descriptive label per column so the field list identifies the data you want to group or summarize. Microsoft also advises against mixing data types in a column. In particular, check that an amount column contains numbers rather than text: Excel uses SUM by default for numeric Values fields, but COUNT if it interprets the data as text.
Splitting one column of text into several is covered in Text to Columns in Excel and Google Sheets (Formulas).
Building a pivot table in Excel
Microsoft's documented steps for Excel:
- Select the cells containing your source data, including the header row. These steps follow Microsoft's Excel for Windows instructions.
- Go to the Insert tab and choose PivotTable.
- Confirm the source range, choose New Worksheet or Existing Worksheet for the report location, and select OK.
- In the PivotTable Fields pane, select the checkbox next to each field name you want to include.
Once fields are added, Microsoft's documentation explains the default placement logic: "non-numeric fields are added to Rows, date and time hierarchies are added to Columns, and numeric fields are added to Values." You can drag any field to a different area afterward if the default placement is not what you want.
Building a pivot table in Google Sheets
Google's documented steps:
- Select the cells containing your source data (remembering that every column needs a header).
- In the menu, click Insert, then Pivot table.
- In the side panel, next to "Rows" or "Columns," click Add and choose a field.
- Next to "Values," click Add and choose the numeric field you want summarized.
Google's documentation also notes that Sheets sometimes shows recommended pivot tables based on the selected data. You can choose one under Suggested rather than arranging every field manually.
Keeping it updated when your data changes
Excel and Google Sheets do not have the same refresh behavior. In Excel, you can right-click inside the PivotTable and select Refresh after changing its source data. Microsoft also documents a Refresh data when opening the file setting in PivotTable Options > Data.
Microsoft's refresh documentation identifies PivotTable Auto Refresh as available to Microsoft 365 Insider participants. For supported local-workbook sources, it can refresh when the source changes. If that feature is unavailable or disabled, use Refresh rather than assuming an edit has reached the summary. Excel therefore does not universally require manual refresh, nor does every Excel installation automatically refresh on edits.
The source range matters separately. Microsoft's overview says an Excel table used as a PivotTable source includes new and updated table data when the PivotTable refreshes. Refreshing a fixed source range does not make rows outside that range part of the report.
Google states that a Sheets pivot table refreshes whenever you change the source data cells it draws from. Edits within that source range therefore update automatically. If new records fall outside the selected range, change the range using Select data range in the pivot table editor. New rows already inside the source range do not need a range expansion merely because they are new.
A simple first project to try
A small practice dataset can use a list of expenses with columns for date, category, and amount. Build a pivot table with category in Rows and amount (summarized by SUM) in Values. For a numeric example, suppose Food has expenses of 12 and 8, and Travel has one expense of 5. With SUM selected, the category totals are Food 20 and Travel 5, and the grand total is 25. Compare those totals with the source before adding more fields. If Excel shows Count of Amount instead, check the data types and the summary calculation.
Frequently asked questions
How do I make a pivot table in Google Sheets?
Select the source cells (every column needs a header), click Insert > Pivot table, then in the side panel click Add next to Rows or Columns and next to Values. Sheets may also offer recommended pivot tables under Suggested.
How do I make a pivot table in Excel?
Select the source data including the header row, go to Insert > PivotTable, confirm the range and where to put the report, then tick the fields in the PivotTable Fields pane. Non-numeric fields go to Rows and numeric fields to Values by default.
Sources
About this guide
Howlane operator · Checked against the official sources listed above. It is general information, not professional advice.
AboutEditorial standardsCorrectionsReport an error
Edit history
- Updated
- Updated
- Updated
- Updated
- Published