Power Query Problems

How to Keep Excel Formula Columns Updated After Power Query Refresh

Kushani NimanthikaKushani Nimanthika Nov 11, 2026 868 views

Question details

The user needs formulas placed next to a Power Query output table to automatically update and fill down to new rows when the data is refreshed.

How to Keep Excel Formula Columns Updated After Power Query Refresh
Product
Excel
Device & OS
not provided
Scenario
Refreshing a Power Query dataset in an Excel worksheet where adjacent formula columns exist.
Observed behavior
Formula columns placed outside the Power Query output table do not fill down to new rows, and fixed cell references break or become unreliable when the table size changes.
Before you start

Before making changes, verify that your Power Query connection is successfully established and perform a test refresh to observe how the table boundaries currently behave.

Solution 1Recommended

Add Formulas Inside the Table Using Structured References

Incorporate your formula directly into the Power Query output table and use structured references. This ensures Excel treats the formula as part of the table object, automatically expanding it to new rows.

Excel Tables have an auto-expansion feature for calculated columns. If a formula is placed immediately adjacent to the table, Excel usually absorbs it. By using structured references (e.g., referencing column names instead of cell coordinates like A2), the formulas dynamically adapt as the Power Query table shrinks or grows during a refresh.

1
Select the adjacent column

Click the first cell immediately to the right of your Power Query output table's data range.

2
Enter the formula using structured references

Type your formula. Instead of typing fixed cell references like 'C2', click the cell in the table so Excel inputs the structured reference, which looks like '[@ColumnName]'.

3
Apply and expand

Press Enter. The table will automatically expand to include this new column, and the formula will fill down to the bottom of the table.

4
Refresh your query

Right-click anywhere inside the Power Query table and select 'Refresh'. The formula column will now automatically extend or contract along with the new data rows.

Add Formulas Inside the Table Using Structured References
Structured References Advantage: Using structured references prevents #REF! errors that often occur when standard cell references are overwritten or deleted during a background data refresh.
Free Microsoft Office alternative

Manage Complex Spreadsheets Seamlessly with WPS Office

If you frequently encounter broken formulas, table reference issues, or heavy resource usage in Excel, consider switching to WPS Office. It provides a highly compatible, lightweight spreadsheet environment that perfectly handles structured tables, complex formulas, and extensive datasets.

  1. 1. Download and Install WPS Office: Get the free installation package from the official WPS website and install it on your device.
  2. 2. Open your Spreadsheet: Launch WPS Spreadsheet and easily open your existing .xlsx files without losing table formatting.
  3. 3. Manage Data and Formulas: Utilize the built-in table features and structured references to keep your complex data accurately updated.
Fully compatible with Microsoft Excel formats (.xlsx, .xls, .csv).Seamlessly handles structured table references and dynamic auto-filling formulas.Lightweight application with a familiar interface, ensuring zero learning curve.Free built-in data analysis tools that process large datasets efficiently.
microsoft office alternative - wps office

Frequently Asked Questions

Why do standard cell references break when Power Query refreshes?

Standard fixed references (like A2*B2) point to exact spatial coordinates on the sheet. When Power Query refreshes, it often deletes the old rows and loads new ones. This deletion causes the fixed formulas pointing to those cells to return a #REF! error because the original cells technically no longer exist.

How do I know if my formula is inside the Excel Table?

Click on the cell containing your formula. If the 'Table Design' tab appears in your Excel ribbon, the cell is successfully included inside the table bounds. If it does not appear, the column is outside the table and will not auto-fill upon refresh.

What is a structured reference?

A structured reference is a special syntax used by Excel Tables to reference data by column names rather than cell addresses. For example, '=[@Price]*[@Quantity]' calculates the row's values dynamically, making it immune to typical row insertion or deletion errors.

Can I prevent Power Query from adjusting column widths on refresh?

Yes. Click anywhere inside your Power Query output table, go to the 'Table Design' tab, click 'Properties', and uncheck the 'Adjust column width' box. This keeps your custom formatting intact during data updates.