替楼主盘点一下,将相关人数统计出来之外,同时列出相应人员姓名。
- =LET(n,SUM(N($O6:$FZ6<>"")),nCol,SUBSTITUTE(ADDRESS(1,14+n,4),1,),sName,INDIRECT("O6:"&nCol&"6"),S,INDIRECT("O8:"&nCol&"1000"),Src,FILTER(S,(YEAR(C8:C1000)=F1)*(E8:E1000="团体")),a,BYCOL(Src,LAMBDA(x,SUM(IF(TRIM(x)="",0,1)))),b,SUM(N(a=0)),c,SUM(N(a<>0)),sList,FILTER(sName,a<>0),uList,FILTER(sName,a=0),sFull,N(BYCOL(Src,LAMBDA(x,SUM(IF(TRIM(x)="√",1,0))))=ROWS(Src)),d,SUM(N(sFull)),FullList,IFERROR(FILTER(sName,N(sFull)),""),Res,VSTACK(HSTACK(n,c,b,d),TRANSPOSE(IFNA(VSTACK(sName,sList,uList,FullList),""))),Res)
复制代码 |