I think I follow,
Try this code
Function aconcat(a As Variant, Optional sep As String = "") As String
' Harlan Grove, Mar 2002
Dim y As Variant
If TypeOf a Is Range Then
For Each y In a.Cells
aconcat = aconcat & y.Value & sep
Next y
ElseIf IsArray(a) Then
For Each y In a
aconcat = aconcat & y & sep
Next y
Else
aconcat = aconcat & a & sep
End If
aconcat = Left(aconcat, Len(aconcat) - Len(sep))
End Function
With this formula, Array confirmed with Shift Ctrl Enter
Formula:
=SUBSTITUTE(aconcat(IF(A2:E2<>"",A2:E2,),":")&":","0:","")
Bookmarks