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
SergeiBaklan
Sep 02, 2020Diamond Contributor
Mikael_Toivonen
Jan 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.