本帖最后由 我的城市你来过 于 2024-7-27 10:45 编辑
20240726练习01
=LET(n,DROP(REDUCE("",$A$2:$A$6,LAMBDA(x,y,VSTACK(x,BYROW(CHOOSE({1,2},TEXTJOIN(", ",FALSE,OFFSET(y,,,,4),OFFSET(y,,5,,3)),TEXTSPLIT(OFFSET(y,,4),,",")),ARRAYTOTEXT)))),1),VSTACK($A$1:$H$1,CHOOSECOLS(WRAPROWS(TEXTSPLIT(TEXTJOIN(", ",,n),","),8),{1,2,3,4,8,5,6,7})))
=VSTACK($A$1:$H$1,CHOOSECOLS(DROP(TEXTSPLIT(REDUCE("",$A$2:$A$6,LAMBDA(x,y,VSTACK(x,HSTACK(TEXTSPLIT(OFFSET(y,,4),,","),OFFSET(y,,,,8)&","&TOCOL(REGEXP(OFFSET(y,,4),"[^,]+")))))),","),1),{2,3,4,5,1,7,8,9}))
|