本帖最后由 alan57 于 2023-5-9 15:02 编辑
溢出
- =DROP(REDUCE(0,A6:A18,LAMBDA(s,t,VSTACK(s,LET(x,t,y,$B$1:$K$1,z,$B$2:$K$2,_d,TOCOL(TEXTSPLIT(z,XLOOKUP(--MID(x,SEQUENCE(LEN(x)),1),z,y),,1),3),_e,INDEX(_d,DROP(REDUCE(0,ISERR(FIND(z,x,1))*1,LAMBDA(x,y,HSTACK(x,IF(y=0,0,MAX(x)+y)))),,1)),IF(x="",z,IF(ISERR(FIND(z,x)),_e,y)))))),1)
复制代码
单独一行
- =LET(x,A6,y,$B$1:$K$1,z,$B$2:$K$2,_d,TOCOL(TEXTSPLIT(z,XLOOKUP(--MID(x,SEQUENCE(LEN(x)),1),z,y),,1),3),_e,INDEX(_d,DROP(REDUCE(0,ISERR(FIND(z,x,1))*1,LAMBDA(x,y,HSTACK(x,IF(y=0,0,MAX(x)+y)))),,1)),IF(x="",z,IF(ISERR(FIND(z,x)),_e,y)))
复制代码
|