How to Use Nested IF Fields in a Word Table Cell
Question details
The user needs to display specific text labels (such as Low, Medium, High, or Major) inside a Word table cell based on a numeric score using nested IF field codes.

- Product
- Word
- Device & OS
- not provided
- Scenario
- Creating a dynamic table in a text document where qualitative ratings are automatically generated from quantitative scores.
- Observed behavior
- Word table formulas require specific nested Word field syntax (inserted via shortcuts) instead of standard Excel-style nested IF functions.
Verify the exact cell reference (e.g., G6) that contains your numeric score before building the formula. Keep in mind that Word requires you to insert field code brackets using specific shortcuts rather than typing them manually.
Build a Nested IF Field Using Shortcut Keys
Use Word's field code shortcuts to properly insert and format nested IF conditions that evaluate numeric cell values.
Because Word does not handle formulas exactly like Excel, you cannot type standard nested functions as plain text. Instead, you must generate active field codes. It is critical to use shortcut keys for the brackets and maintain strict spacing around operators.
Click inside the table cell where you want the text label to appear. Press Ctrl+F9 (Windows) or Cmd+F9 (Mac) to insert the first pair of field braces { }.
Inside the newly created braces, type 'IF ', then press Ctrl+F9/Cmd+F9 again to insert nested braces for the cell reference. Type '=G6' (or your target cell) inside this second set of braces.
Following the structure, continue building the entire formula exactly like this: { IF { =G6 } = 1 "Low" { IF { =G6 } = 2 "Medium" { IF { =G6 } = 3 "High" { IF { =G6 } = 4 "Major" } } } }.
Once the formula is correctly assembled, right-click the field code and select 'Update Field', or simply press F9 on your keyboard to calculate and display the resulting text.

Manage Tables and Formulas Efficiently in WPS Writer
WPS Writer offers a comprehensive set of document editing tools, fully supporting complex table formulas and nested field codes. You can easily set up dynamic data tables without relying on heavy spreadsheet software.
- 1. Insert a table: Open WPS Writer, navigate to the 'Insert' tab, and click 'Table' to map out your scores and result cells.
- 2. Insert formula fields: Press Ctrl+F9 to insert active field braces and type your conditional IF logic.
- 3. Calculate and update: Right-click the assembled field code and click 'Update Field' to display the evaluated text label.

Frequently Asked Questions
Can I just type the curly brackets { } using my keyboard?
No. Manually typing curly braces from the keyboard will just output standard text, and Word will not recognize it as a formula. You must insert active field braces using the shortcut Ctrl+F9 on Windows or Cmd+F9 on Mac.
Why is my field showing the formula code instead of the result?
You are likely viewing Field Codes instead of Field Results. You can toggle between viewing the underlying code and the final results by pressing Alt+F9 (Windows) or Option+F9 (Mac).
Can I automatically shade the table cell color based on the IF field result?
Unlike Excel's Conditional Formatting, Word tables do not natively support automatically changing a cell's background color based on formula results. Achieving dynamic shading in a Word table typically requires custom VBA macros.
Why am I getting a syntax error when updating the field?
Syntax errors in Word fields are usually caused by incorrect spacing. Ensure you have included mandatory spaces after the word 'IF', around the equals sign, and between your true/false output parameters.




