Power Query Problems

How to Keep Manual Comments Linked to Shop IDs in Excel Power Query

Aamir Naveed AkramAamir Naveed Akram Oct 21, 2026 870 views

Question details

User wants to retain manual comments associated with specific Shop IDs when an Excel Power Query output table is refreshed.

How to Keep Manual Comments Linked to Shop IDs in Power Query
Product
Excel
Device & OS
not provided
Scenario
Adding manual comments next to a Power Query output table and then refreshing the data connection.
Observed behavior
Comments are either lost entirely or assigned to the wrong Shop IDs because the query refresh reorders or replaces the output rows.
Before you start

Ensure you have a unique identifier, such as a Shop ID, for each record in both your query data and your manual comments to accurately link them together.

Solution 1Recommended

Use a Separate Comments Table and VLOOKUP

The most reliable method is to store comments externally and link them back to the query output using an exact-match lookup function.

Typing directly into a Power Query output table is risky because refreshing the query recreates the table. Any manual data not part of the query source will be overwritten or misaligned if row orders change. By separating the data, you protect your manual inputs.

1
Create a comments worksheet

Create a new Excel worksheet in your workbook dedicated to storing your manual comments.

2
Set up a two-column table

Set up a two-column list with 'ShopID' in the first column and 'Comment' in the second column.

3
Format as an Excel Table

Select this range and convert it into an official Excel Table by pressing Ctrl+T on your keyboard.

4
Add a column to the query output

In your Power Query output table, add a new column header for comments directly adjacent to the query data.

5
Apply the VLOOKUP formula

Use the VLOOKUP function to retrieve the comment by typing an exact-match formula like: =VLOOKUP([@ShopID], Comments!A:B, 2, FALSE).

Use a Separate Comments Table and VLOOKUP
Data Safety Secured: This method ensures your comments remain safe and correctly assigned to the exact Shop ID, even if the Power Query output adds new rows or changes its sorting order during a refresh.
Free Microsoft Office alternative

Manage Your Data Smoothly with WPS Office

While Power Query is a specialized Microsoft feature, WPS Office provides powerful data management tools, including VLOOKUP, XLOOKUP, and Pivot Tables, in a lightweight and free package. It is fully compatible with Microsoft Excel formats, making your transition completely seamless.

  1. 1. Download and Install: Download WPS Office for free from the official website and install it on your device.
  2. 2. Open Your Spreadsheets: Open your existing .xlsx files directly in WPS Spreadsheet without worrying about formatting loss.
  3. 3. Link Data Seamlessly: Use WPS Spreadsheet's built-in formulas to easily link tables and manage your manual comments.
Fully compatible with Microsoft Excel (.xlsx) formatsSupports advanced lookup functions like VLOOKUP, XLOOKUP, and INDEX/MATCHLightweight, fast, and completely free to use for daily data tasks
microsoft office alternative - wps office

Frequently Asked Questions

Why do my comments disappear when I refresh Power Query?

When a Power Query is refreshed, Excel drops the old table data and loads a fresh copy from the source. Any manual columns added directly to the output table that are not part of the source query will be overwritten, deleted, or misaligned depending on how the rows are updated.

Can I edit Power Query data directly in the Excel sheet?

No, Power Query output tables are read-only reflections of the source data. You should make changes in the original data source or use helper columns with lookup formulas to append new information alongside the query output.

Is VLOOKUP the only way to link manual comments?

No, while VLOOKUP is very common, you can also use INDEX/MATCH, the newer XLOOKUP function, or directly merge the comment table within the Power Query Editor itself by loading the comment table as a separate data connection.