发布网友 发布时间:2022-04-19 14:28
共3个回答
热心网友 时间:2023-09-03 05:29
如果能加辅助列,可以简单点
1、提取每个单元格第一组数据。E1=TRIM(MID(SUBSTITUTE(A1,"、"," "),1,10))
2、提取第二组。I1=TRIM(MID(SUBSTITUTE(A1,"、"," "),10,10))
3、提取第三组。M1=TRIM(MID(SUBSTITUTE(A1,"、"," "),26,10))
最后对比数据,显示结果:
Q1=IF(AND(E1=F1,F1=G1,G1=H1),E1,"")&IF(AND(I1=J1,J1=K1,K1=L1),I1,"")&IF(AND(M1=N1,N1=O1,O1=P1),M1,"")
热心网友 时间:2023-09-03 05:29
暂时没想到高大上的公式,来一个土一点的公式,F1单元格输入公式=TRIM(MID(IF(COUNTIF(A1:D1,"*"&LEFT(A1,FIND("、",A1)-1)&"*")=4,"、"&LEFT(A1,FIND("、",A1)-1),"")&IF(COUNTIF(A1:D1,"*"&TRIM(MID(SUBSTITUTE(A1,"、",REPT(" ",100)),2*100-99,100))&"*")=4,"、"&TRIM(MID(SUBSTITUTE(A1,"、",REPT(" ",100)),2*100-99,100)),"")&IF(COUNTIF(A1:D1,"*"&TRIM(MID(SUBSTITUTE(A1,"、",REPT(" ",100)),3*100-99,100))&"*")=4,"、"&TRIM(MID(SUBSTITUTE(A1,"、",REPT(" ",100)),3*100-99,100)),""),2,100))
下拉公式。(公式只写到每个单元格内有3组数据,如果大于3组,可继续往后写,公式会像火车一样很长,但车速不受影响!)
热心网友 时间:2023-09-03 05:30
用代码的自定义函数。
可以建立新的沟通渠道上传文件。私信我或评论后我私信你。