Textjoin in AppSheet

How Can I Use TEXTJOIN Function in AppSheet
Here Is Spreadsheet Formula

IF ([ColX] =โ€œAbcโ€, textjoin(" ",1,"Xyz @ โ€œ& [ColA] &โ€ - โ€œ&[ColB] , [ColC] , [ColD] , [ColE] &โ€ @ " & Round ([ColZ] , 0) , [ColY] ), โ€œโ€)

I want to Join Column In Some Cases May be Some Column can Be Empty
So To Avoid Extra Space in Output I want to Leave out Empty Column

Is This Possible in AppSheet Expression?
Waiting for quick Reply

Solved Solved
0 2 1,461
1 ACCEPTED SOLUTION

Steve
Platinum 4
Platinum 4
SUBSTITUTE(((LIST(...) - LIST("")) & ""), " , ", " ")
  1. LIST(...) is the list of values you want joined.

  2. (... - LIST("")) removes any blank items from your list. Unfortunately, also has the side-effect of removing any duplicates.

  3. (... & "") converts the list to a single Text value.

  4. SUBSTITUTE(..., " , ", " ") replaces the list item separators (" , ", space-comma-space) with the separator of your choice (" ", a single space).

View solution in original post

2 REPLIES 2

Steve
Platinum 4
Platinum 4
SUBSTITUTE(((LIST(...) - LIST("")) & ""), " , ", " ")
  1. LIST(...) is the list of values you want joined.

  2. (... - LIST("")) removes any blank items from your list. Unfortunately, also has the side-effect of removing any duplicates.

  3. (... & "") converts the list to a single Text value.

  4. SUBSTITUTE(..., " , ", " ") replaces the list item separators (" , ", space-comma-space) with the separator of your choice (" ", a single space).

Thanks @Steve
It Worked

Top Labels in this Space