sql中直接按产品型号分组后。。取H列最小值了
select 产品型号,min(组数) as 最小组数 from 表 group by 产品型号
前面用分组,后面用汇总取最小值
A1 = if(count(A1[!0]{A1 = $A1}) > 1, A1, 1)&&$$$ = max(B1[!0]{A1 = if(count(A1[!0]{A1 = $A1}) > 1, A1, 1)})