这样可以不
=LET(a,FILTER(A2:C7,ISNUMBER(FIND("短袖",C2:C7))),b,FILTER(A2:C7,ISNUMBER(FIND("长裤",C2:C7))),c,FILTER(A2:C7,ISNUMBER(FIND("套装",C2:C7))),d,HSTACK(CHOOSECOLS(a,1,2),REGEXP(CHOOSECOLS(a,3),"\.\K\d+"),REGEXP(CHOOSECOLS(a,3),":\K\d+"),IFNA(EXPAND("短袖",ROWS(a)),"短袖")),e,HSTACK(CHOOSECOLS(b,1,2),REGEXP(CHOOSECOLS(b,3),"\.\K\d+"),REGEXP(CHOOSECOLS(b,3),":\K\d+"),IFNA(EXPAND("长裤",ROWS(b)),"长裤")),f,HSTACK(CHOOSECOLS(c,1,2),REGEXP(CHOOSECOLS(c,3),"\.\K\d+"),REGEXP(CHOOSECOLS(c,3),":\K\d+"),IFNA(EXPAND("套装",ROWS(c)),"套装")),VSTACK({"下单时间","收货人","码长","数量","类别"},d,e,f))
|