Find Matching Email Addresses in Another Excel Table
Question details
Find email addresses in a master table that match IDs or names in a second list.

- Product
- Microsoft Excel
- Device & OS
- not provided
- Scenario
- A second list contains a subset of records from a master table, and the user wants to add the corresponding email addresses.
- Observed behavior
- Each record in the second list should display the matching email address from the master table, or a message if no match is found.
Place both lists in the same workbook and check which columns contain the matching IDs and email addresses. The examples assume the lookup ID is in A2, while the Master sheet has IDs in column A and emails in column C; use a unique ID rather than a name when possible.
Use XLOOKUP to retrieve matching email addresses
Use this method when your Excel version supports XLOOKUP.
On the sheet containing the subset list, select the cell where you want the email for the ID in A2 to appear, such as B2.
Enter =XLOOKUP(A2,Master!A:A,Master!C:C,"Not found") and press Enter. Replace the sheet name and column references if your data is arranged differently.
Select B2 and drag its fill handle down alongside the remaining IDs to retrieve their email addresses.

Use VLOOKUP in older versions of Excel
Use VLOOKUP if XLOOKUP is unavailable and the lookup IDs are in the first column of the master range.
Match email addresses with WPS Spreadsheets
Open your workbook in WPS Spreadsheets and use VLOOKUP to pull email addresses from a master sheet into a subset list.
- 1. Open the workbook: In WPS Spreadsheets, choose Open and select the workbook containing your subset list and master sheet.
- 2. Select the email column: On the subset sheet, click B2 next to the first lookup ID in A2.
- 3. Enter VLOOKUP: Type =IFERROR(VLOOKUP(A2,Master!A:C,3,FALSE),"Not found") and press Enter. Adjust the sheet and column references to match your workbook.
- 4. Fill the remaining rows: Select B2 and drag the fill handle down to look up emails for the other IDs, then use Save to keep the results.

Frequently Asked Questions
Can I match email addresses by name instead of ID?
Yes. Use the name cell as the lookup value and point XLOOKUP or VLOOKUP to the master name column. Names may not be unique, so an ID is safer when available.
Why does the formula show "Not found" when the ID exists?
Check for extra spaces, different spelling, or IDs stored as text in one list and numbers in the other. Also verify that the formula references the correct master sheet and columns.
What happens if the master table contains duplicate IDs?
The example XLOOKUP and VLOOKUP formulas return the first match they find. Check the master ID column for duplicates before relying on the returned email.
Why does Excel not recognize XLOOKUP?
Your Excel version may not support XLOOKUP. Try =IFERROR(VLOOKUP(A2,Master!A:C,3,FALSE),"Not found") instead, provided the IDs are in the first column of the lookup range.




