Document Editing Problems

Insert a Line Break for a Blank Mail Merge Field in Word 2016

Natalie TaylorNatalie Taylor Nov 20, 2026 869 views

Question details

Insert a real line break or paragraph mark when a Word mail merge field has no value.

Insert a Line Break for a Blank Mail Merge Field in Word 2016
Product
Microsoft Word 2016
Device & OS
not provided
Scenario
A mail merge document needs a conditional break based on whether a merge field is empty.
Observed behavior
Typing ^l or ^p in an If...Then...Else rule inserts those characters instead of a break.
Before you start

Connect the document to its mail merge data source and identify the exact name of the field to test. In Word for Windows, use Alt+F9 to display field codes and Ctrl+Shift+8 to show formatting marks.

Solution 1Recommended

Place a Real Break Inside a Word IF Field

Use this method when the rule editor prints ^l or ^p instead of inserting a break.

The example below inserts a break for a blank field. For a populated field, it inserts the field value followed by a break. The [BREAK] markers are instructions, not text to leave in the document.

1
Create the outer field

Place the cursor where the conditional output should appear. In Word for Windows, press Ctrl+F9 to insert the outer field braces, then press Alt+F9 if needed to show field codes.

2
Build the IF expression

Inside the outer braces, construct this pattern: { IF "{ MERGEFIELD Address2 }" = "" "[BREAK]" "{ MERGEFIELD Address2 }[BREAK]" }. Replace Address2 with your data source field name. Use Ctrl+F9 for each nested MERGEFIELD brace pair; do not type any field braces manually.

3
Insert actual breaks

Replace each [BREAK] marker with an actual break inside its quoted result: press Enter for a paragraph mark or Shift+Enter for a manual line break. Do not type ^p or ^l.

4
Update and preview

Select the IF field and press F9 to update it. Press Alt+F9 to return to field results, then choose Mailings > Preview Results and move through records with blank and populated values.

Place a Real Break Inside a Word IF Field
Check surrounding breaks: A paragraph mark or line break already outside the IF field can add another break. Adjust it if the preview shows more spacing than intended.
Free Microsoft Office alternative

Work with Mail Merge Documents in WPS Office

WPS Office is a free, lightweight alternative with a familiar interface for editing Word-compatible documents and moving existing files into a new workflow. It does not repair Microsoft Word's IF field behavior.

Edit documents used for mail merge workflowsOpen and save Microsoft Word DOCX and DOC formatsUse a familiar interface for an easier transition from OfficeWork with a free, lightweight office suite
microsoft office alternative - wps office

Frequently Asked Questions

Why does Word print ^p or ^l in my mail merge rule?

Those character sequences are not converted into breaks in the rule result. Edit the IF field and insert a real paragraph mark with Enter or a manual line break with Shift+Enter inside the quoted result.

Can I type the braces around a Word field?

No. In Word for Windows, press Ctrl+F9 to insert each pair of field braces, including the braces around nested MERGEFIELD fields.

How can I see the IF and MERGEFIELD codes?

In Word for Windows, press Alt+F9 to toggle between field codes and results. Press Ctrl+Shift+8 to show or hide paragraph marks and other formatting marks.

How do I check the result for both blank and filled records?

Select Mailings > Preview Results, then use the record navigation controls to view records with and without a value in the tested field.