Top Description Fields Constructors Methods
org.apache.poi.ss.formula.functions

public final Class Averageifs

extends Baseifs
Class Inheritance
Imports
org.apache.poi.ss.formula.eval.ErrorEval, .NumberEval, .ValueEval

Implementation for the Excel function AVERAGEIFS

Syntax :

AVERAGEIFS ( average_range, criteria_range1, criteria1, [criteria_range2, criteria2], ...)

Field Summary

Modifier and TypeField and Description
public static final FreeRefFunction
instance

Singleton

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
protected Baseifs.Aggregator
protected boolean
hasInitialRange()

Implements abstract org.apache.poi.ss.formula.functions.Baseifs.hasInitialRange.

https://support.microsoft.com/en-us/office/averageifs-function-48910c45-1fc0-4389-a028-f7c5c3001690 AVERAGEIFS(average_range, criteria_range1, criteria1, [criteria_range2, criteria2], ...) need at least 3 arguments and need to have an odd number of arguments (average_range plus x*(criteria_range, criteria))

Inherited from org.apache.poi.ss.formula.functions.Baseifs:
convertRangeArgevaluate

Field Detail

instanceback to summary
public static final FreeRefFunction instance

Singleton

Constructor Detail

Averageifsback to summary
public Averageifs()

Method Detail

createAggregatorback to summary
protected Baseifs.Aggregator createAggregator()

Implements abstract org.apache.poi.ss.formula.functions.Baseifs.createAggregator.

Annotations
@Override
hasInitialRangeback to summary
protected boolean hasInitialRange()

Implements abstract org.apache.poi.ss.formula.functions.Baseifs.hasInitialRange.

https://support.microsoft.com/en-us/office/averageifs-function-48910c45-1fc0-4389-a028-f7c5c3001690 AVERAGEIFS(average_range, criteria_range1, criteria1, [criteria_range2, criteria2], ...) need at least 3 arguments and need to have an odd number of arguments (average_range plus x*(criteria_range, criteria))

Returns:boolean

Doc from org.apache.poi.ss.formula.functions.Baseifs.hasInitialRange.

true if there should be a range argument before the criteria pairs

Annotations
@Override