Function Problems

How to Combine Duplicate Contact Names and Keep Multiple Email Addresses in Excel and WPS Spreadsheets

Ayan MasoodAyan Masood Nov 13, 2026 869 views

Question details

The user needs to organize a spreadsheet contact list so each person appears once while all associated email addresses remain available in separate columns.

How to Combine Duplicate Contact Names and Keep Multiple Email Addresses in Excel and WPS Spreadsheets
Product
WPS Office Spreadsheets / Microsoft Excel
Device & OS
not provided
Scenario
Organizing a contact list for a cleaner, deduplicated view while preserving all email data.
Observed behavior
The current contact list has repeated name rows with one email per row; the desired result is one row per person and the matching email addresses spread across adjacent columns.
Before you start

Open the contact list in WPS Spreadsheets and confirm whether your version supports dynamic array functions such as UNIQUE and FILTER; if not, plan to use the INDEX and SMALL array formula. Before combining, make sure each equivalent contact name is spelled exactly the same, because formulas treat "John Smith" and "John Q. Smith" as different names.

Solution 1Recommended

Use UNIQUE, SORT, FILTER, and TRANSPOSE formulas to consolidate duplicates

Best when you use current WPS Spreadsheets, Microsoft 365, or Excel 2021 and newer; it automatically updates when names or emails change.

Dynamic array formulas spill results into adjacent cells and remove the need to drag formulas down. They treat names as distinct only when spelled identically, so standardize names first.

1
Open the contact list in WPS Spreadsheets

Double-click the .xlsx file to open it in WPS Office Spreadsheets, then confirm which columns contain names and email addresses.

2
Enter the unique name formula

Select an empty cell where the unique list should start, type =SORT(UNIQUE(A2:A2000)), and press Enter. WPS Spreadsheets spills the sorted unique names down the column; adjust A2:A2000 to match your actual name range.

3
Enter the email extraction formula

In the cell next to the first unique name, type =TRANSPOSE(FILTER($B$2:$B$2000,$A$2:$A$2000=E2,"")) and press Enter. If your data is in an Excel table, use =TRANSPOSE(FILTER(Table1[Emails],Table1[Names]=E2)).

4
Fill the email formula down

Drag the fill handle from the first formula cell down to the last unique name, or double-click the fill handle to fill the list. Each row now shows all matching email addresses in separate columns.

Use UNIQUE, SORT, FILTER, and TRANSPOSE formulas to consolidate duplicates
Duplicate names consolidated: Each unique name appears once and all associated email addresses remain available in separate columns.

Consolidate duplicate contacts in WPS Office Spreadsheets

Open the Excel contact list in WPS Office Spreadsheets, use the UNIQUE, SORT, FILTER, and TRANSPOSE formulas to keep one row per person, and save the file as .xlsx to maintain Microsoft Excel compatibility.

  1. 1. Open WPS Office Spreadsheets: Download WPS Office from the official website, install it, and launch WPS Spreadsheets on your computer.
  2. 2. Open the contact list file: Click Menu > Open, select the Excel .xlsx contact list, and verify the columns that contain names and emails.
  3. 3. Create the unique name list: Select an empty cell and enter =SORT(UNIQUE(A2:A2000)), then press Enter. Adjust the range to match your actual name column.
  4. 4. Extract matching email addresses: Next to the first unique name, enter =TRANSPOSE(FILTER($B$2:$B$2000,$A$2:$A$2000=E2,"")) and press Enter. Drag the formula down through the unique name list.
  5. 5. Save the consolidated contact list: Click Menu > Save As, choose Excel Workbook (.xlsx), and save the file so it remains compatible with Microsoft Excel.
Keeps every email address for each contact in separate columnsWorks with .xlsx files and preserves Microsoft Excel formatting and formulasFree and lightweight alternative to Microsoft Office for contact list cleanupUses a familiar spreadsheet interface for a smooth switch from Excel
microsoft office alternative - wps office

Frequently Asked Questions

Do these formulas work in WPS Office if the contact list was created in Microsoft Excel?

Yes. WPS Office Spreadsheets opens .xlsx files and supports the UNIQUE, SORT, FILTER, and TRANSPOSE formulas in current versions. If your WPS version uses the legacy calculation engine, use the INDEX and SMALL array formula and press Ctrl+Shift+Enter.

Why does my formula return different rows for the same person?

Excel and WPS Spreadsheets treat text as case-insensitive but not spelling-insensitive. "John Smith", "John Q. Smith", and "John Smith " are considered different. Use Find & Replace or the TRIM function to standardize name spelling and remove leading or trailing spaces before combining.

Can I keep more than three email addresses for one contact?

Yes. The TRANSPOSE(FILTER(...)) formula spills all matching emails into adjacent columns, so you are not limited to a fixed number. Just make sure the cells to the right are empty so the spilled results can fill them.

What should I do if I have an older Excel version without UNIQUE and FILTER?

Use the INDEX and SMALL array formula. Enter the formula in E2, press Ctrl+Shift+Enter if your version requires it, then fill it across to enough columns and down through all unique names. Adjust the A and B column ranges to your data.

How do I remove duplicate names without losing email data in WPS Spreadsheets?

Do not use Remove Duplicates on the original name and email ranges before extracting the email addresses, because Remove Duplicates keeps only one row per duplicate. Instead, keep the original email rows, create a separate unique name list with UNIQUE and SORT, and use FILTER and TRANSPOSE to pull all matching emails into separate columns.