Power Query Problems

How to Filter Power Query and Manual Excel Data Without Misaligning Rows

Elise WilliamsElise Williams Nov 10, 2026 869 views

Question details

The user needs to sort and filter a dataset containing both live Power Query output and manually entered data without causing the rows to misalign.

Filter Live and Manually Entered Excel Data Without Misaligning Rows
Product
Excel
Device & OS
not provided
Scenario
Managing a hybrid dataset where live records (like student information) are updated via Power Query, but corresponding manual entries (like comments or attendance) are maintained in adjacent columns.
Observed behavior
Because the Power Query output and manual columns act as independent ranges, sorting or filtering one range separates the manual comments from their correct live records.
Before you start

Ensure your dataset includes a stable, unique identifier (such as a Student ID or Employee Number) that can securely link the live data with your manually entered columns.

Solution 1Recommended

Use a Self-Referencing Power Query to Merge Data

This method loads your manually maintained table back into Power Query and merges it with the live data based on a unique ID, ensuring rows stay perfectly aligned even after sorting or filtering.

By merging the manual and live datasets inside Power Query, you create a unified, structured table. This prevents data fragmentation when the query refreshes or when user-applied filters are active.

1
Format Manual Data as a Table

Convert your manually entered data range into a structured Excel Table by selecting the range and pressing Ctrl+T. Ensure this table includes the unique ID column for matching.

2
Load Manual Data to Power Query

Select any cell in your new manual table, navigate to the 'Data' tab on the ribbon, and click 'From Table/Range' to load it into the Power Query Editor.

3
Merge with Live Data

Open your primary live data query. Click on 'Merge Queries' in the Home ribbon, and join it with your newly created manual data query using the unique ID column as the matching key.

4
Expand Columns and Load

Click the expand icon at the top of the newly merged column to reveal your manual fields (like comments and attendance). Finally, click 'Close & Load' to output the combined, safely sortable dataset to a new worksheet.

Use a Self-Referencing Power Query to Merge Data
Data Alignment Guaranteed: Because the final output acts as a single structured table, filtering or sorting will keep all live records and manual notes securely locked together.
Free Microsoft Office alternative

Manage Complex Datasets Effortlessly with WPS Office

If you experience frequent data alignment issues or find Microsoft Excel's Power Query too resource-heavy for your daily tasks, try WPS Office. It provides a lightweight, highly compatible spreadsheet environment perfect for handling structured tables, complex lookups, and everyday data analysis without the steep learning curve.

  1. 1. Download and Install: Get WPS Office for free from the official website and install it on your device in minutes.
  2. 2. Open Your Excel File: Launch WPS Spreadsheet and open your existing .xlsx file containing the hybrid dataset.
  3. 3. Manage Your Data: Use WPS Spreadsheet's powerful built-in lookup formulas and table filtering features to effortlessly align and analyze your live and manual data.
Fully compatible with Microsoft Excel (.xlsx, .xls) files and table structures.Lightweight application that opens large datasets quickly without lagging or crashing.Advanced built-in formulas (like XLOOKUP and VLOOKUP) to easily merge manual and live data.Familiar, tabbed user interface for seamless migration from Microsoft Office.
microsoft office alternative - wps office

Frequently Asked Questions

Why do my manual Excel columns misalign when I refresh Power Query?

When Power Query refreshes, it clears and rewrites the data in its output table. If you have manual columns placed directly next to it without a structural link, Excel treats them as a separate range. Any changes in the row order or volume of the live data will not automatically shift the manual data, causing a misalignment.

Can I use VLOOKUP instead of a self-referencing query?

Yes. You can keep your manual data in a completely separate sheet and use VLOOKUP or XLOOKUP inside the Power Query output table to pull in the manual data based on a unique ID. This is often simpler than a self-referencing query, provided you maintain the manual data separately.

What happens to my manual data if a row is deleted from the live source?

In a self-referencing Power Query setup, if the live source no longer contains the ID, the merged result will drop that row (if using an inner join) or show nulls for the live data (if using an outer join). Your original manual data input table remains safe and unchanged.

Is a unique ID absolutely required for merging live and manual data?

Yes. A stable, unique identifier (such as an email address, student ID, or invoice number) is strictly necessary to reliably match manual entries to dynamic live records. Without it, the system cannot know which manual comment belongs to which live record.