Excel 2002 includes new functionality for the
AutoSum button, where a drop-down list allows you to select the functions to analyze your list. Those functions include the following:
These functions behave differently than the SUM function when they reference a list with an AutoFilter on it.
When you use the
AutoSum button to show the sum of values in such a list, the function =SUBTOTAL(9,
ListRange) is inserted in the worksheet, where
ListRange is the range of cells whose values that you want to sum. The SUBTOTAL function ignores values in rows hidden by an AutoFilter. If you use the
AutoSum button to enter results other than SUM, the function does not insert a SUBTOTAL function in place of the standard function. For example, if you select
Average in the
AutoSum button drop-down list, the inserted function is =AVERAGE(ListRange). The AVERAGE function, like the COUNT, MAX, MIN, and SUM functions, includes values from hidden cells in the result.
NOTE: This behavior does not apply to lists or ranges that include rows or columns manually hidden by using the
Hide command in the
Row or
Column options on the
Format menu. In that case, by using the
AutoSum button, you insert the SUM function rather than the SUBTOTAL function into the worksheet. All values in the range, whether hidden or visible, are included in the aggregate result. Furthermore, the SUBTOTAL function ignores only hidden data in lists that have an AutoFilter, or lists that have been subtotaled.