选中所有行。
1.Data->Group
对所用行加group。
2.Data->Subtotal
click "ok", choose one column as "group by " column in "At each change in", choose "Use funtion" to statistics, choose one column as statistics column
we can add several group only when we uncheck "Replace current subtotals"