Class Sumif
java.lang.Object
org.apache.poi.ss.formula.functions.Sumif
- All Implemented Interfaces:
Function,Function2Arg,Function3Arg
Implementation for the Excel function SUMIF
Syntax :
SUMIF ( range, criteria, sum_range )
| range | The range over which criteria is applied. Also used for addend values when the third parameter is not present |
|---|---|
| criteria | The value or expression used to filter rows from range |
| sum_range | Locates the top-left corner of the corresponding range of addends - values to be added (after being selected by the criteria) |
- Author:
- Josh Micich
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
Sumif
public Sumif()
-
-
Method Details
-
evaluate
Description copied from interface:Function2Arg -
evaluate
public ValueEval evaluate(int srcRowIndex, int srcColumnIndex, ValueEval arg0, ValueEval arg1, ValueEval arg2) Description copied from interface:Function3Arg -
evaluate
- Specified by:
evaluatein interfaceFunction- Parameters:
args- the evaluated function arguments. Empty values are represented withBlankEvalorMissingArgEval, nevernull.srcRowIndex- row index of the cell containing the formula under evaluationsrcColumnIndex- column index of the cell containing the formula under evaluation- Returns:
- The evaluated result, possibly an
ErrorEval, nevernull. Note - Excel uses the error code #NUM! instead of IEEE NaN, so when numeric functions evaluate toDouble.NaNbe sure to translate the result toErrorEval.NUM_ERROR.
-