I am trying to concatenate unique column text into a single cell. After spending an afternoon researching, I can now concatenate all the text in different column cells and remove duplicates. However, if one of these cells is empty, I get a blank value.
as an example, I want to concatenate all the letters in one cell using this formula: =TEXTJOIN(",",TRUE,IF(COLUMN(A2:D2)=MATCH(A2:D2,A2:D2,0),A2:D2,""))
A B C D E
[TABLE="width: 320"]
<tbody>[TR]
[TD="width: 64"]a[/TD]
[TD="width: 64"]a[/TD]
[TD="width: 64"]g[/TD]
[TD="width: 64"]z[/TD]
[TD="class: xl63, width: 64"]a,g,z[/TD]
[/TR]
</tbody>[/TABLE]
[TABLE="width: 320"]
<tbody>[TR]
[TD="width: 64"]a[/TD]
[TD="width: 64"][/TD]
[TD="width: 64"]g[/TD]
[TD="width: 64"]z[/TD]
[TD="class: xl65, width: 64"]#N/A[/TD]
[/TR]
</tbody>[/TABLE]
What do I need to add such that it ignores blank cells?
as an example, I want to concatenate all the letters in one cell using this formula: =TEXTJOIN(",",TRUE,IF(COLUMN(A2:D2)=MATCH(A2:D2,A2:D2,0),A2:D2,""))
A B C D E
[TABLE="width: 320"]
<tbody>[TR]
[TD="width: 64"]a[/TD]
[TD="width: 64"]a[/TD]
[TD="width: 64"]g[/TD]
[TD="width: 64"]z[/TD]
[TD="class: xl63, width: 64"]a,g,z[/TD]
[/TR]
</tbody>[/TABLE]
[TABLE="width: 320"]
<tbody>[TR]
[TD="width: 64"]a[/TD]
[TD="width: 64"][/TD]
[TD="width: 64"]g[/TD]
[TD="width: 64"]z[/TD]
[TD="class: xl65, width: 64"]#N/A[/TD]
[/TR]
</tbody>[/TABLE]
What do I need to add such that it ignores blank cells?