Fix Word Mail Merge Creating Duplicate Letters for Each Record
Question details
The user is experiencing an issue where a conditional mail merge generates multiple identical letters for a single data row.

- Product
- Microsoft Word
- Device & OS
- not provided
- Scenario
- Performing a conditional mail merge using an Excel or CSV data source with INCLUDETEXT fields.
- Observed behavior
- Microsoft Word outputs two acknowledgment letters for every single row in the connected data source instead of one.
Ensure your connected Excel or CSV data source does not contain actual duplicate rows before modifying your Word merge fields.
Remove Quotation Marks in the Conditional Field
Fix the formatting of the IF...THEN...ELSE field to prevent Word from processing the INCLUDETEXT reference twice.
When an INCLUDETEXT field is nested inside an IF...THEN...ELSE field, enclosing the INCLUDETEXT statement in quotation marks forces Word to evaluate and insert the referenced document multiple times.
Open your Word mail merge document and press 'Alt + F9' on your keyboard to toggle field codes and reveal the hidden conditional logic.
Find the specific 'IF...THEN...ELSE' field that contains your 'INCLUDETEXT' command in the document body.
Check for any quotation marks surrounding the 'INCLUDETEXT' field and carefully delete them.
Press 'Alt + F9' again to hide the field codes, then run the mail merge process again to verify that the duplicate letters are resolved.

Check Recipient List and Reconnect Data Source
Ensure that the data connection hasn't duplicated the records during the attachment process.
Perform Flawless Mail Merges with WPS Office
Avoid complicated field code errors and duplication bugs by using WPS Office Writer. It seamlessly connects to your spreadsheets to generate personalized letters effortlessly.
- 1. Open WPS Writer: Launch WPS Office and open a new or existing document.
- 2. Navigate to Mail Merge: Click on the 'Mail Merge' tab in the top ribbon and select 'Open Data Source' to link your Excel file.
- 3. Insert Fields and Merge: Use 'Insert Merge Field' to place your data, then click 'Merge to New Document' for a clean, duplicate-free output.

Frequently Asked Questions
Why is my Excel data source showing duplicate rows in Word?
This usually happens if the Excel file contains hidden rows, or if the data range selected during the import includes empty or duplicated formatting. Try clearing formatting in empty Excel rows or redefining your print area.
How do I view hidden field codes in my mail merge document?
You can reveal all hidden field codes in your document by pressing Alt + F9 on your keyboard. Pressing the shortcut again will hide them and display the normal text.
Does the INCLUDETEXT field always need quotation marks?
Quotation marks are typically required around the file path in an INCLUDETEXT field if the path contains spaces. However, when nested inside an IF...THEN...ELSE field, enclosing the entire INCLUDETEXT statement in quotes forces Word to evaluate and insert it twice.




