How to Use SUM Formulas with Word Content Controls
Question details
The user needs to calculate the sum of values entered in plain text content controls within a table.

- Product
- Word Processor
- Device & OS
- not provided
- Scenario
- Creating forms or data tables containing content controls where a total sum needs to be calculated automatically or manually.
- Observed behavior
- A manually typed SUM(ABOVE) formula entered below plain text content controls fails to calculate or update as expected.
Ensure that the plain text content controls above your formula cell only contain numeric values, as text characters or empty spaces can cause the calculation to fail or return a zero.
Insert as a Field Code and Manually Update
Formulas in Word must be inserted as specialized field codes rather than plain text, and they require a manual trigger to recalculate.
Typing a formula directly into a table cell will only display plain text. You must use the built-in formula tool or field code shortcuts to make it functional.
Place your cursor in the empty cell below your content controls. Go to the 'Table Layout' tab on the ribbon and click the 'Formula' button. Word will automatically suggest =SUM(ABOVE). Click OK to insert the field.
If you have already typed =SUM(ABOVE) manually, select the text and press Ctrl+F9 (or Ctrl+Fn+F9 on some laptops) to enclose it in field brackets { }. This transforms the text into an active field.
Select the newly created formula field, the specific table, or the entire document, and press F9 (or Fn+F9). The formula will now calculate the values from the content controls above.

Set Fields to Update Automatically Before Printing
Configure your document settings to automatically refresh all formula fields right before printing, ensuring your final document always displays the correct totals.
Calculate Table Data Seamlessly with WPS Writer
WPS Writer simplifies document formatting and table calculations. With highly compatible field code support, inserting and updating formulas in your tables is fast and straightforward.
- 1. Open Your Document: Launch WPS Writer and open the document containing your table and content controls.
- 2. Navigate to Table Tools: Click inside the cell where you want the sum to appear. A 'Table Tools' tab will automatically appear on the top ribbon.
- 3. Insert and Update the Formula: Click 'Formula' from the Table Tools menu. Confirm that =SUM(ABOVE) is selected and click OK. Whenever you change the data above, select the formula cell and press F9 to update.

Frequently Asked Questions
Why is my SUM formula showing a syntax error in the table?
A syntax error usually occurs if the field code is incorrectly formatted, or if the formula is attempting to calculate non-numeric characters located in the content controls above it. Ensure the formula is enclosed in { } brackets by using Ctrl+F9.
Can formula fields update automatically when I type new numbers?
No, document word processors do not feature real-time calculation like spreadsheet applications do. You must manually select the formula and press F9, or trigger an update via the print preview screen.
How do I update multiple formula fields in a document at once?
To update every field simultaneously, press Ctrl+A to select the entire document, then press F9. This will refresh all formulas, content controls, and table of contents entries in the file.




