Automatically Populate Contact Details and Email Links in Excel
Question details
Create a contact sheet that retrieves phone numbers and email addresses by name and provides a link to email the listed contacts.

- Product
- Microsoft Excel
- Device & OS
- not provided
- Scenario
- A user enters client or partner names on a worksheet and wants to retrieve their contact details and email them together.
- Observed behavior
- The sheet should display matching phone numbers and email addresses and offer a clickable link addressed to the listed contacts.
Gather the contact names, phone numbers, and email addresses in a consistent list. Check that your email client is configured to open mailto links and supports the recipient separator you plan to use.
Use a contact table and lookup formulas in Excel
Use this method to fill contact details for names entered in a list and create one email link for those entries.
This example treats the names entered in rows 2 through 20 as the selected contacts; it does not use checkboxes. Duplicate names return the first match, so use unique names or contact codes when needed.
On a Contacts sheet, enter headings Full Name, Phone, and Email with one contact per row. Select the range, choose Insert > Table, and name the table Contacts on the Table Design tab.
On another sheet, enter the client or partner names in A2:A20. Add Phone and Email headings in B1 and C1.
In B2, enter =IF(A2="","",IFERROR(INDEX(Contacts[Phone],MATCH(A2,Contacts[Full Name],0)),"")) and fill the formula down through B20.
In C2, enter =IF(A2="","",IFERROR(INDEX(Contacts[Email],MATCH(A2,Contacts[Full Name],0)),"")) and fill the formula down through C20.
In an empty cell, enter =HYPERLINK("mailto:"&TEXTJOIN(";",TRUE,C2:C20),"Send email"). Click Send email to open a message addressed to the nonblank email cells.

Build a contact lookup and email link in WPS Spreadsheets
Use lookup formulas in WPS Spreadsheets to retrieve contact details by name, then combine the listed email addresses into a clickable mailto link.
- 1. Set up the contact list: In WPS Spreadsheets, create a sheet named Contacts. Enter full names in A2:A100, phone numbers in B2:B100, and email addresses in C2:C100.
- 2. Enter the selected names: On a second sheet, enter the names you want to contact in A2:A20. Add Phone and Email headings in B1 and C1.
- 3. Add lookup formulas: In B2, enter =IF(A2="","",IFERROR(INDEX(Contacts!$B$2:$B$100,MATCH(A2,Contacts!$A$2:$A$100,0)),"")); in C2, enter =IF(A2="","",IFERROR(INDEX(Contacts!$C$2:$C$100,MATCH(A2,Contacts!$A$2:$A$100,0)),"")). Fill both formulas down through row 20.
- 4. Add the email link: In an empty cell, enter =HYPERLINK("mailto:"&TEXTJOIN(";",TRUE,C2:C20),"Send email"). Click the link and review the recipients in your email client before sending.

Frequently Asked Questions
Why are the phone and email cells blank after I enter a name?
Check that the name in column A matches an entry in Contacts[Full Name]. The example formulas also return a blank when no match is found.
What happens if two contacts have the same name?
MATCH returns the first matching row. Use a unique contact code in the source table and lookup formula if names are duplicated.
Can I select contacts with checkboxes instead of entering names?
The example uses the names in A2:A20 as the selection. Checkboxes require an additional selection column and a formula that filters email addresses based on that column.
Why does the email link not separate recipients correctly?
Your email client may expect commas rather than semicolons. Replace the separator inside TEXTJOIN with a comma and test the link in your configured email client.




