本帖最后由 edwin11891 于 2024-11-21 22:25 编辑
只需要修改开始的范围即可:
=BYROW(C2:AP26,LAMBDA(y,LET(fx,LAMBDA(XX,IF((XX="")*(OFFSET(XX,-1,1)="")*(OFFSET(XX,1,-1)=""),1,0)),fy,LAMBDA(YY,SUBSTITUTE(ADDRESS(1,YY,4),1,)),nCol,MAX(COLUMN(y)),eCol,fy(nCol),sCol,fy(nCol-1),t,MAP(y,LAMBDA(x,IF((fx(x)=1)*(fx(INDIRECT(eCol&ROW(x)))=1)*(fx(INDIRECT(sCol&ROW(x)))=1),1,0))),s,LEN(TEXTSPLIT(CONCAT(t),0)),R,CONCAT(TEXTSPLIT(CONCAT(s),0)),Rf,IF(MID(R,LEN(R)-SEQUENCE(,LEN(R)-1,0),1)*1>1,1,0),SD,XMATCH(0,Rf,)-1,Res,IFERROR(SUM(TAKE(Rf,,SD)),""),IF(Res<2,"",Res)))) |