WD: SUM Formula Does Not Update Correctly

Last reviewed: February 3, 1998
Article ID: Q118521
The information in this article applies to:
  • Microsoft Word for Windows, versions 6.0, 6.0a, 6.0c
  • Microsoft Word for Windows 95, versions 7.0, 7.0a
  • Microsoft Word 97 for Windows
  • Microsoft Word for the Macintosh, versions 6.0, 6.0.1, 6.0.1a
  • Microsoft Word 98 Macintosh Edition

SYMPTOMS

The SUM formula field may update incorrectly if text exists in a cell of a row or column when using one of the following predefined formula fields:

   =SUM(LEFT)
   =SUM(RIGHT)
   =SUM(BELOW)
   =SUM(ABOVE)

In the following table, the first and second rows will update correctly. If the text is in a cell immediately adjacent to the formula, the calculation updates correctly.

   ---------------------------------------------------------
   |      1      |      2      |      3      | =SUM(LEFT)  |
   ---------------------------------------------------------
   |      1      |      2      |    TEXT     | =SUM(LEFT)  |
   ---------------------------------------------------------
   |      1      |    TEXT     |      3      | =SUM(LEFT)  |
   ---------------------------------------------------------

The third row produces an incorrect result as shown in the table below.

   ---------------------------------------------------------
   |      1      |      2      |      3      |      6      |
   ---------------------------------------------------------
   |      1      |      2      |     TEXT    |      3      |
   ---------------------------------------------------------
   |      1      |    TEXT     |      3      |      3      |
   ---------------------------------------------------------

CAUSE

By design, when the SUM function, using one of the predefined arguments (LEFT, RIGHT, ABOVE, or BELOW), is interrupted by a text-filled cell in the table, it performs the calculation up to that point. When the text-filled cell is immediately adjacent to the formula, the SUM function begins looking at the figures on the other side of the text.

WORKAROUND

To work around this problem, use either of the following methods.

Method 1

Specify a range of cells in your formula, for example:

   {=sum(a1:a3)}

Method 2

Specify a series of cells in your formula, for example:

   {=sum(a1,a2,a3)}


Additional query words: formula expression incorrect calculate calculation
Keywords : kbfield kbformula winword word6 word7 word8 word95 word97 macword98 kbualink97
Version : 6.0 6.0.1 6.0.1a 98 | 6.0 6.0a 6.0c 7.0 7.0a 97
Platform : MACINTOSH WINDOWS
Issue type : kbprb
Solution Type : kbworkaround


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: February 3, 1998
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.