Sub topic 11
Keeping the Pivot Table Current as Data Grows
Assume you know how to create a pivot table, assign fields to Rows and Values, and use basic Google Sheets formulas. This chapter focuses on the source range: the cells that the pivot table reads.
Why new records can be missing
A pivot table can reflect edits to cells inside its source range. However, adding records below the original range does not always expand that range automatically.
For example, suppose the pivot table uses Sales!A1:E100. If you add a new sale in row 101, that record is outside the source range. The pivot table will not include it until you change the source range or rebuild the pivot table.
Changes to existing records inside rows 1 through 100 are different. Those edits normally flow into the pivot table automatically.
Use a source range that can grow
When creating a pivot table, choose a source range with room for future rows. An open-ended range includes all current and future rows in the selected columns.
For a sheet named Sales, you could use:
Sales!A1:EThis means “start at row 1 and continue through column E.” Keep the header row in row 1. Every later row should represent one record.
Whole-column ranges, such as Sales!A:E, can also accommodate new rows. An open-ended range beginning at the header is often clearer because it documents where the table starts.
To change an existing pivot table:
- Click any cell in the pivot table.
- Open the Pivot table editor.
- Find the Data range or source-range setting.
- Replace the fixed range, such as
Sales!A1:E100, with an expanding range such asSales!A1:E. - Check that the field names and values still appear correctly.
Keep the source data consistent
A pivot table identifies fields from the header row. Do not leave header cells blank, duplicate field names, or place a second header row in the middle of the data.
Use one record per row. Avoid merged cells, subtotals, and decorative headings inside the source range. Keep numbers stored as numbers and dates stored as dates. A value that looks like 125 but is stored as text may be counted instead of summed.
If another process appends rows, confirm that it writes into the columns covered by the source range. A new column, such as Discount, is not automatically available to a pivot table whose range ends at column E. Expand the range to include that column, then add the field in the editor.
Check that the pivot is current
After adding records, inspect the source range and compare a known total with a formula. For example:
=SUMIFS(Sales!E:E, Sales!B:B, "West")Compare this result with the West total in the pivot table. If the formula includes more rows than the pivot table, update the pivot's source range.
Exercise
A pivot table uses Sales!A1:E100, but a new West sale is entered in row 101. What should you check first?
Show answer
Check the pivot table's source range. Expand it to include row 101, preferably by using Sales!A1:E, then compare the updated total with SUMIFS.