How to create a PivotTable in Excel
To create a PivotTable in Excel, select a cell in your source data and choose Insert → PivotTable. Arrange fields in Rows, Columns, Values and Filters to summarize the same data in different ways. Use the sample below to calculate sales by region and product.
Prepare the source data
Enter the following data starting at A1. Give each column a unique, nonblank header and put one sale per row. Leave out subtotal rows and merged cells, and check that Excel stores Sales as numbers. If you expect to add rows, press Ctrl+T inside the data to make an Excel table and confirm that the table has headers.
| Region | Product | Year | Sales |
|---|---|---|---|
| North | Adapter | 2025 | 120 |
| North | Cable | 2025 | 80 |
| South | Adapter | 2025 | 60 |
| South | Cable | 2025 | 150 |
| South | Cable | 2026 | 40 |
Create a PivotTable from the source
- In desktop Excel for Windows, select a cell in the dataset and choose Insert → PivotTable. Depending on your version, choose From Table/Range if prompted.
- Check that Table/Range shows your Excel table name or the source range A1:D6 with headers. Select New Worksheet and confirm. Excel creates an empty PivotTable and opens the field list. If the list is hidden, click inside the report.
Microsoft’s guide to creating a PivotTable
Put the report on an existing worksheet
- To place the report on an existing sheet, select Existing Worksheet in the creation dialog and specify a cell with room around it. For instance, use A1 on a summary sheet so the report can grow without overlapping other data.
- You can also begin from the empty destination cell. If Table/Range is blank when the dialog opens, select all the source data including its headers or enter the table name.
Use the external-data option and choose a connection when your source is an existing connection. Check that you selected the intended table or connection and know how it refreshes.
PivotTables that use an external file and how they refresh
Arrange Rows, Columns, Values and Filters
In PivotTable Fields, drag Region to Rows, Product to Columns, Sales to Values and Year to Filters. In Value Field Settings, check that Sales uses Sum. The sample grand total is 450. Excel may display the entries in a different order from the example.
| Region | Adapter | Cable | Grand Total |
|---|---|---|---|
| North | 120 | 80 | 200 |
| South | 60 | 190 | 250 |
| Grand Total | 180 | 270 | 450 |
Filter Year to 2025 alone and check that the total is 410. Switch back to All to restore the full total. If Excel shows Count instead of Sum, check for sales figures stored as text. Convert them to numbers, refresh, then set the summary to Sum.
Refresh and check changes to the source
Add one row at the bottom of the Excel table with North, Cable, 2026 and 30. Right-click inside the PivotTable and choose Refresh. With the year filter set to All, the grand total should become 480.
If the new record is missing, check whether the source is a fixed cell range. Use PivotTable Analyze → Change Data Source to extend the range, then refresh. Even in versions that support automatic refresh, check that the new figure has reached the report.




