here i have got a udf function of concat function and it's working perfectly in given range to combine text string & here what the problem is if the text string have extra space in cell range
and this udf function never trimming the extra space to single space
i have applied this udf function in excel 2016
and this udf function never trimming the extra space to single space
i have applied this udf function in excel 2016
VBA Code:
Function Concat(Rng As Range) As String
Dim cl As Range
Concat = ""
For Each cl In Rng
Concat = Concat & cl.Value & " "
Next cl
Concat = Trim(Concat)
End Function