How to Find Filenames with Base Names Missing from Another Excel List in WPS Office
Question details
The user needs to identify image filenames whose base item numbers do not appear in a second Excel list by extracting the base name from each filename and comparing it with the item list, especially for large datasets.

- Product
- WPS Office Excel
- Device & OS
- not provided
- Scenario
- A worksheet has one column of image filenames and a second column of item numbers; the user wants to find which filenames have no corresponding base item number.
- Observed behavior
- Direct comparisons fail because filenames include suffixes such as alt1 and file extensions, so the base name must be extracted before matching.
Confirm which column contains the image filenames and which column contains the master item numbers. If you are working with hundreds of thousands of rows, prefer Power Query or helper columns over a large unrestricted array formula.
Use Power Query to extract base names and keep only missing filenames
Best for large datasets because Power Query processes hundreds of thousands of rows more efficiently than array formulas.
Power Query lets you clean the filename column and join it to the item number list in one repeatable query. A Left Anti Join returns only rows from the filename table that have no matching base item number in the second list.
In WPS Office Excel, select a cell inside the filename list, go to the Data tab, and choose From Table/Range to open the Power Query Editor.
Select the filename column. In Power Query Editor, use Transform > Extract > Text Before Delimiter with "." to remove the file extension, then use Replace Values to remove suffixes such as "alt1" from the extracted base name.
Go to Home > Merge Queries. Select the item number list table or column and the extracted base name column, then choose Left Anti Join to keep only filenames that do not exist in the item list.
Click Close & Load in the Home tab to return the unmatched rows to a new worksheet.

Use helper columns with XLOOKUP or MATCH for smaller datasets
Useful when you want a formula-based method or need to audit the extracted base names directly in the worksheet.
Find Missing Filenames with Power Query in WPS Office Excel
Use WPS Office Excel to extract base names from image filenames, merge them against an item number list with Power Query, and return only unmatched rows without relying on heavy array formulas.
- 1. Open your workbook in WPS Office Excel: Launch WPS Office, open the workbook that contains the filename list and the item number list, and save a copy if needed.
- 2. Load the filename data into Power Query: Select the filename table, open the Data tab, and click From Table/Range in WPS Office Excel.
- 3. Clean the filename column: Remove the file extension and suffixes such as alt1 using Transform > Extract > Text Before Delimiter and Replace Values.
- 4. Merge with the item number list: Use Home > Merge Queries, select the item number list and cleaned base name column, and choose Left Anti Join.
- 5. Load the unmatched filename rows: Click Close & Load to place the missing base-item filenames in a new worksheet.

Frequently Asked Questions
How do I remove alt1 and the file extension from filenames in WPS Power Query?
Select the filename column in the Power Query Editor, use Transform > Extract > Text Before Delimiter with a dot to remove the extension, then use Replace Values to replace "alt1" or other suffix text with an empty string.
Why does XLOOKUP return no match when comparing filenames to item numbers?
XLOOKUP compares the full filename by default. If the filename includes suffixes like alt1 or a file extension, the base item number must be extracted into a helper column first.
Which is faster for hundreds of thousands of rows: formulas or Power Query?
Power Query is generally faster and more stable for large datasets because it performs the comparison as a query step rather than recalculating a large unrestricted array formula.
How do I return only unmatched filenames in Power Query?
Use Home > Merge Queries and select Left Anti Join as the join kind. Power Query then returns only rows from the filename table that do not have a matching base item number in the second list.
Can I compare two Excel lists for missing values without Power Query?
Yes. Create helper columns to extract the base name, then use XLOOKUP or MATCH to test whether each base name exists in the item list and filter for the "Missing" rows.




