Power Query Problems

Fix Power Query Errors When a Worksheet Name Changes in Excel

John WilsonJohn Wilson Nov 10, 2026 868 views

Question details

The user needs to fix Power Query navigation failures caused by imported Excel workbooks having altered worksheet names.

How to Fix Power Query When an Excel Worksheet Name Changes
Product
Power Query
Device & OS
not provided
Scenario
Importing data from an Excel workbook where the source worksheet name dynamically changes or gets renamed.
Observed behavior
Power Query fails to refresh or load data because the navigation step references a hardcoded worksheet name that no longer exists in the source file.
Before you start

Before modifying your query, identify the exact name of the new worksheet in your source Excel file and ensure no other structural changes were made to the data columns.

Solution 1Recommended

Update the Navigation Step to Match the New Worksheet Name

Manually edit the Power Query navigation step to reference the newly renamed worksheet in your source file.

When an imported workbook generates a new worksheet name (such as appending a number like 'ContentAuthorReport (3)'), Power Query loses its reference. You can fix this by updating the hardcoded name in the formula bar or Advanced Editor.

1
Open Power Query Editor

In Excel, go to the Data tab, click on 'Get Data', and launch the Power Query Editor for your broken query.

2
Locate the Navigation Step

In the 'Applied Steps' pane on the right, select the 'Navigation' step (usually the second step after 'Source').

3
Edit the Worksheet Name

Look at the formula bar at the top. Find the section that says Item="OldWorksheetName" and replace 'OldWorksheetName' with the exact new name (e.g., 'ContentAuthorReport (3)'). Press Enter to apply.

4
Refresh the Query

Once the step is updated, click 'Close & Load' or 'Refresh Preview' to pull in the data from the renamed worksheet.

Update the Navigation Step to Match the New Worksheet Name
Tip: Ensure the new worksheet has the exact same column structure as the original to prevent errors in subsequent transformation steps.
Free Microsoft Office alternative

Enjoy Seamless Data Management with WPS Office

While Power Query is a powerful feature in Microsoft Excel, errors caused by minor file changes can disrupt your workflow. For a lightweight, fast, and highly compatible alternative, try WPS Office. It handles complex data formats effortlessly while remaining completely free.

  1. 1. Download WPS Office: Visit the official WPS website to download the free, lightweight installer.
  2. 2. Open Your Spreadsheets: Launch WPS Spreadsheet and open your existing .xlsx files with full formatting compatibility.
  3. 3. Analyze Data Without Hassle: Use intuitive built-in tools to manage, filter, and analyze your datasets effectively.
Fully compatible with Microsoft Excel formats (.xlsx, .xls, .csv).Lightweight installation with fast performance for large spreadsheets.Familiar user interface makes transitioning from Microsoft Office seamless.Built-in advanced data analysis tools without the heavy resource usage.
microsoft office alternative - wps office

Frequently Asked Questions

Why does Power Query break when a worksheet is renamed?

Power Query records the exact worksheet name during the initial connection in the Navigation step. If the source file's worksheet name changes, the query cannot find the referenced sheet and fails to load the data.

Can I make Power Query ignore worksheet names completely?

Yes. You can modify the M code in the Advanced Editor to select a worksheet by its index position (for example, Source{0}[Data] for the first sheet) instead of its specific name, making the query immune to renaming.

How do I refresh the query after fixing the worksheet name?

Once you have updated the navigation step in the Advanced Editor or formula bar, click 'Done', navigate to the Home tab in the Power Query Editor, and click 'Refresh Preview' to load the data.