Power Query Problems

How to Match Two Excel Name Lists and Return Scores

Amos GikundaAmos Gikunda Oct 29, 2026 873 views

Question details

The user needs to identify names that appear in two separate lists and retrieve the corresponding scores from each list into adjacent columns.

How to Match Two Excel Name Lists and Return Scores
Product
Spreadsheet
Device & OS
not provided
Scenario
Comparing two datasets to extract common entries and align their associated metrics while excluding entries that do not appear in both lists.
Observed behavior
A clean summary table is generated containing only the matched names common to both lists, alongside their respective scores retrieved from the original sources.
Before you start

Ensure both lists are properly aligned with names in one column and scores in the adjacent column. It is highly recommended to remove any trailing spaces or hidden characters in the name columns to prevent false mismatches.

Solution 1Recommended

Use Array Formulas and VLOOKUP to Match Lists

This method uses an array formula to dynamically extract names common to both lists, followed by VLOOKUP to fetch the respective scores.

This formula-based approach is highly versatile for smaller datasets. The combination of INDEX, SMALL, IF, and COUNTIF identifies intersecting names, while VLOOKUP aligns the data.

1
Extract common names

In an empty column, enter the array formula: =INDEX($A$2:$A$12,SMALL(IF(COUNTIF($D$2:$D$12,$A$2:$A$12),MATCH(ROW($A$2:$A$12),ROW($A$2:$A$12)),""),ROWS($A$1:A1))) to find names that exist in both ranges.

2
Confirm the array formula

Press Ctrl+Shift+Enter to confirm the formula. Then, click and drag the fill handle down to populate the list of matching names until you see errors or blanks indicating no more matches.

3
Retrieve scores from the first list

In the column next to your matched names (assuming the matched name is in H2), enter the formula =VLOOKUP($H2,$A$2:$B$12,2,FALSE) to pull the score from List 1.

4
Retrieve scores from the second list

In the subsequent column, enter the formula =VLOOKUP($H2,$D$2:$E$12,2,FALSE) to pull the corresponding score from List 2.

Use Array Formulas and VLOOKUP to Match Lists
Tip: To prevent #N/A errors from displaying when dragging the formula down, you can wrap your formulas in an IFERROR() function.
Seamless Data Analysis

Match Data Across Sheets Easily with WPS Spreadsheet

WPS Spreadsheet offers powerful data processing capabilities, including advanced array formulas and VLOOKUP functions, allowing you to seamlessly cross-reference large lists and extract matching data effortlessly.

  1. 1. Open your workbook: Launch WPS Spreadsheet and open the file containing the two lists you want to match.
  2. 2. Input the lookup formula: Select your destination cell and type in the VLOOKUP or INDEX/MATCH formula as needed.
  3. 3. Apply array calculation: If you are extracting a dynamic list of matched names, press Ctrl+Shift+Enter to properly execute the array formula.
  4. 4. Fill the columns: Drag the fill handle down and across to quickly apply the formula to the rest of the dataset.
Fully compatible with Microsoft Excel formulas, functions, and file formats.Fast processing of large datasets without lagging or freezing.Built-in data analysis tools for quick merging, deduplication, and lookup operations.
microsoft office alternative - wps office

Frequently Asked Questions

Why is my VLOOKUP returning #N/A for names that look identical?

This usually happens due to hidden trailing spaces or different text formats. Use the TRIM() function on both name lists to clean the text before attempting to match them.

Can I use XLOOKUP instead of VLOOKUP for this task?

Yes, if your spreadsheet software supports it, XLOOKUP is a robust alternative that doesn't require the lookup value to be in the first column and handles missing data natively without needing IFERROR.

How do I handle duplicate names in the lists?

If a name appears multiple times, VLOOKUP will only return the first match it finds. To handle duplicates accurately, consider assigning unique IDs (like employee numbers) to each person, or use Power Query to group the data before merging.

What happens to the array formula if I add new names to the lists?

You will need to manually update the absolute ranges (e.g., changing $A$2:$A$12 to $A$2:$A$20) in the formula. To avoid this, convert your lists to Excel Tables so the ranges expand automatically when new data is added.