Data Import & Export

How to Match Email Addresses Between Excel Files and Return Data

Tauseeq MagsiTauseeq Magsi Nov 10, 2026 869 views

Question details

The user needs to match a smaller list of email addresses against a master list in another workbook to extract corresponding demographic data into a new table.

How to Match Email Addresses Between Excel Files and Return Demographic Data
Product
Excel
Device & OS
not provided
Scenario
Merging data from two separate Excel workbooks based on a common identifier (email addresses) to build a consolidated dataset.
Observed behavior
A third table containing the matched email addresses and their corresponding demographic columns is generated accurately.
Before you start

Before attempting to match data, ensure that the email addresses in both files are formatted consistently by removing trailing spaces, standardizing the text to lowercase, and confirming there are no duplicate email records in your master list.

Solution 1Recommended

Use Power Query to Merge Data Between Two Workbooks

Power Query is the most reliable and visual method for joining tables from multiple files without writing complex worksheet formulas.

Power Query allows you to handle large datasets efficiently. By creating a 'Merge Queries' relationship, you can easily pull any number of columns from the master workbook into your smaller list based on the matched email addresses.

1
Import the Excel files

Open a blank workbook, navigate to the Data tab, and select Get Data > From File > From Workbook to import both your master data file and your smaller email list file.

2
Initiate Merge Queries

In the Data tab, choose Get Data > Combine Queries > Merge. Alternatively, if you are in the Power Query Editor, go to the Home tab and click Merge Queries > Merge Queries as New.

3
Match the email columns

In the Merge dialog box, select your two tables from the dropdown menus. Click on the 'Email Address' column in both table previews to establish the matching relationship. Ensure the Join Kind is set to 'Left Outer'.

4
Expand demographic fields

Once the merged table opens in the Power Query Editor, locate the newly added column at the far right. Click the 'Expand' icon (two diverging arrows) in the column header and check the specific demographic fields you want to include.

5
Load the final table

Click Close & Load on the Home tab. Excel will create a new worksheet containing your finalized third table with all matched emails and their demographic data.

Use Power Query to Merge Data Between Two Workbooks
Easy Updates: If you update the source files in the future, you can simply right-click any cell in the green result table and select 'Refresh' to update your merged data instantly.
Efficient Data Management with WPS

Match and Extract Data Seamlessly in WPS Spreadsheet

WPS Spreadsheet provides powerful built-in lookup functions like XLOOKUP and VLOOKUP, allowing you to cross-reference email lists and extract demographic data across multiple workbooks quickly and reliably.

  1. 1. Open your workbooks: Launch WPS Spreadsheet and open both your master demographic file and your smaller email list file using the tabbed workspace.
  2. 2. Apply XLOOKUP or VLOOKUP: In the target worksheet, select the cell next to your first email address and insert the XLOOKUP function, selecting the email address as your lookup value.
  3. 3. Select the return array: Highlight the demographic columns in your master file as the return array. WPS Spreadsheet easily handles cross-workbook references.
  4. 4. Fill the data: Press Enter and drag the fill handle down to apply the formula to the rest of the list, instantly generating your combined result table.
Free and lightweight spreadsheet softwareFull compatibility with Microsoft Excel formats (.xlsx, .csv)Supports advanced lookup formulas and data processing nativelyClean, tabbed interface to manage multiple workbooks effortlessly
QA img-9

Frequently Asked Questions

Why aren't my email addresses matching even though they look identical?

Extra spaces, hidden non-printable characters, or case sensitivity can prevent exact matches. It is highly recommended to use the TRIM and CLEAN functions on both email lists before attempting a merge or lookup.

Can I use VLOOKUP instead of XLOOKUP or Power Query to get demographic data?

Yes. VLOOKUP works well if the email address is located in the leftmost column of your master data. However, you will need to adjust the column index number manually for each specific demographic field you want to return, making it more tedious for multiple columns.

Will my merged table update automatically if the original files change?

If you use Power Query, your result table will update when you right-click it and select 'Refresh'. If you use worksheet formulas like XMATCH or VLOOKUP, the data will update automatically in real-time, provided both source workbooks are open.