Add Excel Cell Values to a Hyperlinked Email Subject
Question details
Create a mailto hyperlink that uses worksheet values in an email subject and body.

- Product
- Microsoft Excel
- Device & OS
- not provided
- Scenario
- The user wants to distinguish emails associated with worksheets that have the same sheet name.
- Observed behavior
- The desired link opens an email draft with a recipient, a subject containing identifying cell values, and a body supplied by the worksheet.
Choose cells for the recipient, subject, and message body, and decide which value will distinguish each email. Make sure an email application or mail handler is configured to open mailto links.
Build a Mailto Hyperlink from Worksheet Cells
Use HYPERLINK to combine a recipient, a subject, and a message body into an email link.
In the worksheet, enter the recipient address in B1, the subject in B2, and the message body in B3. Include a distinguishing value in B2, such as a sheet name and project number.
Select an empty cell and enter =HYPERLINK("mailto:"&B1&"?subject="&B2&"&body="&B3,"Compose email").
Click Compose email and check the recipient, subject, and body in the draft opened by your email application.
If the draft is incomplete or characters appear incorrectly, URL-encode the subject and body values. For example, use %20 for a space, %26 for an ampersand, %23 for a hash, and %0A for a line break.

Create the Same Email Link in WPS Spreadsheets
Use the HYPERLINK function in WPS Spreadsheets to assemble a mailto link from worksheet cells, then open the resulting email draft.
- 1. Open the workbook: Open WPS Spreadsheets and select Open to load your workbook.
- 2. Enter the email values: Enter the recipient in B1, a distinguishing subject in B2, and the message body in B3. URL-encode special characters in the subject and body when needed.
- 3. Insert the formula: Select an empty cell and enter =HYPERLINK("mailto:"&B1&"?subject="&B2&"&body="&B3,"Compose email").
- 4. Open the draft: Click Compose email and verify the fields in your configured email application before sending.

Frequently Asked Questions
How can I add another cell value to the email subject?
In the HYPERLINK formula, join the subject cells with an ampersand. For example, use B2&"%20-%20"&C2 for a subject containing B2, a separator, and C2.
Why is part of my email subject or body missing?
Special characters can be interpreted as part of the mailto URL. Encode characters in the subject and body, such as %26 for an ampersand and %23 for a hash, then click the link again.
Can the link include a line break in the message body?
Yes. Use %0A where you want a line break in the body value, then test the link in your email application.
Does clicking the hyperlink send the email automatically?
No. A mailto link opens a draft in the configured mail handler. Review the draft and use its Send button to send the message.




