WD: Table Formula Adds Number from Heading Row

ID: Q188407

The information in this article applies to:

SYMPTOMS

In the versions of Word listed at the beginning of this article, if a table row is formatted as a heading row (select the row and click Headings on the Table menu), the results of =SUM(Above) and =AVERAGE(Above) formulas may not be what you expect.

CAUSE

Word includes values from the heading row in the calculation.

STATUS

Microsoft has confirmed this to be a problem in the Microsoft products listed at the beginning of this article.

MORE INFORMATION

When Word searches for values to include in the formula results, it starts at the formula cell and continues up until it finds the first cell containing a number. It then calculates up until it encounters a blank cell or a cell containing both a number and text above the last cell that contains a number only.

The following sample tables show formula results that are incorrect (they include numbers from the heading row) and others in which the results are correct.

Sample Table with Formulas

   ---------------------------------------------------------
   |      1      |     Two     |    No. 3    |      4      |
   ---------------------------------------------------------

   |      2      |      2      |      2      |             |
   ---------------------------------------------------------
   |      3      |      3      |   row 3     |      3      |
   ---------------------------------------------------------
   |{=SUM(Above)}|{=SUM(Above)}|{=SUM(Above)}|{=SUM(Above)}|
   ---------------------------------------------------------

Sample Table with Results

   ---------------------------------------------------------
   |      1      |     Two     |    No. 3    |      4      |
   ---------------------------------------------------------
   |      2      |      2      |      2      |             |
   ---------------------------------------------------------
   |      3      |      3      |  row  3     |      3      |
   ---------------------------------------------------------
   |      6      |      5      |      5      |      3      |
   ---------------------------------------------------------

Row 1 of the sample table is a heading row (to create a heading row, select the row and click Headings on the Table menu).

Result of row 4, column 1:

Result of row 4, column 2: Result of row 4, column 3: Result of row 4, column 4: Additional query words: sum total calculate
Keywords          : kbdta kbtable 
Version           : MACINTOSH:6.0,6.0.1,6.0.1a; WINDOWS:6.0,6.0a,6.0c,7.0,7.0a
Platform          : MACINTOSH WINDOWS
Issue type        : kbbug
Solution Type     : kbpending

Last Reviewed: February 12, 1999