Nice one, and to omit any cells that are blank at the start of the range, would you use IF?
E.g. I get , , Bailey St if there is no 'Flat A' and '27':
=IF(BV6&BW6="",BX6,IF(BV6="",SUBSTITUTE(TRIM(BW6 & "*" & BX6), "*", ", "),SUBSTITUTE(TRIM(BV6 & "*" & BW6 & "*" & BX6), "*", ", ")))
Edit2: This still didn't quite work, so found a UDF to use:
Function ConCat(Delimiter As Variant, ParamArray CellRanges() As Variant) As String
Dim Cell As Range, Area As Variant
For Each Area In CellRanges
If TypeName(Area) = "Range" Then
For Each Cell In Area
If Len(Cell.Value) Then ConCat = ConCat & Delimiter & Cell.Value
Next
Else
ConCat = ConCat & Delimiter & Area
End If
Next
ConCat = Mid(ConCat, Len(Delimiter) + 1)
End Function
=ConCat(", ",A3:A9,C5,"I'm text")
Bookmarks