Returns the subtotal of a given range of data.
Syntax
SUBTOTAL(function; range)
function: Number that specifies the function to calculate. Eg., 1
|
function |
Function returned |
|
1 2 3 4 5 6 7 8 9 10 11 |
AVERAGE COUNT COUNTA MAX MIN PRODUCT STDEV STDEVP SUM VAR VARP |
Examples
|
Formula |
Result |
|
=SUBTOTAL(1;D2:D8) |
$42,463 |
|
=SUBTOTAL(4;B2:B8) |
466 |
Possible Errors
|
Errors |
Meaning |
|
#N/A! |
|
|
#NAME! |
|
|
#VALUE! |
|
|
#REF! |
|
Similar Functions
AVERAGE
COUNT
COUNTA
MAX
MIN
PRODUCT
STDEV
STDEVP
SUM
VAR
VARP