How to Use Word Mail Merge to Generate Personalized Documents
Question details
The user is looking for the Microsoft Word equivalent of 'string interpolation' used in programming to dynamically generate personalized text strings from a data list.

- Product
- Word
- Device & OS
- not provided
- Scenario
- Creating customized documents such as certificates, letters, labels, or directories for multiple recipients using structured data.
- Observed behavior
- The user needs to identify the 'Mail Merge' feature and understand the workflow for linking an Excel data source to a Word template to automate document generation.
Ensure your data source (such as an Excel spreadsheet) is properly formatted with clear column headers (e.g., First Name, Last Name, Course) and closed before you attempt to link it to your document.
Use Word Mail Merge with an Excel Data Source
Connect your Word document template to an Excel spreadsheet to automatically populate personalized data fields for each recipient.
In Microsoft Word, the equivalent of string interpolation is called 'Mail Merge'. This feature allows you to use a static template and dynamically insert variables (merge fields) fetched from a database or spreadsheet.
Open your certificate or letter template in Microsoft Word. Navigate to the 'Mailings' tab on the top ribbon and click 'Start Mail Merge' to choose your document format (Letters, Labels, etc.).
Click 'Select Recipients' in the Mailings tab, choose 'Use an Existing List', and browse your computer to select the Excel spreadsheet containing your recipient data. Click 'OK' to link the file.
Place your text cursor in the document exactly where you want the personalized data to appear. Click 'Insert Merge Field' and select the corresponding column header (e.g., 'Name' or 'Score') from your Excel file.
Click 'Preview Results' on the ribbon to see how the data populates the template. Use the arrow buttons to flip through different recipients. Finally, click 'Finish & Merge' to either print the documents or select 'Edit Individual Documents' to generate a new Word file containing all the personalized pages.

Create Personalized Documents Easily with WPS Writer
WPS Writer offers a seamless and highly intuitive Mail Merge feature that lets you connect WPS Spreadsheet data to generate personalized letters, labels, and certificates in seconds.
- 1. Open your document: Launch WPS Writer and open the document you wish to use as your base template.
- 2. Link your spreadsheet: Go to the 'Mailings' tab and click 'Open Data Source'. Select your WPS Spreadsheet or Excel file containing the recipient list.
- 3. Insert data fields: Position your cursor, click 'Insert Merge Field', and pick the column variables you want to add to the document.
- 4. Merge to a new document: Click 'Merge to New Document' to automatically generate a compiled file containing all the personalized pages.

Frequently Asked Questions
Can I filter out certain recipients from my Excel list during the Mail Merge?
Yes. After linking your data source, click 'Edit Recipient List' in the Mailings tab. A window will pop up where you can uncheck specific rows or use the filter option to include only recipients who meet certain criteria (e.g., only those with a passing score).
Why do my Excel dates look wrong or format differently after merging into Word?
Word often uses its default formatting rather than Excel's display formatting. To fix this, you can press Alt+F9 to view field codes and add a date format switch (e.g., \@ "MMMM d, yyyy"), or you can format the date column as 'Text' in your Excel spreadsheet before doing the merge.
Can I use Mail Merge to send personalized emails instead of printing documents?
Yes. If you have an email client configured (like Outlook), you can click 'Finish & Merge' and select 'Merge to E-mail'. You will need an email address column in your data source to route the personalized messages to the correct recipients.




