logo
search
Power Query Problems

Fix Excel Power Query Keeping Deleted Source Rows After Refresh

Maira MehtabMaira Mehtab Sep 30, 2026 873 views

Question details

The user is experiencing an issue where Excel Power Query successfully adds new rows during a refresh but fails to remove rows that were deleted from the source table.

Fix Excel Power Query Keeping Deleted Source Rows After Refresh
Product
Microsoft Excel
Device & OS
not provided
Scenario
Refreshing a Power Query connected to an Excel table after deleting rows from the source data.
Observed behavior
Newly added rows appear correctly after a workbook refresh, but deleted rows persist in the query output.
Before you start

Ensure that you have saved your workbook and that the rows you intend to delete are completely removed from the actual Excel table range, rather than just clearing their cell contents.

Solution 1Recommended

Verify Source Table Range and Refresh Query Preview

The most common reason deleted rows reappear is that they were cleared instead of deleted, or they still exist within the defined boundary of the source table.

Power Query reads the entire defined table range. If you only press the 'Delete' key on your keyboard, the cell contents are cleared, but the blank rows remain part of the table object.

1
Properly delete table rows

Open your source worksheet, select the rows you want to remove, right-click, and choose 'Delete' > 'Table Rows' to completely remove them from the table object.

2
Verify table boundaries

Check the bottom-right corner of your formatted Excel table. Ensure the small resize handle is immediately after your last row of actual data.

3
Launch Power Query Editor

Go to the 'Data' tab on the Excel ribbon and click 'Get Data' > 'Launch Power Query Editor'.

4
Refresh preview manually

In the Power Query Editor, go to the 'Home' tab and click 'Refresh Preview' to force the editor to pull the latest table state.

5
Close and load

Click 'Close & Load' in the top left corner to apply the updated query preview to your workbook.

Verify Source Table Range and Refresh Query Preview
Current Workbook Source: If your query source is set to =Excel.CurrentWorkbook(), ensure there are no duplicated, backup, or hidden tables in the workbook that might be feeding old data into the query.
Free Microsoft Office alternative

Try WPS Office for Seamless Data Management

If you are tired of complex query errors, caching issues, and extensive troubleshooting in Microsoft Excel, consider switching to WPS Office. It provides a lightweight, highly compatible, and user-friendly spreadsheet environment for all your daily data management needs.

  1. 1. Download and install: Visit the official WPS website and click 'Download WPS Office Free' to install the suite on your device.
  2. 2. Open WPS Spreadsheet: Launch the application and select 'Spreadsheet' from the home screen.
  3. 3. Import your files: Click 'Open' or simply drag and drop your existing Excel workbooks into the workspace to continue working seamlessly.
Fully compatible with Microsoft Excel formats including .xlsx, .xls, and .csv.Lightweight architecture ensuring fast loading and smooth data processing without lag.Familiar, easy-to-use interface with no steep learning curve for data management tasks.Completely free basic version offering powerful and reliable spreadsheet functionalities.
microsoft office alternative - wps office

Frequently Asked Questions

Why does Power Query add new rows but keep deleted ones?

This typically occurs if the rows in the source Excel table were only cleared of their contents (using the Delete or Backspace key) rather than completely removed using the 'Delete Table Rows' command. Power Query reads the blank rows as part of the table.

Does using =Excel.CurrentWorkbook() affect how rows are refreshed?

Yes. Using =Excel.CurrentWorkbook() pulls in all tables or named ranges present in the current file. If you have backup copies of tables, hidden worksheets, or overlapping named ranges, the query might pull in the old deleted rows from those other sources without you realizing it.

How do I force Power Query to completely clear its cache?

You can clear the cache by opening the Power Query Editor, navigating to File > Options and settings > Query Options. Under the 'Global' section, select 'Data Load' and click the 'Clear Cache' button.