本帖最后由 edwin11891 于 2024-11-3 20:36 编辑
- =LET(Sa,C3:C65,Da,D3:D65,Sb,G3:G65,Db,H3:H65,Ra,MATCH(Da,SORT(UNIQUE(Da),1,-1),),Rb,MATCH(Db,SORT(UNIQUE(Db),1,-1),),a,MAP(SEQUENCE(ROWS(Da)),LAMBDA(x,LET(Scorb,INDEX(Rb,x),Scora,XLOOKUP(INDEX(Sb,x),Sa,Ra,"",0),SS,IF(Scorb<Scora,Scora&"晋"&Scorb,""),SS))),a)
复制代码
条件格式比较复杂,在M列设置辅助列比较方便:
- =LET(Sa,C3:C65,Da,D3:D65,Sb,G3:G65,Db,H3:H65,Ra,MATCH(Da,SORT(UNIQUE(Da),1,-1),),Rb,MATCH(Db,SORT(UNIQUE(Db),1,-1),),a,MAP(SEQUENCE(ROWS(Da)),LAMBDA(x,LET(Scora,INDEX(Ra,x),Scorb,XLOOKUP(INDEX(Sb,x),Sa,Ra,"",0),IF(Scorb<Scora,1,IF(Scorb=Scora,0,-1))))),a)
复制代码
|