A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data
Dear @Joe J,
From description and my research, this is a very common Excel issue, especially in Microsoft 365 and recent versions after a workbook has been renamed, copied, or saved as a new file. As a forum moderator, I genuinely wish I could directly access your account or delve into the backend systems to diagnose and fix this for you. However, our role here is limited to providing general guidance and solutions that can be applied by users.
The good news is that this issue is usually easy to fix. Please try the steps below, which resolve most cases like this:
Fix the PivotTable data source reference
- Click any cell inside one of your PivotTables.
- Go to the PivotTable Analyze tab (or Options tab in older Excel) → Change Data Source.
- In the dialog box, look at the Table/Range field. It will probably show something like:'[OldPayrollFileName.xlsx]YourDataSheet'!$A$1:$Z$10000orOldFileName.xlsx!Table1
- Manually delete the old filename part (including the square brackets [ ] and the exclamation mark if it appears right after). Leave just the sheet name + range, for example:YourDataSheet!$A$1:$Z$10000(Or better click the small arrow button on the right of the box and re-select your current data range with the mouse on the actual sheet.)
- Click OK.
- Go to the Data tab > Refresh All.
Repeat for any other PivotTables that still error (or just do Refresh All again ,most share the same cache and will update).
If the Change Data Source dialog won't open or immediately errors, try these in order:
Force a fresh reference with Save As
- File > Save As > give it a completely new name (e.g., PayrollAnalyzer_v2.xlsx).
- Close the file completely.
- Re-open the new file and try Change Data Source again. This often resets the internal reference.
Prevent the issue in the future by using an Excel Table
- Go to your raw payroll data sheet.
- Select the entire data range (including headers).
- Press Ctrl + T (or Insert > Table) > OK.
- In the Table Design tab that appears, change the Table Name to something clear like PayrollRawData.
- Now go back to each PivotTable > Change Data Source > instead of a range, type or select your new table name (PayrollRawData).
- Refresh All.
Adding new rows in the future is now automatic, just paste below the table and refresh. No more range adjustments.
If the issue still persists:
- Copy your raw data sheet to a brand-new blank workbook.
- Create fresh PivotTables from that clean data.
- Copy your existing PivotTable layouts over (or rebuild the fields, usually quick once the source is clean).
- Delete the old broken PivotTables.
Additional checks (if needed)
- Data tab > Queries & Connections. If you see the old filename listed, select it and click Break Link.
- File > Info > Check for Issues > Inspect Document (remove any old document properties or links).
- As a last resort: File > Open > browse your file > click the arrow next to Open > Open and Repair.
After applying these steps, especially removing the old filename reference or switching to an Excel Table, you should be able to add new payroll rows, refresh the data, and generate your cost‑center reports without issues.
I hope this information is helpful. Please follow these steps and let me know if it works for you. If you have any questions or need further assistance, please feel free to share them in the comments so I can continue to support you. Thank you for your patience and understanding. I'm looking forward to your reply.
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.