如果要公式可以用VBA代码 For Each循环求解。另可以用一个简单的方法如下图:
M+N的结果为1~16, M+N+L=16的可能组合如下,统计个数=COUNTIF(B3:I11,7)+COUNTIF(B3:I11,8)+COUNTIF(B3:I11,9)+COUNTIF(B3:I11,11)+COUNTIF(B3:I11,13) +COUNTIF(B3:I11,14)=36
大于18统计个数==COUNTIF(B3:I11,16)*5+COUNTIF(B3:I11,15)*4+COUNTIF(B3:I11,14)*4+COUNTIF(B3:I11,13)*3+COUNTIF(B3:I11,12)*3+COUNTIF(B3:I11,11)*2+COUNTIF(B3:I11,10)*1=71