Document Editing Problems

Use an IF Field in Word 2016 Without Mail Merge

Emma BrownEmma Brown Nov 22, 2026 868 views

Question details

Use an IF field in Word 2016 to compare document content and display a conditional result without mail merge.

Use an IF Field in Word 2016 Without Mail Merge
Product
Microsoft Word 2016
Device & OS
not provided
Scenario
The user wants to compare bookmarked text or a numeric value with a constant in a regular Word document.
Observed behavior
The IF field should display one result when the comparison is true and another when it is false.
Before you start

Identify the text or value you want to test and decide what the document should display for each result. The keyboard shortcuts below apply to Word 2016 on Windows.

Solution 1Recommended

Compare Bookmarked Text Using an IF Field

Use a bookmark and a nested REF field to test document text without a mail merge.

An IF field compares two expressions and displays the true or false result. In this example, a REF field supplies the text stored in a bookmark named Status.

1
Create a bookmark

Select the text to test, such as Approved. Go to Insert > Bookmark, enter Status as the bookmark name, and select Add.

2
Insert the outer field

Place the cursor where the result should appear and press Ctrl+F9 to insert a pair of field braces. Type IF followed by a space inside the braces.

3
Insert the bookmark reference

Inside the outer field, after IF, press Ctrl+F9 again and type REF Status inside the new braces. Then, after the nested field, type = "Approved" "Ready" "Pending". The complete code should read { IF { REF Status } = "Approved" "Ready" "Pending" }, with both pairs of braces inserted by Word.

4
Update and view the result

Select the IF field and press F9 to update it. Press Alt+F9 to toggle field codes if needed; the field displays Ready when Status contains Approved, and Pending otherwise.

Compare Bookmarked Text Using an IF Field
Refresh after changes: If the bookmarked content changes, select the IF field and press F9 to recalculate the result. Ensure the bookmark still contains the intended text.
Free Microsoft Office alternative

Edit Word Documents with WPS Writer

WPS Office is a free, lightweight alternative with a familiar interface for opening and editing Word documents. Its format compatibility makes it easy to move existing files into WPS Writer; check complex fields when migrating.

Open and edit Microsoft Word DOCX and DOC filesWork with documents containing conditional content and check their display after migrationUse a familiar interface for everyday document editingGet a free, lightweight office suite
microsoft office alternative - wps office

Frequently Asked Questions

Can I use an IF field without mail merge?

Yes. In Word 2016, an IF field can compare bookmarked document content with a constant without connecting to a mail-merge data source.

Why do typed braces not work as a Word field?

Word requires special field braces rather than ordinary typed braces. On Windows, press Ctrl+F9 for each pair, including the nested REF field.

How do I see or edit the IF field code?

Press Alt+F9 in Word on Windows to toggle between field codes and their results. Edit the code, then select the field and press F9 to update it.

Can an IF field compare numbers?

Yes. An IF field can compare a numeric expression with a constant using an operator such as =, <, or >. Insert the field with Ctrl+F9 and supply the comparison and the true and false results.