本帖最后由 leepoison 于 2024-8-2 01:55 编辑
- =COUNTA(UNIQUE(MAKEARRAY(200,1,LAMBDA(m,n,TEXTJOIN(",",1,LAMBDA(x,LET(rec,LAMBDA(x,LET(y,SORT(TAKE(SORTBY(FILTER($C$2:$AK$2,$C$2:$AK$2<x),RANDARRAY(,x-1)),,2),,1,1),IF(SUM(y)=x,y,rec(x)))),rec(x)))(<font color="Red">8</font>))))))
复制代码
- =COUNTA(UNIQUE(MAKEARRAY(200,1,LAMBDA(m,n,TEXTJOIN(",",1,LAMBDA(x,LET(rec,LAMBDA(x,LET(y,SORT(TAKE(SORTBY(FILTER($C$2:$AK$2,$C$2:$AK$2<x),RANDARRAY(,x-1)),,2),,1,1),IF(SUM(y)=x,y,rec(x)))),rec(x)))(8))))))
复制代码
下面这个电脑不好就不要用
- =MAP(SEQUENCE(28,,8),LAMBDA(k,COUNTA(UNIQUE(MAKEARRAY(200,1,LAMBDA(m,n,TEXTJOIN(",",1,LAMBDA(x,LET(rec,LAMBDA(x,LET(y,SORT(TAKE(SORTBY(FILTER($C$2:$AK$2,$C$2:$AK$2<x),RANDARRAY(,x-1)),,2),,1,1),IF(SUM(y)=x,y,rec(x)))),rec(x)))(k))))))))
复制代码
|