SUBTOTAL
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
1isAVERAGE2isCOUNT3isCOUNTA4isMAX5isMIN6isPRODUCT7isSTDEV8isSTDEVP9isSUM10isVAR11isVARPHidden 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.
- Cells that are hidden due to auto filter criteria are never included in
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.

Error rendering macro 'excellentable' : Page loading timed out