查询后公式得不重复串联
H2 输入资料 , I2 是结果=TEXTJOIN(",",1,IF(COUNTIF(OFFSET(A2:A7,,{0,1,2,3,4,5}),H2),A1:F1,""))
2019以上或WPS支持 =TEXTJOIN(",",1,IF(COUNTIF(OFFSET(B$2:B$7,,COLUMN($A:$F)-1),H2),$B$1:$F$1,"")) 三键结束 =TEXTJOIN(",",,IF(MMULT(TRANSPOSE(ROW(INDIRECT("1:"&COUNTA(A1:F1))))^0,COUNTIF(H2,A2:F7)),A1:F1,"")) 多谢 北方浪子 ,大国石匠 ,回到原速 大佬,问题解决了,您们太牛了 发现没有新函数好悲哀
我的2016已经太out了 =TEXTJOIN(",",1,IF(TRANSPOSE(MMULT(TRANSPOSE(--(A2:F6=H2)),ROW(1:5)^0))<>0,A1:F1,"")) 2019版以上才有TEXTJOIN
以下只好用 辅助格方法
I2 =IF(OR(A2:A7=$H$2),A1&IF(J7="","",","),"")&J7
三键输入,右拉 =TEXTJOIN(",",,IF(MMULT(U1:Z1+1,N(H2=A2:F7)),A1:F1,"")) =MID(SUBSTITUTE(MID(SUM(IFERROR(SMALL(IF(MMULT(TRANSPOSE(N(A2:F7=H2)),ROW(1:6)),ROW(1:6)),ROW(1:6))/10^(ROW(1:6)*2),)),3,99),0,",项目"),2,99)
页:
[1]