Syntax :
SUBTOTAL ( functionCode, ref1, ref2 ... )
| functionCode | (1-11) Selects the underlying aggregate function to be used (see table below) |
| ref1, ref2 ... | Arguments to be passed to the underlying aggregate function |
| functionCode | Aggregate Function |
|---|---|
| 1 | AVERAGE |
| 2 | COUNT |
| 3 | COUNTA |
| 4 | MAX |
| 5 | MIN |
| 6 | PRODUCT |
| 7 | STDEV |
| 8 | STDEVP |
| 9 | SUM |
| 10 | VAR |
| 11 | VARP |
| 101 | AVERAGE |
| 102 | COUNT |
| 103 | COUNTA |
| 104 | MAX |
| 105 | MIN |
| 106 | PRODUCT |
| 107 | STDEV |
| 108 | STDEVP |
| 109 | SUM |
| 110 | VAR |
| 111 | VARP |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public ValueEval | evaluate(ValueEval[]
the evaluated function arguments. Empty values are represented with
args, int BlankEval or MissingArgEval, never null.row index of the cell containing the formula under evaluation srcRowIndex, int column index of the cell containing the formula under evaluation srcColumnIndex)Implements org.
|
| private static Function |
| Subtotal | back to summary |
|---|---|
| public Subtotal() | |
| evaluate | back to summary |
|---|---|
| public ValueEval evaluate(ValueEval[] args, int srcRowIndex, int srcColumnIndex) Implements org.
| |
| findFunction | back to summary |
|---|---|
| private static Function findFunction(int functionCode) throws EvaluationException | |