Name
SUBTOTAL(functioncode, value1, value2,...)
Definition
This function calculates a subtotal of a list of numbers using a specified built-in function
Syntax
-
function code- required and type of subtotal to create.Function code can be a value ranging from 1-11
-
-
1isAVERAGE -
2isCOUNT -
3isCOUNTA -
4isMAX -
5isMIN -
6isPRODUCT -
7isSTDEV -
8isSTDEVP -
9isSUM -
10isVAR -
11isVARP -
Hidden values can be skipped for any of these codes by prepending10(to the single-digit codes) or1(to the 2-digit codes). e.g. 102 forCOUNTwhile skipping hidden cells, and110forVARwhile doing so.
-
-
value 2- optional and the second number used to compare. Assumed zero by default.
-
Cells that are hidden due to auto filter criteria are never included in
SUBTOTAL, irrespective of thefunction_codeused. -
Cells within any of the specified
rangearguments that containSUBTOTALcalls are ignored to prevent double-counting.
-
Step 1 :To begin to use the SUBTOTAL formula, start with the Excellentable you would like to edit.
Step 2 : Then type the SUBTOTAL Formula in the cell you have chosen to display the outcome:
Step 3 : Type in the complete SUBTOTAL formula for a cell as shown below:
Step 4 : Excellentable will generate the outcome when hitting enter.
There were errors rendering macro:
- An unknown error occurred.