public final class Count extends Object implements Function
| Constructor and Description |
|---|
Count() |
| Modifier and Type | Method and Description |
|---|---|
ValueEval |
evaluate(ValueEval[] args,
int srcCellRow,
int srcCellCol) |
static Count |
subtotalIgnoreHiddenInstance() |
static Count |
subtotalInstance()
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()
Subtotal
If there are other subtotals within argument refs (or nested subtotals), these nested subtotals are ignored to avoid double counting.
Subtotalpublic static Count subtotalIgnoreHiddenInstance()
Copyright © 2020. All rights reserved.