XL2000: Cell Ranges in Aggregate Formulas May Change Unexpectedly (238482)
The information in this article applies to:
This article was previously published under Q238482 SYMPTOMS
When you add data to a worksheet that contains one or more aggregate formulas, some of these formulas may change unexpectedly.
For example, if your worksheet contains the following data
A1: 2
A2: 2
A3: 2
A4:
A5:
A6: =SUM(A1:A3)
and you type 2 into cell A4, the formula in cell A6 changes to =SUM(A1:A4). NOTE: An aggregate formula is a summed series of three or more adjacent cells, such as =A1+A2+A3, or a formula containing one or more of the following aggregate functions: - AVERAGE
- COUNT
- COUNTA
- MAX
- MIN
- PRODUCT
- STDEV
- STDEVP
- SUBTOTAL
- SUM
- VAR
- VARP
CAUSE
This problem occurs when the following conditions are true:
- The Extend list formats and formulas check box is selected (on the Tools menu, click Options, and then click the Edit tab).
-and- - You are using relative cell references in the aggregate formula.
-and- - You type data into a blank cell that extends the range the aggregate formula refers to.
-and- - The aggregate formula is at the end of the range where you are typing the data.
-and- - The aggregate formula does not include the entire range of data.
WORKAROUND
To work around this problem, use either of the following methods.
Method 1: Clear the Extend List Formats and Formulas Check Box- On the Tools menu, click Options.
- On the Edit tab, click to clear the Extend list formats and formulas check box. Click OK.
Method 2: Use Absolute References in the Formulas- Select the cell containing the formula that has changed.
- Press F2.
- Select the range reference in the formula.
- Make the appropriate row or column reference absolute.
If your formula references a column of data, you might make the last row reference absolute. For example you would change =SUM(A1:A3) to =SUM(A1:A$3).
If your formula references a row of data, you might make the last column reference absolute. For example, you would change =SUM(A1:C1) to =SUM(A1:$C1).
- Press ENTER.
STATUSMicrosoft has confirmed that this is a problem in the Microsoft products that are listed at the beginning of this article.
Modification Type: | Major | Last Reviewed: | 11/5/2003 |
---|
Keywords: | kbbug kbpending KB238482 |
---|
|