To adjust a pivot table range, click anywhere inside the pivot table, go to the PivotTable Analyze tab, select Change Data Source, and highlight the new range of cells. This process ensures that any new data added to your source sheet is captured in your summaries and calculations.
Adjusting the range is necessary when your original dataset grows—for example, when you add new monthly sales figures or new client entries to the bottom of a list. If you do not update the range, the pivot table will continue to analyze only the original block of cells, ignoring all new information.
What You'll Need
- A spreadsheet containing an existing pivot table.
- The source data sheet (the original list of data the pivot table is pulling from).
- Clear headers for every column in your source data.
Step-by-Step
- Select the Pivot Table: Click on any cell within the pivot table. This action activates the contextual tabs in the top ribbon menu. Note that labels and menu names may differ slightly depending on your software version or operating system.
- Open the Analyze Menu: Look at the top ribbon and click on the PivotTable Analyze tab (in some versions, this may simply be called Analyze or Options).
- Access Change Data Source: In the "Data" group of the ribbon, click the Change Data Source button. A small dropdown may appear; select Change Data Source... again from that list.
- Modify the Range: A dialog box will appear showing the current range (e.g.,
Sheet1!$A$1:$G$100). You can update this in two ways:- Manual Entry: Type the new cell coordinates directly into the Table/Range box.
- Mouse Selection: Click the collapse button (the small arrow/grid icon) at the end of the text box, then use your mouse to click and drag over the entire new data area, including the headers.
- Confirm the Selection: Once the correct range is highlighted or typed, click OK.
- Refresh the Data: While changing the source usually updates the table, it is best practice to right-click anywhere inside 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 cause "(blank)" to appear as a category in your pivot table filters and rows.
- Missing Headers: If you expand the range to include new columns but forget to give those columns a header name, the software will trigger an error stating the pivot table field name is invalid.
- Selecting Only Data: A common error is selecting only the numbers and forgetting to include the header row. Pivot tables require the top row of the range to contain labels.
- Overlapping Ranges: Accidentally selecting a range that includes the pivot table itself will cause a circular reference error. Ensure the source data and the pivot table are on separate sheets or far apart on the same sheet.
Tips
- Use Tables for Automation: Instead of a standard cell range, format your source data as an official Table (Ctrl + T on Windows). If the pivot table is linked to a Table name rather than a cell range, it will automatically expand whenever you add new rows, eliminating the need to manually "Change Data Source."
- Dynamic Named Ranges: For advanced users, creating a named range using the OFFSET and COUNTA functions allows the pivot table to detect the exact end of the data automatically.
- Check Your Filters: After adjusting the range, check your Slicers or Report Filters. New data categories may be hidden if you have specific filters active.
Troubleshooting
If the pivot table does not update after you change the range, try these steps in order:
- Force a Refresh: Right-click the pivot table and select Refresh. This is the most common fix for data that seems "stuck."
- Verify the Range: Go back to Change Data Source and look closely at the cell references. Ensure you haven't accidentally shifted the range (e.g., starting at A2 instead of A1).
- Check for Hidden Rows: If data is missing, check if there are hidden rows or filters applied to the source data sheet that might be confusing your selection.
- Clear Pivot Cache: If the old data persists even after a range change, try removing the fields from the pivot table layout and dragging them back in from the Field List.
Frequently Asked Questions
Why does my pivot table show "(blank)" after I changed the range?
This happens because you selected empty cells at the bottom or side of your data range. To fix this, either adjust the range to fit the data exactly or use the filter dropdown in the pivot table to uncheck the "(blank)" option.
Can I change the data source to a different sheet entirely?
Yes. When the Change Data Source dialog box is open, you can click on a different worksheet tab and select a new range of data there.
Do I have to change the range every time I add one row of data?
If you use a standard cell range, yes. However, if you convert your source data into a Table (Insert > Table), the pivot table will automatically include any new rows added to that table upon refreshing.
What happens if I delete a column that was part of the original range?
The pivot table will likely show an error or a "Ref!" error because it can no longer find the field it was told to track. You will need to go to Change Data Source to redefine the range or remove the deleted field from the pivot table fields list.
Will changing the range delete my current pivot table layout?
No. Changing the data source only changes where the information is coming from; it does not reset your rows, columns, or value settings, provided the column headers remain the same.