Fill Blank Names in Excel Using Matching Email Addresses
Question details
Fill blank names by finding an existing name associated with the same email address.

- 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.
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.
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.
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)),""))).
Select D2 and drag its fill handle down to D100, or select D2:D100 and use Home > Fill > Down.
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.
Copy D2:D100, select A2, and use Home > Paste > Paste Values. Do not paste the formulas themselves into column A.

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. Open the workbook: Open your Excel workbook in WPS Spreadsheets and locate the names in column A and email addresses in column C.
- 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. Fill and review: Drag the fill handle from D2 down through the last data row, then check the names returned in column D.
- 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.

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.




