Data Associated with Blank Cells May Be Excluded from Subtotals (164499)
The information in this article applies to:
- Microsoft Excel for Windows 95
- Microsoft Excel for Windows 5.0
This article was previously published under Q164499 SYMPTOMS
In Microsoft Excel 5.0 or 7.0, when create a list of data that contains
empty cells, and you use the Subtotals command on the Data menu, the
summary values for the data may be incorrect.
CAUSE
This problem occurs when the following conditions are true:
- You click a cell in a list that contains blank cells and click
Subtotals on the Data menu.
-and-
- In the "At each change in" box in the Subtotal dialog box, you specify
a column that contains blank cells.
-and-
- You select Sum in the Use Function list, clear the Summary Below Data
check box, and click OK.
When you do not clear the Summary Below Data check box, Microsoft Excel
5.0 and 7.0 includes data for the blank cells in the summary function. The
value that Microsoft Excel associates with a blank cell is the value for
the preceding cell that is not blank.
NOTE: The correct behavior is for Microsoft Excel to ignore the values for
blank cells when you use the Subtotals command regardless of whether you
select the Summary Below Data check box.
RESOLUTION
To resolve this behavior, type values in the blank cells.
For example, if you are using the following data
A1: Name B1: Amount
A2: a B2: 1
A3: B3: 1
A4: B4: 1
A5: b B5: 1
A6: B6: 1
A7: c B7: 1
type values for cells A3, A4, and A6 as follows:
A1: Name B1: Amount
A2: a B2: 1
A3: a B3: 1
A4: a B4: 1
A5: b B5: 1
A6: b B6: 1
A7: c B7: 1
When you click A1 and click Subtotal on the Data menu, Microsoft Excel
calculates the following totals:
A1: Name B1: Amount
A2: a B2: 1
A3: a B3: 1
A4: a B4: 1
A5: a Total B5: 3
A6: b B6: 1
A7: b B7: 1
A8: b Total B8: 2
A9: c B9: 1
A10: c Total B10: 1
A11: Grand Total B11: 6
STATUS
Microsoft has confirmed this to be a problem in Microsoft Excel versions
5.0 and 7.0 for Windows. This problem was corrected in Microsoft Excel 97
for Windows.
REFERENCES
For more information about subtotals, click the Index tab in
Microsoft Excel Help, type the following text
Subtotals, data summary
and then double-click the selected text to go to the "Summarize data by
using subtotals and outlines" topic.
Modification Type: | Minor | Last Reviewed: | 8/17/2005 |
---|
Keywords: | kbbug kbfix KB164499 |
---|
|