Stop Power Query from Inserting Rows into Adjacent Excel Tables
Question details
The user wants to prevent an expanding Power Query table from inserting new rows into an adjacent calculation table, which causes formula misalignment and #REF! errors.

- Product
- Microsoft Excel
- Device & OS
- not provided
- Scenario
- Refreshing or expanding a Power Query table located next to an independent table containing formula calculations.
- Observed behavior
- Newly inserted rows from the query table push down the cells in the adjacent table, breaking INDEX/MATCH references and generating blank outputs or #REF! errors.
Ensure your Power Query data is fully refreshed and back up your workbook to prevent accidental loss of complex formulas in your adjacent tables.
Modify External Data Properties for Row Insertion
Change how the query table handles incoming data rows so it overwrites cells instead of shifting adjacent table structures.
By default, Power Query tables may insert entirely new rows into the worksheet when new data is fetched. Modifying the table's External Data Properties ensures that adjacent data stays static.
Right-click any cell inside your loaded Power Query table in the Excel worksheet, then navigate to Table > External Data Properties.
Look for the settings that control how new rows are handled. Change the selection from inserting new rows to overwriting existing cells or clearing unused cells.
Manually extend the range of your adjacent calculation table to match the maximum expected rows of the query output, ensuring INDEX/MATCH formulas update correctly.

Move Calculations into Power Query
Eliminate the need for an adjacent calculation table by building your formula logic directly into the Power Query Editor.
Manage Data seamlessly with WPS Office
If you are tired of dealing with complex data connection errors and formula misalignments in Excel, try WPS Office. It provides a lightweight, highly compatible alternative for everyday data analysis and spreadsheet management without slowing down your computer.
- 1. Download and Install: Get WPS Office for free from the official website and complete the quick installation process.
- 2. Open Your Workbook: Launch WPS Spreadsheet and open your existing .xlsx file to continue analyzing your data securely.
- 3. Manage Formulas Easily: Use the familiar formula bar and built-in function library to maintain your calculation tables seamlessly.

Frequently Asked Questions
Why do formulas return #REF! when my Power Query table refreshes?
When a Power Query table is set to insert entire rows for new data, it physically pushes adjacent cells down. This structural shift can break direct cell references in neighboring tables, resulting in #REF! errors.
Can I keep my calculation table entirely separate from the query table?
Yes. By changing the External Data Properties of the query table to 'Overwrite existing cells' instead of 'Insert entire rows', your adjacent calculation table will remain structurally intact during data refreshes.
Is it better to calculate data in Power Query or in the worksheet?
Generally, performing calculations inside Power Query is more robust. It prevents layout-based formula errors, keeps the data source unified, and ensures everything is processed reliably before being loaded into the worksheet.




