如何按日期筛选并删除重复项
如何按照日期筛选并删除重复项如上图所示,标红部分为同一个日期内的重复项,需要删除重复项,仅保留一个
如上图所示,为删除重复项后的最终数据。注意:只要保证同一日期里同一人员只出现一次即可,出现在第几个单元格里随意。
C2
=TEXTJOIN("、",,IF(ISNA(MATCH(TRIM(MID(SUBSTITUTE(B2,"、",REPT(" ",99)),ROW(INDIRECT("1:"&LEN(B2)-LEN(SUBSTITUTE(B2,"、",))+1))*99-98,99)),TRIM(MID(SUBSTITUTE(CONCAT(IF(INT(A3:$A$9)=INT(A2),B3:$B$9&"、","")),"、",REPT(" ",99)),ROW($1:$99)*99-98,99)),)),TRIM(MID(SUBSTITUTE(B2,"、",REPT(" ",99)),ROW(INDIRECT("1:"&LEN(B2)-LEN(SUBSTITUTE(B2,"、",))+1))*99-98,99)),""))
=TEXTJOIN(",",,IF(ISERROR(MATCH(FILTERXML("<a><b>"&SUBSTITUTE(B2,"、","</b><b>")&"</b></a>","a/b"),IFERROR(FILTERXML("<a><b>"&SUBSTITUTE(TEXTJOIN("、",,IF(INT(A3:$A$9)=INT(A2),B3:$B$9,"")),"、","</b><b>")&"</b></a>","a/b"),""),)),FILTERXML("<a><b>"&SUBSTITUTE(B2,"、","</b><b>")&"</b></a>","a/b"),""))
下拉 检查了,试了几次都是#NAME?报错,求大佬教教~ Excel2016之后的版本才有Textjoin函数
大佬你好,很抱歉再打扰你!
我使用的是WPS2019.验证过TEXTJOIN函数可以正常使用,你贴的公式里有两个=TEXTJOIN,我复制第一个进去结果为空白,第二个就去结果是#NAME?,两个都复制进去后结果是#NAME?
比较小白,还望指导一下! =TEXTJOIN("、",1,IF(ISNA(MATCH(TRIM(MID(SUBSTITUTE(B2,"、",REPT(" ",99)),ROW(INDIRECT("1:"&LEN(B2)-LEN(SUBSTITUTE(B2,"、",))+1))*99-98,99)),TRIM(MID(SUBSTITUTE(CONCAT(IF(INT(A3:$A$9)=INT(A2),B3:$B$9&"、","")),"、",REPT(" ",99)),ROW($1:$99)*99-98,99)),)),TRIM(MID(SUBSTITUTE(B2,"、",REPT(" ",99)),ROW(INDIRECT("1:"&LEN(B2)-LEN(SUBSTITUTE(B2,"、",))+1))*99-98,99)),""))
Filterxml ?
=TEXTJOIN(",",1,IF(ISERROR(MATCH(FILTERXML("<a><b>"&SUBSTITUTE(B2,"、","</b><b>")&"</b></a>","a/b"),IFERROR(FILTERXML("<a><b>"&SUBSTITUTE(TEXTJOIN("、",,IF(INT(A3:$A$9)=INT(A2),B3:$B$9,"")),"、","</b><b>")&"</b></a>","a/b"),""),)),FILTERXML("<a><b>"&SUBSTITUTE(B2,"、","</b><b>")&"</b></a>","a/b"),"")) 唉,还是不行,可否麻烦大佬把您可以用的文件上传一份我参考下,我用FILTERXML函数会返回#NAME?,不懂是不是这个原因 ~~~~~~~~~
想给您发私信,等级不够,我下载了您的模板可以使用,但是更改数据范围后格子变空白了,没有数据了。
一直打扰您很抱歉,愿付报酬哈,不然过意不去一直打扰别人。
我excel基础比较薄弱,又遇到新的工作,头大
页:
[1]