How to Keep Excel Formula Columns Updated After Power Query Refresh
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.

- 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 making changes, verify that your Power Query connection is successfully established and perform a test refresh to observe how the table boundaries currently behave.
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.
Click the first cell immediately to the right of your Power Query output table's data range.
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]'.
Press Enter. The table will automatically expand to include this new column, and the formula will fill down to the bottom of the table.
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.

Calculate the Column Directly in Power Query
Move the formula logic from Excel into the Power Query Editor so the calculation is performed before the data even loads into the worksheet.
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. Download and Install WPS Office: Get the free installation package from the official WPS website and install it on your device.
- 2. Open your Spreadsheet: Launch WPS Spreadsheet and easily open your existing .xlsx files without losing table formatting.
- 3. Manage Data and Formulas: Utilize the built-in table features and structured references to keep your complex data accurately updated.

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.




