本帖最后由 cinlo 于 2021-11-10 22:08 编辑
K2-P2区域数组公式:
不偷鸡219字符:
- =IF(I$2+I$3+I$4<A2,"",IF(A$1:F$1="序号",A2,OFFSET(A$1,MOD(MIN(IF(MMULT(COUNTIF(O$1:O1,E$2:E75)+(COUNTIFS(N$1:N1,D$2:D75,M$1:M1,{"","><"}&C$2:C75)>=SUMIF(H$2:H4,D$2:D75,I$2)/{2,1}),{1;1}),,A$2:A75-F$2:F75/1%%)),100),,,6)))
复制代码 偷点鸡214字符:还是K2-P2区域数组
- =IF(I$2+I$3+I$4<A2,"",IF(J1:O1=0,A2,OFFSET(A$1,MOD(MIN(IF(MMULT(COUNTIF(O$1:O1,E$2:E75)+(COUNTIFS(N$1:N1,D$2:D75,M$1:M1,{"","><"}&C$2:C75)>=SUMIF(H$2:H4,D$2:D75,I$2)/{2,1}),{1;1}),,A$2:A75-F$2:F75/1%%)),100),,,6)))
复制代码 终于又减了13个,201字符:还是K2-P2区域数组:- IF(I$2+I$3+I$4<A2,"",IF(J1:O1=0,A2,OFFSET(A$1,MOD(MIN(IF(MMULT(N(COUNTIFS(N$1:N1,D$2:D75,OFFSET(M$1:M1,,{0,1,2}),C$2:E75)>=SUMIF(H$2:H4,D$2:D75,I$2)/{2,1,99}),A2:A4),,A$2:A75-F$2:F75/1%%)),100),,,6)))
复制代码 海鲜函数来一个,还是201字符:- =IF(I$2+I$3+I$4<A2,"",IF(J1:O1=0,A2,OFFSET(A$1,MATCH(1,FREQUENCY(-1,(MMULT(N(COUNTIFS(N$1:N1,D$2:D75,OFFSET(M$1:M1,,{0,1,2}),C$2:E75)<SUMIF(H$2:H4,D$2:D75,I$2)/{2,1,99}),{1;1;1})=3)*-F$2:F75%),),,,6)))
复制代码 非常艰难地减1个,200字符:- IF(I$2+I$3+I$4<A2,"",INDEX(IF(J1:O1=0,A2,A$2:F75),MOD(MIN(IF(MMULT(N(COUNTIFS(N$1:N1,D$2:D75,OFFSET(M$1:M1,,{0,1,2}),C$2:E75)>=SUMIF(H$2:H4,D$2:D75,I$2)/{2,1,99}),A2:A4),,A$2:A75-F$2:F75/1%%)),100)))
复制代码 终于200以内了,194字符:
- =IF(I$2+I$3+I$4<A2,"",INDEX(IF(J1:O1=0,A2,A$2:F75),MATCH(1,FREQUENCY(2,MMULT(N(COUNTIFS(N$1:N1,D$2:D75,OFFSET(M$1:M1,,{0,1,2}),C$2:E75)<SUMIF(H$2:H4,D$2:D75,I$2)/{2,1,99}),{1;1;1})-F$2:F75%),)))
复制代码 用IFERROR,184字符:- =IFERROR(INDEX(IF(J1:O1=0,A2,A$2:F75),MATCH(1,FREQUENCY(2,MMULT(N(COUNTIFS(N$1:N1,D$2:D75,OFFSET(M$1:M1,,{0,1,2}),C$2:E75)<SUMIF(H$2:H4,D$2:D75,I$2)/{2,1,99}),{1;1;1})-F$2:F75%),)),"")
复制代码
|