Syntax :
SUMPRODUCT ( array1[, array2[, array3[, ...]]])
| array1, ... arrayN | typically area references, possibly cell references or scalar values |
|---|
The current implementation does not support the more advanced use cases of SUMPRODUCT, including
SUMPRODUCT((B2:B9=B12)*(C2:C9=C12)*D2:D9) (see example 3 in
https://support.microsoft.com/en-us/office/sumproduct-function-16753e75-9f68-4874-94ac-4d2145a2fd2e).
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private static boolean | |
| 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 srcCellRow, int column index of the cell containing the formula under evaluation srcCellCol)Implements org.
|
| private static ValueEval | |
| private static ValueEval | |
| private static double | getProductTerm(ValueEval ve, boolean
false for SUMPRODUCTs over area refs.Determines a |
| private static double | |
| private static void |
| Sumproduct | back to summary |
|---|---|
| public Sumproduct() | |
| areasAllSameSize | back to summary |
|---|---|
| private static boolean areasAllSameSize(TwoDEval[] args, int height, int width) | |
| evaluate | back to summary |
|---|---|
| public ValueEval evaluate(ValueEval[] args, int srcCellRow, int srcCellCol) Implements org.
| |
| evaluateAreaSumProduct | back to summary |
|---|---|
| private static ValueEval evaluateAreaSumProduct(ValueEval[] evalArgs) throws EvaluationException | |
| evaluateSingleProduct | back to summary |
|---|---|
| private static ValueEval evaluateSingleProduct(ValueEval[] evalArgs) throws EvaluationException | |
| getProductTerm | back to summary |
|---|---|
| private static double getProductTerm(ValueEval ve, boolean isScalarProduct) throws EvaluationException Determines a
| |
| getScalarValue | back to summary |
|---|---|
| private static double getScalarValue(ValueEval arg) throws EvaluationException | |
| throwFirstError | back to summary |
|---|---|
| private static void throwFirstError(TwoDEval areaEval) throws EvaluationException | |