請問各位大大,
我有個excel問題請求大大協助解答,如下:
A1~F20區域有1~36數字分布,如何用陣列找出出現次數最少及次少的數字,分別存入I1及I2
試試看
輸入完畢後要按Ctrl
+Shift
+Enter
=MATCH(MIN(COUNTIF($A$1:$F$20,ROW($A$1:$A$36))),COUNTIF($A$1:$F$20,ROW($A$1:$A$36)),0)
=MATCH(MAX(COUNTIF($A$1:$F$20,ROW($A$1:$A$36))),COUNTIF($A$1:$F$20,ROW($A$1:$A$36)),0)
能否剔除掉未出現的數字,僅計算A1~F20有出現的數字
=MATCH(MIN(IF(COUNTIF($A$1:$F$20,ROW($A$1:$A$36))>0,COUNTIF($A$1:$F$20,ROW($A$1:$A$36)),"")),IF(COUNTIF($A$1:$F$20,ROW($A$1:$A$36))>0,COUNTIF($A$1:$F$20,ROW($A$1:$A$36)),""),0)
出現次少(第二少)數字如何用陣列計算出來
=MATCH(MIN(IF((COUNTIF($A$1:$F$20,ROW($A$1:$A$36))>MIN(IF(COUNTIF($A$1:$F$20,ROW($A$1:$A$36))>0,COUNTIF($A$1:$F$20,ROW($A$1:$A$36)),""))),COUNTIF($A$1:$F$20,ROW($A$1:$A$36)),"")),IF((COUNTIF($A$1:$F$20,ROW($A$1:$A$36))>MIN(IF(COUNTIF($A$1:$F$20,ROW($A$1:$A$36))>0,COUNTIF($A$1:$F$20,ROW($A$1:$A$36)),""))),COUNTIF($A$1:$F$20,ROW($A$1:$A$36)),""),0)