XL: Data Associated with Blank Cells May Be Excluded from SubtotalsID: Q164499
|
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.
This problem occurs when the following conditions are true:
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
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.
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
A1: Name B1: Amount
A2: a B2: 1
A3: B3: 1
A4: B4: 1
A5: a Total B5: 3
A6: b B6: 1
A7: B7: 1
A8: b Total B8: 2
A9: c B9: 1
A10: c Total B10: 1
A11: Grand Total B11: 6
NOTE: The blank cells in column A are associated with the value for the
preceding nonblank cell in the column.
A1: Name B1: Amount
A2: Grand Total B2: 6
A3: a Total B3: 1
A4: a B4: 1
A5: Total B5: 3
A6: B6: 1
A7: B7: 1
A8: b B8: 1
A9: Total B9: 2
A10: B10: 1
A11: c B11: 1
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
A1: Name B1: Amount
A2: a B2: 1
A3: a Total B3: 1
A4: B4: 1
A5: B5: 1
A6: b B6: 1
A7: b Total B7: 1
A8: B8: 1
A9: c B9: 1
A10: c Total B10: 1
A11: Grand Total B11: 6
A1: Name B1: Amount
A2: Grand Total B2: 6
A3: a Total B3: 1
A4: a B4: 1
A5: B5: 1
A6: B6: 1
A7: b Total B7: 1
A8: b B8: 1
A9: B9: 1
A10: c Total B10: 1
A11: c B11: 1
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.
Additional query words: sub total
Keywords : kbtool kbdta xllist
Version : WINDOWS:5.0,7.0
Platform : WINDOWS
Issue type : kbbug
Last Reviewed: July 30, 1999