Forum Discussion
Kirsty Lowe
May 01, 2018Copper Contributor
Removing duplicates when using TEXTJOIN
Hi, I am using TEXTJOIN to being into one cell entries from a separate column, where I am ignoring empty cells and separately by &. This works fine. However, I can have duplicate values in an indi...
- May 01, 2018
Kristy,
I got the below formula for you thanks to this amazing https://www.youtube.com/watch?v=QJ2O07EB80Q!
=TEXTJOIN(" & ",TRUE,IF(MATCH(A1:A6,A1:A6,0)=ROW(A1:A6)-ROW(A1)+1,A1:A6,""))
Please find it in the attached file.
Regards
leo_bourikov
Sep 02, 2020Copper Contributor
Kirsty Lowe I did this and attached screenshot (Excel 2016):
=TEXTJOIN(",",TRUE,UNIQUE(IF(A:A=A2,B:B,"")))
Hope it helps!
- Chandruj18Feb 01, 2021Copper Contributor
leo_bourikov Thanks it helped
- SergeiBaklanSep 02, 2020Diamond Contributor
- Mikael_ToivonenJan 16, 2022Copper Contributor
This is a great answer if using a one the the more modern Excel versions. FILTER(), UNIQUE() and ARRAYTOTEXT() used in a clear, no-nonsense way.
- leo_bourikovSep 03, 2020Copper Contributor
SergeiBaklan thanks for sharing, unfortunately I cannot use this one as my Excel 2016 must be older version that does not contain ARRAYTOTEXT 😞