Difference between revisions of "Documentation/How Tos/Calc: SUBTOTAL function"
m (Robot: Automated text replacement %s)
|Line 67:||Line 67:|
Revision as of 08:12, 3 May 2010
Returns SUM, AVERAGE, STDEV, etc. results for filtered data.
- range is the overall range from which cells for calculation are selected by filtering.
- function is a number that specifies the function to calculate, as follows:
- If range contains other SUBTOTAL functions they are ignored to avoid double counting.
You have a table in the cell range A1:B5 containing cities in column A and accompanying figures in column B. You have used an AutoFilter so that you only see rows containing the city Hamburg. You want to see the sum of the figures that are displayed; that is, just the subtotal for the filtered rows.
- returns the desired result.