Find the End of Newly Pasted Data and Update Pivot Tables in Excel
Question details
Find the last row of newly pasted data and keep pivot tables updated when the number of records changes.

- 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.
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.
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.
Select the database range, including its headers, and choose Insert > Table. Confirm that My table has headers is selected, then click OK.
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.
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.
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.
Choose Data > Refresh All to update the pivot tables with the current table data.

Find the Last Data Row in a Populated Column
Use this shortcut when you need to locate the end of the pasted records before checking or changing a source range.
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. Open the workbook: Open WPS Spreadsheets and choose Open to select your Excel workbook.
- 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. 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. 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.

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.




