To change a pivot table range, select any cell within the pivot table, go to the PivotTable Analyze tab, click Change Data Source, and select the new range of cells. This process ensures that any new data added to your source sheet is captured in your summary reports.

Updating the data range is a critical maintenance task for anyone using spreadsheets to track growing datasets. If you add new rows of data to your source table but do not update the pivot table's range, the pivot table will continue to calculate based on the old boundaries, leading to outdated or incorrect reports. By adjusting the range, you tell the software exactly which cells to scan for information.

What You'll Need

  • A spreadsheet containing an existing pivot table.
  • A source data set (the original table) that has been expanded or moved.
  • The necessary permissions to edit the workbook.

Step-by-Step

  1. Select the Pivot Table: Click on any cell inside the existing pivot table. This action triggers the contextual tabs to appear in the top ribbon menu.
  2. Access the Analyze Tab: Look at the top menu bar. Click on the PivotTable Analyze tab (in some versions of Excel, this may simply be labeled Analyze or Options).
  3. Open Change Data Source: In the Data group of the ribbon, click the Change Data Source button.
  4. Select the New Range: A dialog box will appear showing the current range (e.g., Sheet1!$A$1:$G$100). You can either:
    • Type the new range manually into the text box.
    • Click the collapse button (the small arrow/square) and use your mouse to highlight the new area of the spreadsheet, including all headers and the new rows of data.
  5. Confirm the Selection: Once the correct range is highlighted or typed, click OK.
  6. Refresh the Data: While changing the range often updates the table automatically, it is best practice to right-click anywhere in the pivot table and select Refresh to ensure all calculations are current.

Common Mistakes

  • Including Blank Rows: Selecting too many empty rows at the bottom of your range can lead to a "(blank)" category appearing in your pivot table filters and row labels.
  • Missing Headers: Forgetting to include the top header row when selecting the new range will cause the pivot table to fail, as every column in a pivot source must have a unique header.
  • Selecting Entire Columns: While selecting entire columns (e.g., A:G) ensures you never have to change the range again, it can slow down performance in very large workbooks because the software scans millions of empty cells.
  • Changing Range for Only One Table: If you have multiple pivot tables based on the same data, changing the range for one does not automatically change it for the others unless they share the same "Pivot Cache."

Tips

  • Use Excel Tables: Instead of a standard cell range, convert your source data into an official Table (Ctrl + T). If a pivot table is based on a Table, it uses a "dynamic range." This means whenever you add a new row to the bottom of the table, the pivot table automatically includes it upon refreshing, eliminating the need to manually change the range.
  • Named Ranges: Create a "Named Range" for your data. If you update the definition of that name in the Name Manager, all pivot tables linked to that name will update their range simultaneously.
  • Check for Consistency: Before changing the range, ensure that no new columns were added in the middle of your data set, as this may shift your existing pivot fields and disrupt your report layout.

Troubleshooting

If the pivot table does not update or throws an error after you change the range, try these steps in order:

  1. Verify Headers: Ensure there are no merged cells in your header row and that every column has a text label. Pivot tables cannot function with empty headers.
  2. Check for Hidden Rows: Ensure you haven't accidentally selected hidden rows or columns that contain "ghost" data or errors (like #REF! or #VALUE!) which can distort your totals.
  3. Refresh All: Go to the Data tab and click Refresh All. This forces the application to re-scan all connected data sources in the workbook.
  4. Rebuild the Table: If the range continues to cause errors, the most reliable fix is to delete the pivot table and insert a new one using the correct range from the start.

Frequently Asked Questions

Why does my pivot table show "(blank)" after I changed the range?

This happens because you selected empty rows at the bottom of your data set. To fix this, either refine the range to end exactly at the last row of data or use the filter arrow in the pivot table to uncheck the "(blank)" option.

Can I change the range for multiple pivot tables at once?

Only if they were created from the same data source and share a cache. Otherwise, you must manually change the range for each pivot table individually.

Do I have to change the range every time I add a new row?

Yes, if you are using a standard cell range. However, if you format your source data as a Table (Insert > Table), the range becomes dynamic and updates automatically when you add data.

What happens if I change the range and some columns are missing?

If the new range excludes columns that were previously used in the pivot table, those fields will disappear from your Field List and the corresponding data will be removed from your report.

Is there a keyboard shortcut to change the data source?

There is no direct single-key shortcut for "Change Data Source," but you can use Alt shortcuts (Alt + J + T + R in many versions of Excel) to navigate the ribbon menu quickly.