WD2000: Calculation Error When Referencing Bookmark in TableID: Q211238
|
A formula in Word may show an incorrect result if the calculation refers to
a bookmark in a table when the bookmark includes the entire cell.
For example, the following table has two cells, with a bookmark (test1) applied to the first cell:
--------------------
| 4 | 6 |
--------------------
^--test1---^
The sample field below uses a bookmark for multiplication:
{=test1*3 }The result of the field is 30, but it should be 12.
When you create a bookmark that contains an entire table cell, the bookmark then refers to the entire table rather than the contents of a single cell. As a result, when you use that bookmark as direct reference in a Formula field, the values stored in the table are summed and that sum is then used as the value of the bookmark.
To work around this problem, use either of the following methods.
{ =SUM(bookmarkname[cellreference]) }In the above example, the formula would look like this:
{ =SUM(Table1 A1)*3 }To add two cells from the same table, use a formula such as the following:
{ =SUM(Table1 A1) + SUM(Table1 B1) }
Q211255 WD2000: How to Set Up a Table As a Worksheet in Word
Additional query words: wrong result
Keywords : kbdta kbfield kbtable wd2000
Version : WINDOWS:2000
Platform : WINDOWS
Issue type : kbprb
Last Reviewed: June 7, 1999