Editing a pivot table means changing what data it shows and how it's organized

A pivot table in Excel is built from a snapshot of your data at the moment you create it. Once it exists, you can rearrange which columns appear where, swap out the numbers it's calculating, filter what shows up, and even add fresh data from your source sheet — all without rebuilding the table from scratch. The edits happen in the pivot table itself, not in the original data.

The most common edits are moving fields between areas (rows, columns, values), changing what calculation a field uses (sum to average, for example), and filtering to hide rows or columns you don't need to see. Less common but useful: refreshing the table when your source data changes, and adjusting the range it pulls from if you've added rows to the original sheet.

Key Takeaways

  • Drag field names in the PivotTable Fields pane (right side of Excel) to move them between rows, columns, and values areas, which instantly reorganizes what the table shows.
  • Double-click a field in the values area to change how it calculates — from sum to average, count, or other functions — without recreating the table.
  • Click the filter dropdown arrows in the pivot table itself to hide specific rows or columns, or use the Report Filter area at the top for quick filtering of the whole table.
  • Right-click the pivot table and select Refresh to update it when your source data changes, or expand the data range if you've added new rows to the original sheet.
  • Deleting a field from the PivotTable Fields pane removes it from the table; adding a field back by dragging it into an area brings it back in.

Moving fields to rearrange rows, columns, and values

The PivotTable Fields pane appears on the right side of your screen when you click anywhere inside a pivot table. It shows four drop zones at the bottom: Filters, Columns, Rows, and Values. Each field in your data appears as a draggable button above those zones.

To move a field, click and drag it from the list into one of the four zones. For example, if "Product" is in Rows and you want it in Columns instead, drag "Product" from the Rows box into the Columns box. The table reorganizes instantly. You can also drag a field directly out of a zone to remove it from the table, or drag it between zones to swap its position.

The Filters zone (top) creates dropdown buttons above the table that let you filter the entire pivot table by that field. The Rows zone puts field values down the left side. The Columns zone puts them across the top. The Values zone holds the numbers being calculated — usually sums, but you can change that.

Changing what calculation a field uses

By default, Excel sums numeric fields. If you want to see an average, count, minimum, maximum, or another calculation instead, double-click the field name in the Values zone. A dialog box opens called "Value Field Settings."

In that dialog, the "Summarize Values By" tab shows a list of functions. Click "Average" if you want the mean instead of the sum, or pick "Count" to see how many entries exist in each group. Click OK and the pivot table updates to show that calculation instead.

You can have the same field appear multiple times in the Values zone with different calculations — for example, both the sum and the average of sales. Just drag the field into the Values zone twice, then set each copy to a different function.

Filtering rows and columns in the table

Every field in the Rows and Columns zones gets a small dropdown arrow in the pivot table itself. Click that arrow to open a filter menu. Uncheck the items you want to hide, then click OK. The table hides those rows or columns without deleting them.

If you've put a field in the Filters zone, a dropdown appears above the pivot table. Use it to show only data for one product, one region, or whatever that field represents. This filters the entire table at once, rather than hiding individual rows.

To show hidden items again, click the dropdown arrow and check the boxes you unchecked, or select "All" to restore everything at once.

Refreshing the table when source data changes

A pivot table does not update automatically when you change numbers in the original sheet. You have to refresh it manually. Right-click anywhere inside the pivot table, then click "Refresh" from the menu. Excel recalculates all the sums, averages, and counts based on the current data.

If you've added new rows to your source data and want the pivot table to include them, you need to expand the data range. Right-click the pivot table, select "Pivot Table Options," then go to the "Data" tab. You'll see a "Select a table or range" field showing the current range — for example, "Sheet1!$A$1:$E$100". Edit that range to include your new rows, then click OK and refresh.

Alternatively, convert your source data to an Excel table first (select it and press Ctrl+T). Then build the pivot table from that table. Excel will automatically expand the pivot table's range when you add rows to the table.

Adding or removing fields from the pivot table

To add a field that isn't currently in the table, find it in the field list at the top of the PivotTable Fields pane and drag it into one of the four zones. It appears in the table immediately.

To remove a field, drag it out of its zone, or right-click it in the zone and select "Remove Field." The field stays in your source data — you're only removing it from the pivot table view.

If you accidentally remove a field, you can add it back the same way: drag it from the field list into a zone again.

Changing the pivot table's name and location

Excel names pivot tables automatically (PivotTable1, PivotTable2, and so on). To rename one, right-click it and select "Pivot Table Options." In the dialog, change the name in the "Name" field at the top, then click OK.

To move a pivot table to a different sheet, right-click it, select "Move PivotTable," and choose where you want it. You can move it to an existing sheet or a new one. The table itself moves; your source data stays where it is.

Frequently Asked Questions

Can I edit the numbers inside a pivot table directly?

No. Pivot tables are read-only for their calculated values. You must change the source data and refresh the table. However, you can edit labels and field names in some cases — right-click a cell and look for "Edit Value" or similar options, though this is rarely needed.

What happens if I delete a row or column from the pivot table?

You cannot delete individual rows or columns from a pivot table the way you would from a regular sheet. Instead, use the filter dropdown to hide them. If you want them gone permanently, remove the field from the PivotTable Fields pane, or delete the entire pivot table and rebuild it without that field.

How do I add a calculated field to a pivot table?

Right-click the pivot table, select "Pivot Table Options," go to the "Calculations" tab, and choose "Fields, Items & Sets" then "Calculated Field." You can then write a formula that combines existing fields — for example, multiplying Quantity by Price to get Total. The calculated field appears in the field list and can be dragged into any zone.

Can I undo changes to a pivot table?

Yes. Press Ctrl+Z to undo your last edit, just as you would in the rest of Excel. You can undo multiple steps by pressing Ctrl+Z repeatedly. However, once you close and reopen the file, you cannot undo changes from the previous session.

What if the PivotTable Fields pane is not showing?

Click anywhere inside the pivot table. The pane should appear on the right. If it doesn't, right-click the table and select "Show Field List." If that option is grayed out, you may have clicked outside the table — click back inside it and try again.