WD: Incorrect Results in Formula Using ABOVE, BELOW, LEFT, RIGHT

Last reviewed: February 5, 1998
Article ID: Q111886
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

SYMPTOMS

A formula field in a table yields an incorrect result when it includes ABOVE, BELOW, LEFT, or RIGHT if the defined range contains noncontiguous values (in other words, if there is one or more blank cell between two values).

For example, the formula in cell A4 of the following table shows a result of 4 instead of 7:

   |------------------|
   |               3  |
   |------------------|
   |                  |
   |------------------|
   |               4  |
   |------------------|
   |   {=SUM(ABOVE)}  |
   |------------------|

CAUSE

Word calculates correctly up to the first empty table cell, then stops. Word does not calculate any values beyond the first empty cell.

STATUS

We are researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available.

WORKAROUNDS

Method 1: Type zero (0) in any blank cells.

Method 2: For a range that contains one or more blank cells, use cell

          references to define the range instead of ABOVE, BELOW, LEFT, or
          RIGHT. In the sample table above, use the following formula
          field to obtain a correct result:

             {=SUM(A1:A3)}

REFERENCES

"Microsoft Word User's Guide," version 6.0, pages 306-311


KBCategory: kbusage
KBSubcategory: kbfield kbtable
Additional query words: 6.00 6.00a winword word6 6.00c 7.00 word95
word7 word97 7.00a
Keywords : kbfield kbtable
Version : 6.00 6.00a 6.00c 7.00 7.00a 97
Platform : WINDOWS


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 5, 1998
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.