11.5 枚举分组
有数据如下:
将 Apple,Banana,Orange 归为一组取名为 Fruits,将 Pork,Beef,Mutton 归为一组,取名为 Meats,剩下的商品归为一组,取名为 Others,分别统计这三组的总销售额:
=spl("=E(?1).groups(if([""Apple"",""Banana"",""Orange""].pos(Goods)!=null:""Fruits"", [""Pork"",""Beef"",""Mutton""].pos(Goods)!=null:""Meats""; ""Others""):Goods; sum(Sales):Sales)", A1:B14)