Pivot Table Issues

Find the End of Newly Pasted Data and Update Pivot Tables in Excel

Chanuka GeekiyanageChanuka Geekiyanage Dec 2, 2026 868 views

Question details

Find the last row of newly pasted data and keep pivot tables updated when the number of records changes.

Find the End of Newly Pasted Data and Update Pivot Tables in Excel
Product
Microsoft Excel
Device & OS
not provided
Scenario
A database range is replaced with a new set of records, and existing pivot tables need to use the updated data.
Observed behavior
The user wants to locate the end of the new records efficiently and ensure the pivot tables include the current data range.
Before you start

Make sure the new data has the same column headers as the existing pivot table source. Identify a column that has a value in every record if you want to use a keyboard shortcut to find the last row.

Solution 1Recommended

Use an Excel Table as the Pivot Table Source

Use a table to make the pivot table source easier to maintain when the number of records changes.

1
Create a table

Select the database range, including its headers, and choose Insert > Table. Confirm that My table has headers is selected, then click OK.

2
Connect the pivot tables

Select an existing pivot table, open PivotTable Analyze > Change Data Source, and enter the table name shown on the Table Design tab. Repeat for each pivot table that uses the database.

3
Replace the records

Select the old table data rows, right-click, and choose Delete > Table Rows, leaving the headers in place. Paste the new records beneath the matching headers.

4
Check the table range

Select a table cell and choose Table Design > Resize Table if the pasted records are not all included. Set the range to include the headers and every new record.

5
Refresh the pivot tables

Choose Data > Refresh All to update the pivot tables with the current table data.

Use an Excel Table as the Pivot Table Source
Check the source once: An existing pivot table must use the table as its source; converting the database to a table alone may not change an existing pivot table's source.
Work with pivot tables in WPS Spreadsheets

Update a Pivot Table After Pasting New Data in WPS Spreadsheets

Use WPS Spreadsheets to paste replacement records, adjust the pivot table source range, and refresh the results.

  1. 1. Open the workbook: Open WPS Spreadsheets and choose Open to select your Excel workbook.
  2. 2. Replace the data: On the source worksheet, remove the old records while keeping the headers, then paste the new records under the matching columns.
  3. 3. Update the source range: Select the pivot table, open the PivotTable Tools options, and choose Change Data Source. Select the headers and all newly pasted records, then confirm the range.
  4. 4. Refresh the results: Select the pivot table and choose Refresh from the PivotTable Tools options. Repeat the source check and refresh for other pivot tables that use the data.
Update pivot tables when the number of pasted records changesOpen and edit Microsoft Excel XLSX and XLS filesWork in a familiar spreadsheet interfaceUse WPS Office for free
microsoft office alternative - wps office

Frequently Asked Questions

Why doesn't my pivot table include the newly pasted rows?

The pivot table may still point to a fixed range that ends above the new rows. Select the pivot table and choose PivotTable Analyze > Change Data Source to check the range, then refresh it.

Do Excel pivot tables refresh automatically when I paste new records?

Not necessarily. After replacing the source data, choose Data > Refresh All. If the source is a fixed range, update that range first.

How can I tell whether all pasted rows are part of my Excel Table?

Click a cell in the table and choose Table Design > Resize Table to inspect the range. If needed, extend the range to include the headers and all pasted records.

Can I find the last row if my data contains blank cells?

Use a column that is populated for every record. In Excel for Windows, enter the bottom cell of that column in the Name Box and press Ctrl+Up Arrow; unrelated values below the records can make the result misleading.