Quantcast
Channel: Hot Weekly Questions - Web Applications Stack Exchange
Viewing all articles
Browse latest Browse all 9626

Google Sheets trying to combine and un-combine text join

$
0
0

Ok, Unfortunatly due to security I cannot share the page, but I am using the following codes

=ARRAY_CONSTRAIN(
ARRAYFORMULA(iferror(
TEXTJOIN(",",TRUE,unique(IF(($D4=Section!C$2:AW$2),Section!C$3:AW$4,"")),"")
))
, 1, 1)
=ARRAY_CONSTRAIN(
ARRAYFORMULA(
TEXTJOIN(",",TRUE,if(A1="","",Unique(IF(query((MDS!$E$4:$CU$4="TRUE")*(Import!$D$1=MDS!A:A)*(A1=MDS!E:CU)),query(MDS!C:C),"")))))
, 1, 1
)

Which works great aside from the unique not working. When I try and add unique at the end it tells me that the ranges don't align. Which is because I am trying to get rid of Duplicates. I have tried searching online, and have tried creating a separate column(s) using

=iferror(sort(unique(TRIM(transpose(split(textjoin(",",true,iferror(split(C1,","))),"|"))))),"")

To the same issue still am not able to get rid of duplicates, that account for everything. Say one cell has NYC, NYC, another has ESC, ESC. Then there is another one that has Con, Con, ESC and that causes more issues, as sometimes it is only 1 name others it can be up to 10 duplicates in the same cell. Can anyone assist me with this please?


Viewing all articles
Browse latest Browse all 9626

Trending Articles