Use an IF Field to Calculate a Percentage in a Microsoft Word Table
Question details
The user needs a Word table to calculate 20% of B8 when B4 contains Discretionary and display zero for other service selections, with two-decimal percentage formatting.

- Product
- Microsoft Word
- Device & OS
- not provided
- Scenario
- A service dropdown in B4 determines the conditional calculation displayed in B9.
- Observed behavior
- The attempted IF field displays Service instead of evaluating the bookmarked selection and calculating the result.
Confirm that B4 contains the service selection and B8 contains a numeric value. Decide whether B8 represents a fractional percentage, such as 0.50 for 50%, or a monetary amount; these require different output formatting.
Build a Word IF field with a bookmarked service value and a nested calculation
Use this approach to calculate the result with Word fields rather than an Excel-style IF formula.
Word uses IF fields for conditions and separate calculation fields for arithmetic. Text such as (B8*0.2) inside an IF field does not, by itself, perform a calculation.
The percentage example below assumes B8 contains a fractional value: if B8 is 0.50, 20% of that value is 0.10, displayed as 10.00%. It multiplies the result by 100 and adds a literal percent sign, rather than relying on Excel-style percentage formatting.
Select the displayed service text in B4 without including the cell-end marker. Go to Insert > Bookmark, enter Service as the bookmark name, and click Add. If a dropdown controls the text, verify that the bookmark still contains the current selection after you change it.
Click inside B9. In Word for Windows, press Ctrl+F9 to insert a pair of field braces. Type the IF expression inside these braces; do not type the braces as ordinary keyboard characters.
Build this field structure, using Ctrl+F9 for every pair of field braces: { IF "{ REF Service }" = "Discretionary" "{ = B8 * 0.2 * 100 \# "0.00" }%" "0.00%" }. The REF field reads the bookmark, the calculation field evaluates the arithmetic, and the IF field chooses the result.
Press Alt+F9 to switch from field codes to results, then select the field and press F9. Test Discretionary and Advisory in B4. For a broader refresh, press Ctrl+A followed by F9; repeat the update if nested fields still show an earlier value.
If B8 is an amount rather than a fractional percentage, use { IF "{ REF Service }" = "Discretionary" "{ = B8 * 0.2 \# "0.00" }" "0.00" } instead. Create each brace pair with Ctrl+F9 and press F9 to update. This displays the calculated amount, not a percentage.

Use WPS Office for Documents and Spreadsheet-Based IF Calculations
WPS Office is a free, lightweight Microsoft Office alternative with a familiar interface and support for common Office formats, making migration straightforward. For this conditional calculation, WPS Spreadsheet offers a simpler formula-based workflow; it does not repair Word fields or replace Word's content-control VBA events.

Frequently Asked Questions
Why does my Word formula display Service instead of the dropdown selection?
Use a bookmark reference field, { REF Service }, rather than treating Service as an Excel named range. Open Insert > Bookmark to confirm that Service exists and covers the selected text. Create field braces with Ctrl+F9, then press F9 to update the reference.
Can I enter =IF(B4="Discretionary",B8*0.2,0) directly in a Word table?
Word table calculations do not support Excel formulas in the same way. Use a Word IF field with a nested calculation field. For an Excel-style formula workflow, enter =IF(B4="Discretionary",B8*0.2,0) in a spreadsheet application such as WPS Spreadsheet.
Why does the percentage example multiply by 100?
The example formats the numeric calculation to two decimal places and appends a literal % sign. Multiplying a fractional result by 100 converts 0.10 into the displayed value 10.00%. If B8 is a monetary amount, calculate B8*0.2 and use number or currency formatting instead.
Will changing the service dropdown automatically update B9?
Not reliably with Word fields alone. After changing the selection, select the result field and press F9. For automatic updates when leaving a dropdown content control, use a Document_ContentControlOnExit VBA procedure in a macro-enabled .docm file; macros must be allowed to run.
How do I show the field code so I can correct it?
In Word for Windows, press Alt+F9 to toggle field codes throughout the document. You can also right-click a field and choose Toggle Field Codes. After editing, switch back to the result and press F9 to recalculate.




