Document Editing Problems

Fix Word Mail Merge Creating Duplicate Letters for Each Record

Rana GarciaRana Garcia Oct 28, 2026 870 views

Question details

The user is experiencing an issue where a conditional mail merge generates multiple identical letters for a single data row.

Fix Word Mail Merge Creating Duplicate Letters for Each Record
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.
Before you start

Ensure your connected Excel or CSV data source does not contain actual duplicate rows before modifying your Word merge fields.

Solution 1Recommended

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.

1
Reveal Field Codes

Open your Word mail merge document and press 'Alt + F9' on your keyboard to toggle field codes and reveal the hidden conditional logic.

2
Locate the INCLUDETEXT Command

Find the specific 'IF...THEN...ELSE' field that contains your 'INCLUDETEXT' command in the document body.

3
Delete Quotation Marks

Check for any quotation marks surrounding the 'INCLUDETEXT' field and carefully delete them.

4
Hide Codes and Rerun Merge

Press 'Alt + F9' again to hide the field codes, then run the mail merge process again to verify that the duplicate letters are resolved.

Remove Quotation Marks in the Conditional Field
Syntax Tip: While file paths with spaces usually require quotes, omitting them around the entire INCLUDETEXT block when nested prevents the duplication bug.
Free Microsoft Office alternative

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. 1. Open WPS Writer: Launch WPS Office and open a new or existing document.
  2. 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. 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.
Highly compatible with Microsoft Word (.docx) and Excel (.xlsx) formatsIntuitive visual Mail Merge interface without complex field codesLightweight, fast, and entirely free to use
microsoft office alternative - wps office

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.