View Single Post
 
Old 09-18-2023, 08:16 PM
newcomer@flounder.com's Avatar
newcomer@flounder.com newcomer@flounder.com is offline Windows 11 Office 2021
Novice
 
Join Date: Sep 2023
Location: Pittsburgh, PA, USA
Posts: 3
newcomer@flounder.com is on a distinguished road
Default Syntax Error in computed field

Following the instructions that I found, I wanted to get an approximate word count (rounded to 100), so I put in the suggested formula,

Code:
Approximately {=ROUND({NUMWORDS},-2) \# ,0,} words
but when I toggle the field codes, I get

Code:
  Approximately!Syntax Error, {words
I am using Office 365.

Various attempts including the very detailed document on expressions in Word (Word Field Maths V1_5.doc) did not clarify this problem.


So I went back and just replaced the field. I selected the format #,##0, as a number, and got
Code:
NUMWORDS  \# "#,##0" \* Arabic  \* MERGEFORMAT
and got
Code:
Approximately 3107 words

instead of the expected
Code:
Approximately 3,107 words

Last edited by newcomer@flounder.com; 09-18-2023 at 08:33 PM. Reason: Did not get comma on second attempt, so added that
Reply With Quote