Example: subtotal method

This example subtotals the second and the third column by average, and groups the result by the fifth column

  Range range = sheet.range("A1:E6");
  String[] fields = {"2","3"};
  range.subtotal(fields, 5, Constant.SYMPHONY_GENERAL_FUNCTION_AVERAGE,true,true,true,false);

Related information

subtotal method