How to Fix Power Query Creating a Blank Column After Refresh in Excel
Question details
The user needs to prevent or remove an unexpected blank column that appears next to an Excel table after refreshing a Power Query.

- Product
- Microsoft Excel
- Device & OS
- not provided
- Scenario
- Refreshing data through Power Query where the query structure or destination table range has been modified.
- Observed behavior
- An extra, empty column appears adjacent to or within the structured Excel table after the refresh operation completes.
Before modifying your query or table structure, ensure that your Power Query connections are fully loaded and that no background refresh is currently running.
Verify the Table Range and Identify the Blank Column
Determine if the blank column is officially part of the structured table or just adjacent leftover data from a previous refresh.
Because Power Query returns a structured table, any empty column belonging to the query should technically have a header. If the query structure changed, Excel might leave behind orphaned columns.
Examine the top cell of the blank column. See whether the header is retained from a previous refresh or is an automatically generated name (like 'Column1').
Select a cell outside your table and enter the formula =COLUMNS(MyTableName) (replace 'MyTableName' with your actual table name) to confirm the exact number of columns officially recognized by the table object.
If the formula indicates the extra column is inside the table but shouldn't be, navigate to the 'Table Design' tab, click 'Resize Table', and adjust the data range to exclude the blank column.
If the blank column is outside the table range but still visible on the sheet, right-click the column letter at the top of the worksheet and select 'Delete' to clear old data.

Review and Clean Up Columns in Power Query Editor
Ensure that the M code or query steps are not inadvertently generating an empty column before it loads into Excel.
Try WPS Office for Your Data Analysis Needs
If you frequently encounter issues with complex Excel queries or need a reliable, lightweight alternative for managing spreadsheets, WPS Office offers a powerful, user-friendly suite. It provides excellent compatibility with Microsoft formats and features robust data handling tools without the heavy resource footprint.

Frequently Asked Questions
Why does Power Query leave old data columns behind when the query shrinks?
When a Power Query refresh results in fewer columns than the previous load, Excel sometimes fails to delete the leftover columns on the worksheet if they fall outside the newly defined table range. Deleting them manually usually resolves the issue.
How can I find the exact name of my Power Query table?
Click any cell inside the loaded table, navigate to the 'Table Design' tab on the ribbon, and look at the 'Table Name' box located on the far left side of the menu.
Will refreshing the query overwrite my manual column deletions?
No. If you manually delete a stray column that is outside the structured table range, refreshing the query will only update the data within the actual table range defined by Power Query.
Does WPS Spreadsheet support similar data query functions?
WPS Spreadsheet provides various data import and data processing features to handle large datasets. While it handles complex data modeling differently than Excel's M-code based Power Query, it is highly compatible with standard Excel data files.




