public final class Count extends java.lang.Object implements Function
| Constructor and Description |
|---|
Count() |
| Modifier and Type | Method and Description |
|---|---|
ValueEval |
evaluate(ValueEval[] args,
int srcCellRow,
int srcCellCol) |
static Count |
subtotalInstance(boolean includeHiddenRows)
Create an instance of Count to use in
Subtotal |
public ValueEval evaluate(ValueEval[] args, int srcCellRow, int srcCellCol)
evaluate in interface Functionargs - the evaluated function arguments. Empty values are represented with
BlankEval or MissingArgEval, never null.srcCellRow - row index of the cell containing the formula under evaluationsrcCellCol - column index of the cell containing the formula under evaluationErrorEval, never null.
Note - Excel uses the error code #NUM! instead of IEEE NaN, so when
numeric functions evaluate to Double.NaN be sure to translate the result to ErrorEval.NUM_ERROR.public static Count subtotalInstance(boolean includeHiddenRows)
Subtotal
If there are other subtotals within argument refs (or nested subtotals), these nested subtotals are ignored to avoid double counting.
includeHiddenRows - true to include hidden rows in the aggregate, false to skip themSubtotalCopyright 2022 The Apache Software Foundation or its licensors, as applicable.