currently with the codes below, output would be ~ abc~ etc~ etc~
. How do I remove the first ~. So it should start with abc straight away, not ~.
Function SpecialLookup(lookup_value As String, src_rng As Range, column_index As Long)
Dim rng As Range
Dim xResult As String
xResult = ""
For Each rng In src_rng
If rng = lookup_value Then
xResult = xResult & "~ " & rng.Offset(0, column_index - 1).Value
End If
Next
SpecialLookup = xResult
End Function