Power Query Problems

Stop Power Query from Inserting Rows into Adjacent Excel Tables

Aamir Naveed AkramAamir Naveed Akram Oct 9, 2026 871 views

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.

How to Stop Power Query from Inserting Rows into Adjacent Excel Tables
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.
Before you start

Ensure your Power Query data is fully refreshed and back up your workbook to prevent accidental loss of complex formulas in your adjacent tables.

Solution 1Recommended

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.

1
Access External Data Properties

Right-click any cell inside your loaded Power Query table in the Excel worksheet, then navigate to Table > External Data Properties.

2
Change the Data Layout Option

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.

3
Adjust the Adjacent Table

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.

Modify External Data Properties for Row Insertion
Preserved Formula Integrity: Using alternative insertion options prevents additions and deletions in the query table from affecting your independent calculations.
Free Microsoft Office alternative

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. 1. Download and Install: Get WPS Office for free from the official website and complete the quick installation process.
  2. 2. Open Your Workbook: Launch WPS Spreadsheet and open your existing .xlsx file to continue analyzing your data securely.
  3. 3. Manage Formulas Easily: Use the familiar formula bar and built-in function library to maintain your calculation tables seamlessly.
Fully compatible with Microsoft Excel (.xlsx, .xls) and CSV formats.Robust support for advanced worksheet formulas, including INDEX and MATCH.Lightweight installation and smooth performance even with large datasets.Clean, intuitive interface with a familiar layout to minimize the learning curve.
microsoft office alternative - wps office

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.