本帖最后由 闻西 于 2020-9-26 22:39 编辑
自个试了一下公式是正确的,不过公式有点长。
=IF(SUM(--(3=IF(SUM(--(3=IF(SUM(--(2=MMULT((B3:B17<=TRANSPOSE(B3:B17))/TRANSPOSE(COUNTIF(B3:B17,B3:B17)),ROW(1:15)^0)))<2,MMULT((B3:B17<=TRANSPOSE(B3:B17))/TRANSPOSE(COUNTIF(B3:B17,B3:B17)),ROW(1:15)^0)-IF(MMULT((B3:B17<=TRANSPOSE(B3:B17))/TRANSPOSE(COUNTIF(B3:B17,B3:B17)),ROW(1:15)^0)<3,0,1),MMULT((B3:B17<=TRANSPOSE(B3:B17))/TRANSPOSE(COUNTIF(B3:B17,B3:B17)),ROW(1:15)^0))))<3,IF(SUM(--(2=MMULT((B3:B17<=TRANSPOSE(B3:B17))/TRANSPOSE(COUNTIF(B3:B17,B3:B17)),ROW(1:15)^0)))<2,MMULT((B3:B17<=TRANSPOSE(B3:B17))/TRANSPOSE(COUNTIF(B3:B17,B3:B17)),ROW(1:15)^0)-IF(MMULT((B3:B17<=TRANSPOSE(B3:B17))/TRANSPOSE(COUNTIF(B3:B17,B3:B17)),ROW(1:15)^0)<3,0,1),MMULT((B3:B17<=TRANSPOSE(B3:B17))/TRANSPOSE(COUNTIF(B3:B17,B3:B17)),ROW(1:15)^0))-IF(IF(SUM(--(2=MMULT((B3:B17<=TRANSPOSE(B3:B17))/TRANSPOSE(COUNTIF(B3:B17,B3:B17)),ROW(1:15)^0)))<2,MMULT((B3:B17<=TRANSPOSE(B3:B17))/TRANSPOSE(COUNTIF(B3:B17,B3:B17)),ROW(1:15)^0)-IF(MMULT((B3:B17<=TRANSPOSE(B3:B17))/TRANSPOSE(COUNTIF(B3:B17,B3:B17)),ROW(1:15)^0)<3,0,1),MMULT((B3:B17<=TRANSPOSE(B3:B17))/TRANSPOSE(COUNTIF(B3:B17,B3:B17)),ROW(1:15)^0))>3,1,0),IF(SUM(--(2=MMULT((B3:B17<=TRANSPOSE(B3:B17))/TRANSPOSE(COUNTIF(B3:B17,B3:B17)),ROW(1:15)^0)))<2,MMULT((B3:B17<=TRANSPOSE(B3:B17))/TRANSPOSE(COUNTIF(B3:B17,B3:B17)),ROW(1:15)^0)-IF(MMULT((B3:B17<=TRANSPOSE(B3:B17))/TRANSPOSE(COUNTIF(B3:B17,B3:B17)),ROW(1:15)^0)<3,0,1),MMULT((B3:B17<=TRANSPOSE(B3:B17))/TRANSPOSE(COUNTIF(B3:B17,B3:B17)),ROW(1:15)^0)))))<3,IF(SUM(--(3=IF(SUM(--(2=MMULT((B3:B17<=TRANSPOSE(B3:B17))/TRANSPOSE(COUNTIF(B3:B17,B3:B17)),ROW(1:15)^0)))<2,MMULT((B3:B17<=TRANSPOSE(B3:B17))/TRANSPOSE(COUNTIF(B3:B17,B3:B17)),ROW(1:15)^0)-IF(MMULT((B3:B17<=TRANSPOSE(B3:B17))/TRANSPOSE(COUNTIF(B3:B17,B3:B17)),ROW(1:15)^0)<3,0,1),MMULT((B3:B17<=TRANSPOSE(B3:B17))/TRANSPOSE(COUNTIF(B3:B17,B3:B17)),ROW(1:15)^0))))<3,IF(SUM(--(2=MMULT((B3:B17<=TRANSPOSE(B3:B17))/TRANSPOSE(COUNTIF(B3:B17,B3:B17)),ROW(1:15)^0)))<2,MMULT((B3:B17<=TRANSPOSE(B3:B17))/TRANSPOSE(COUNTIF(B3:B17,B3:B17)),ROW(1:15)^0)-IF(MMULT((B3:B17<=TRANSPOSE(B3:B17))/TRANSPOSE(COUNTIF(B3:B17,B3:B17)),ROW(1:15)^0)<3,0,1),MMULT((B3:B17<=TRANSPOSE(B3:B17))/TRANSPOSE(COUNTIF(B3:B17,B3:B17)),ROW(1:15)^0))-IF(IF(SUM(--(2=MMULT((B3:B17<=TRANSPOSE(B3:B17))/TRANSPOSE(COUNTIF(B3:B17,B3:B17)),ROW(1:15)^0)))<2,MMULT((B3:B17<=TRANSPOSE(B3:B17))/TRANSPOSE(COUNTIF(B3:B17,B3:B17)),ROW(1:15)^0)-IF(MMULT((B3:B17<=TRANSPOSE(B3:B17))/TRANSPOSE(COUNTIF(B3:B17,B3:B17)),ROW(1:15)^0)<3,0,1),MMULT((B3:B17<=TRANSPOSE(B3:B17))/TRANSPOSE(COUNTIF(B3:B17,B3:B17)),ROW(1:15)^0))>3,1,0),IF(SUM(--(2=MMULT((B3:B17<=TRANSPOSE(B3:B17))/TRANSPOSE(COUNTIF(B3:B17,B3:B17)),ROW(1:15)^0)))<2,MMULT((B3:B17<=TRANSPOSE(B3:B17))/TRANSPOSE(COUNTIF(B3:B17,B3:B17)),ROW(1:15)^0)-IF(MMULT((B3:B17<=TRANSPOSE(B3:B17))/TRANSPOSE(COUNTIF(B3:B17,B3:B17)),ROW(1:15)^0)<3,0,1),MMULT((B3:B17<=TRANSPOSE(B3:B17))/TRANSPOSE(COUNTIF(B3:B17,B3:B17)),ROW(1:15)^0)))-IF(IF(SUM(--(3=IF(SUM(--(2=MMULT((B3:B17<=TRANSPOSE(B3:B17))/TRANSPOSE(COUNTIF(B3:B17,B3:B17)),ROW(1:15)^0)))<2,MMULT((B3:B17<=TRANSPOSE(B3:B17))/TRANSPOSE(COUNTIF(B3:B17,B3:B17)),ROW(1:15)^0)-IF(MMULT((B3:B17<=TRANSPOSE(B3:B17))/TRANSPOSE(COUNTIF(B3:B17,B3:B17)),ROW(1:15)^0)<3,0,1),MMULT((B3:B17<=TRANSPOSE(B3:B17))/TRANSPOSE(COUNTIF(B3:B17,B3:B17)),ROW(1:15)^0))))<3,IF(SUM(--(2=MMULT((B3:B17<=TRANSPOSE(B3:B17))/TRANSPOSE(COUNTIF(B3:B17,B3:B17)),ROW(1:15)^0)))<2,MMULT((B3:B17<=TRANSPOSE(B3:B17))/TRANSPOSE(COUNTIF(B3:B17,B3:B17)),ROW(1:15)^0)-IF(MMULT((B3:B17<=TRANSPOSE(B3:B17))/TRANSPOSE(COUNTIF(B3:B17,B3:B17)),ROW(1:15)^0)<3,0,1),MMULT((B3:B17<=TRANSPOSE(B3:B17))/TRANSPOSE(COUNTIF(B3:B17,B3:B17)),ROW(1:15)^0))-IF(IF(SUM(--(2=MMULT((B3:B17<=TRANSPOSE(B3:B17))/TRANSPOSE(COUNTIF(B3:B17,B3:B17)),ROW(1:15)^0)))<2,MMULT((B3:B17<=TRANSPOSE(B3:B17))/TRANSPOSE(COUNTIF(B3:B17,B3:B17)),ROW(1:15)^0)-IF(MMULT((B3:B17<=TRANSPOSE(B3:B17))/TRANSPOSE(COUNTIF(B3:B17,B3:B17)),ROW(1:15)^0)<3,0,1),MMULT((B3:B17<=TRANSPOSE(B3:B17))/TRANSPOSE(COUNTIF(B3:B17,B3:B17)),ROW(1:15)^0))>3,1,0),IF(SUM(--(2=MMULT((B3:B17<=TRANSPOSE(B3:B17))/TRANSPOSE(COUNTIF(B3:B17,B3:B17)),ROW(1:15)^0)))<2,MMULT((B3:B17<=TRANSPOSE(B3:B17))/TRANSPOSE(COUNTIF(B3:B17,B3:B17)),ROW(1:15)^0)-IF(MMULT((B3:B17<=TRANSPOSE(B3:B17))/TRANSPOSE(COUNTIF(B3:B17,B3:B17)),ROW(1:15)^0)<3,0,1),MMULT((B3:B17<=TRANSPOSE(B3:B17))/TRANSPOSE(COUNTIF(B3:B17,B3:B17)),ROW(1:15)^0)))>3,1,0),IF(SUM(--(3=IF(SUM(--(2=MMULT((B3:B17<=TRANSPOSE(B3:B17))/TRANSPOSE(COUNTIF(B3:B17,B3:B17)),ROW(1:15)^0)))<2,MMULT((B3:B17<=TRANSPOSE(B3:B17))/TRANSPOSE(COUNTIF(B3:B17,B3:B17)),ROW(1:15)^0)-IF(MMULT((B3:B17<=TRANSPOSE(B3:B17))/TRANSPOSE(COUNTIF(B3:B17,B3:B17)),ROW(1:15)^0)<3,0,1),MMULT((B3:B17<=TRANSPOSE(B3:B17))/TRANSPOSE(COUNTIF(B3:B17,B3:B17)),ROW(1:15)^0))))<3,IF(SUM(--(2=MMULT((B3:B17<=TRANSPOSE(B3:B17))/TRANSPOSE(COUNTIF(B3:B17,B3:B17)),ROW(1:15)^0)))<2,MMULT((B3:B17<=TRANSPOSE(B3:B17))/TRANSPOSE(COUNTIF(B3:B17,B3:B17)),ROW(1:15)^0)-IF(MMULT((B3:B17<=TRANSPOSE(B3:B17))/TRANSPOSE(COUNTIF(B3:B17,B3:B17)),ROW(1:15)^0)<3,0,1),MMULT((B3:B17<=TRANSPOSE(B3:B17))/TRANSPOSE(COUNTIF(B3:B17,B3:B17)),ROW(1:15)^0))-IF(IF(SUM(--(2=MMULT((B3:B17<=TRANSPOSE(B3:B17))/TRANSPOSE(COUNTIF(B3:B17,B3:B17)),ROW(1:15)^0)))<2,MMULT((B3:B17<=TRANSPOSE(B3:B17))/TRANSPOSE(COUNTIF(B3:B17,B3:B17)),ROW(1:15)^0)-IF(MMULT((B3:B17<=TRANSPOSE(B3:B17))/TRANSPOSE(COUNTIF(B3:B17,B3:B17)),ROW(1:15)^0)<3,0,1),MMULT((B3:B17<=TRANSPOSE(B3:B17))/TRANSPOSE(COUNTIF(B3:B17,B3:B17)),ROW(1:15)^0))>3,1,0),IF(SUM(--(2=MMULT((B3:B17<=TRANSPOSE(B3:B17))/TRANSPOSE(COUNTIF(B3:B17,B3:B17)),ROW(1:15)^0)))<2,MMULT((B3:B17<=TRANSPOSE(B3:B17))/TRANSPOSE(COUNTIF(B3:B17,B3:B17)),ROW(1:15)^0)-IF(MMULT((B3:B17<=TRANSPOSE(B3:B17))/TRANSPOSE(COUNTIF(B3:B17,B3:B17)),ROW(1:15)^0)<3,0,1),MMULT((B3:B17<=TRANSPOSE(B3:B17))/TRANSPOSE(COUNTIF(B3:B17,B3:B17)),ROW(1:15)^0)))) |