Function Problems

Fill Blank Names in Excel Using Matching Email Addresses

John WilsonJohn Wilson Nov 25, 2026 868 views

Question details

Fill blank names by finding an existing name associated with the same email address.

Fill Blank Names in Excel Using Matching Email Addresses
Product
Microsoft Excel
Device & OS
not provided
Scenario
Column A contains names and column C contains email addresses, some of which appear more than once.
Observed behavior
Some rows have an email address but no name, even though another row with the same email may have a name.
Before you start

Confirm that names are in column A and email addresses are in column C. Choose an empty helper column and adjust the row numbers in the formula to match your data.

Solution 1Recommended

Use INDEX and MATCH in a helper column

Find the first nonblank name for each matching email while keeping existing names.

This example assumes headers are in row 1 and data runs from row 2 through row 100. Unlike a basic email lookup, the formula skips matching rows whose names are blank.

1
Enter the lookup formula

In the empty cell D2, enter =IF(A2<>"",A2,IF(C2="","",IFERROR(INDEX($A$2:$A$100,MATCH(1,INDEX(($C$2:$C$100=C2)*($A$2:$A$100<>""),0),0)),""))).

2
Fill the formula down

Select D2 and drag its fill handle down to D100, or select D2:D100 and use Home > Fill > Down.

3
Check the results

Review column D. Existing names should remain, and blank names should be filled when the same email has a nonblank name elsewhere in the range.

4
Paste names as values

Copy D2:D100, select A2, and use Home > Paste > Paste Values. Do not paste the formulas themselves into column A.

Use INDEX and MATCH in a helper column
Check existing formulas: Pasting the entire helper range as values replaces any formulas already in column A with their displayed results. If those formulas must remain, paste values only into the blank name cells.
Work with spreadsheets in WPS

Fill Missing Names by Email in WPS Spreadsheets

Use a helper column and an INDEX and MATCH formula in WPS Spreadsheets to find names for repeated email addresses, then paste the results as values.

  1. 1. Open the workbook: Open your Excel workbook in WPS Spreadsheets and locate the names in column A and email addresses in column C.
  2. 2. Enter the formula: In D2, enter =IF(A2<>"",A2,IF(C2="","",IFERROR(INDEX($A$2:$A$100,MATCH(1,INDEX(($C$2:$C$100=C2)*($A$2:$A$100<>""),0),0)),""))). Adjust the row range to fit your data.
  3. 3. Fill and review: Drag the fill handle from D2 down through the last data row, then check the names returned in column D.
  4. 4. Paste the results: Copy the helper cells, select A2, and use the Paste Values option to replace the names in column A with the results.
Match repeated email addresses to nonblank namesOpen and edit Microsoft Excel XLSX and XLS filesUse familiar spreadsheet formulas and paste optionsWork with spreadsheets using the free WPS Office suite
microsoft office alternative - wps office

Frequently Asked Questions

What happens if an email address has no associated name?

The formula returns a blank when it cannot find a nonblank name for the email. Check column C for differences such as extra spaces or missing characters.

Which name is returned if the same email has multiple names?

The formula returns the first nonblank name it finds in the specified range. Review duplicate emails if different names are associated with the same address.

Why should I paste the helper column as values?

The helper formula refers to column A. Pasting the formulas into column A would create circular references, so use Home > Paste > Paste Values instead.

How do I use the formula for more than 100 rows?

Change every occurrence of row 100 in the formula to your last data row, then fill the formula down to that row in column D.