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
Steve
2
SUBSTITUTE(((LIST(...) - LIST("")) & ""), " , ", " ")
-
LIST(...) is the list of values you want joined.
-
(... - LIST("")) removes any blank items from your list. Unfortunately, also has the side-effect of removing any duplicates.
-
(... & "") converts the list to a single Text value.
-
SUBSTITUTE(..., " , ", " ") replaces the list item separators (" , ", space-comma-space) with the separator of your choice (" ", a single space).
5 Likes