L3:
- =LET(sBirth,F3:F9,sDept,C3:C9,sName,B3:B9,sMonth,K3:K14,t,DROP(PIVOTBY(sBirth,HSTACK(MATCH(sDept,sDept,),sDept),sName,COUNTA,0,0,,0),2),s,REDUCE("",sMonth,LAMBDA(x,y,VSTACK(x,IFERROR(FILTER(DROP(t,,1),TAKE(t,,1)=y),"")))),DROP(IFERROR(s,""),1))
复制代码
如果需要列举出是哪些人的生日,公式为:
- =LET(sBirth,F3:F9,sDept,C3:C9,sName,B3:B9,sMonth,K3:K14,t,DROP(PIVOTBY(sBirth,HSTACK(MATCH(sDept,sDept,),sDept),sName,LAMBDA(x,TEXTJOIN(",",,x)),0,0,,0),2),s,REDUCE("",sMonth,LAMBDA(x,y,VSTACK(x,IFERROR(FILTER(DROP(t,,1),TAKE(t,,1)=y),"")))),DROP(IFERROR(s,""),1))
复制代码
|