Data Associated with Blank Cells May Be Excluded from SubtotalsLast reviewed: February 12, 1998Article ID: Q164499 |
The information in this article applies to:
SYMPTOMSIn 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.
CAUSEThis problem occurs when the following conditions are true:
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.
RESOLUTIONTo 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: 1type 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: 1When 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 STATUSMicrosoft 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. MORE INFORMATION
Behavior in Microsoft Excel 5.0 and 7.0In the Subtotal dialog box, if the field you are selecting in the "At each change in" list contains empty cells, Microsoft Excel ignores the rows that contain the empty cells when you clear the Summary Below Data check box. Example: To see this behavior, use the following steps:
Behavior in Microsoft Excel 97 for WindowsIn Microsoft Excel 97, in the Subtotal dialog box, if the field you are selecting in the "At each change in" list contains empty cells, the behavior is the same regardless of whether you clear the Summary Below Data check box. Example: To see this behavior, use the following steps:
REFERENCESFor more information about subtotals, click the Index tab in Microsoft Excel Help, type the following text
Subtotals, data summaryand then double-click the selected text to go to the "Summarize data by using subtotals and outlines" topic.
|
Additional query words: XL97 sub total
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |