How to change a pivot table after you create it
Once you build a pivot table, you can change what data it shows, how it's organized, and what calculations it performs — without rebuilding it from scratch. The steps differ slightly between Excel and Google Sheets, but both let you add or remove fields, rearrange rows and columns, and adjust the values the table displays.
The fastest way to edit depends on what you want to change. If you're moving fields around or swapping which data appears in rows versus columns, you'll use the field list panel. If you're filtering data, changing how numbers are calculated, or adjusting labels, you'll right-click directly on the pivot table itself.
Key Takeaways
- In Excel, click anywhere in the pivot table, then use the PivotTable Fields panel on the right to add, remove, or rearrange fields.
- In Google Sheets, right-click the pivot table and select "Edit pivot table" to open the editor where you can modify rows, columns, values, and filters.
- To change how a field is calculated — from sum to average, for example — right-click the field name in the pivot table and select the calculation type you want.
- Filtering a pivot table works differently than filtering a regular spreadsheet; you click the filter icon next to field names in the table itself, not in the original data.
- If you need to include new rows from your source data, you must refresh the pivot table rather than edit it, because pivot tables don't automatically expand when data is added below.
Editing a pivot table in Excel
Click anywhere inside the pivot table. The PivotTable Fields panel appears on the right side of the screen. This panel shows all the fields from your original data source, divided into four zones: Filters, Columns, Rows, and Values.
To add a field to the pivot table, drag it from the field list into one of the four zones. For example, dragging "Region" into the Rows zone adds Region as a row header. To remove a field, drag it out of its zone or right-click it and select "Remove Field". To move a field between zones — say, from Rows to Columns — drag it to the new zone.
If the PivotTable Fields panel doesn't appear, go to the PivotTable Analyze tab (or Design tab in older Excel versions) and click Field List. If you're working in Excel Online, the panel may appear as a sidebar instead of a floating window.
Editing a pivot table in Google Sheets
Right-click anywhere in the pivot table and select Edit pivot table. The pivot table editor opens on the right side. You'll see sections for Rows, Columns, Values, and Filters, each with the fields currently assigned to it.
To add a field, click Add next to the section where you want it (Rows, Columns, or Values), then select the field name from the dropdown. To remove a field, click the X next to its name. To change the order of fields within a section, click and drag the field name up or down.
When you're done editing, click Insert or Update at the bottom of the editor. Google Sheets updates the pivot table immediately.
Changing how numbers are calculated
By default, pivot tables sum numeric fields. If you want to show an average, count, minimum, maximum, or another calculation instead, right-click the field name in the Values section of the pivot table.
In Excel, select Value Field Settings, then choose the calculation type from the Summarize Values By list. Common options are Sum, Average, Count, Min, and Max. Click OK.
In Google Sheets, click the field name in the Values section of the editor, then select the calculation from the dropdown that appears. The pivot table updates as soon as you make the selection.
You can use different calculations for different fields in the same pivot table. For example, you might sum sales revenue but average the number of units sold.
Filtering data in a pivot table
Pivot tables have their own filtering system separate from spreadsheet filters. Look for small dropdown arrows next to field names in the pivot table itself — usually in the row and column headers.
Click the dropdown arrow next to a field name to see all the unique values in that field. Uncheck the values you want to hide. For example, if Region shows North, South, East, and West, you can uncheck West to hide all rows for that region. Click OK to apply the filter.
In Excel, you can also add a field to the Filters zone in the PivotTable Fields panel. This creates a dropdown at the top of the pivot table that filters the entire table by that field.
In Google Sheets, add a field to the Filters section of the editor to create a filter dropdown above the pivot table.
Refreshing a pivot table when source data changes
Pivot tables don't update automatically when you add new rows to the original data. You must refresh the pivot table manually.
In Excel, click anywhere in the pivot table, go to the PivotTable Analyze tab, and click Refresh. You can also right-click the pivot table and select Refresh. If you added rows below the original data range, you may need to edit the data source range first — right-click the pivot table, select PivotTable Options, go to the Data tab, and update the range to include the new rows.
In Google Sheets, right-click the pivot table, select Edit pivot table, and click Update at the bottom. Google Sheets automatically detects new rows in the source data range.
Renaming fields and changing labels
To rename a field that appears in the pivot table, right-click the field name (in the header or in the field list) and select Rename. Type the new name and press Enter. This changes only the label in the pivot table, not the original column name in your data.
In Excel, you can also double-click a field name in the PivotTable Fields panel to rename it directly.
To change the label of a specific value — for example, renaming "Sum of Sales" to "Total Sales" — right-click the label in the pivot table and select Rename. This is useful for making the pivot table easier to read.
Frequently Asked Questions
Can I edit a pivot table after I've already created it?
Yes. Click the pivot table in Excel or right-click it in Google Sheets to access editing options. You can add or remove fields, change calculations, filter data, and rearrange the layout without starting over.
What's the difference between editing a pivot table and refreshing it?
Editing changes the structure or content of the pivot table — which fields appear, how they're organized, or what calculation is used. Refreshing updates the pivot table to include new rows you've added to the source data. Both are common tasks.
Why doesn't my pivot table show new data I added to the spreadsheet?
Pivot tables don't automatically expand when you add rows below the original data range. You must refresh the pivot table. In Excel, click Refresh on the PivotTable Analyze tab. In Google Sheets, right-click the pivot table, select Edit pivot table, and click Update.
How do I change a sum to an average in a pivot table?
Right-click the field name in the Values section of the pivot table. In Excel, select Value Field Settings and choose Average from the Summarize Values By list. In Google Sheets, click the field name in the editor and select Average from the dropdown.
Can I hide specific rows or columns in a pivot table?
Yes, using the filter dropdowns built into the pivot table. Click the arrow next to a field name in the row or column headers, uncheck the values you want to hide, and click OK. This is different from filtering a regular spreadsheet.