[]
Serializable, Comparable<ConsolidationFunction>, ConstableUse this enumeration to control how values are summarized in features such as IRange.subtotal(int,ConsolidationFunction,int[]) and PivotTable data fields.
Object[][] sourceData = {
{"Region", "Amount"},
{"East", 120},
{"East", 80},
{"West", 90}
};
worksheet.getRange("A1:B4").setValue(sourceData);
worksheet.getRange("A1:B4").subtotal(1, ConsolidationFunction.Sum, new int[] {2});
Enum.EnumDesc<E extends Enum<E>>static ConsolidationFunctionstatic ConsolidationFunction[]values()name - the name of the enum constant to be returned.IllegalArgumentException - if this enum class has no constant with the specified nameNullPointerException - if the argument is null