Hi Team
I need your help in extracting Unique Trade ID and paste in range F2.
But also along with that I need complete data range infrrnt of it.
Looking your help in dictionary/Collection attached expected result.
through below I can extract single column.
I need your help in extracting Unique Trade ID and paste in range F2.
But also along with that I need complete data range infrrnt of it.
Looking your help in dictionary/Collection attached expected result.
through below I can extract single column.
VBA Code:
Sub Unique()
Dim lr As Long
lr = Range("a1").CurrentRegion.Rows.Count
Dim str As String
Dim i As Integer
Dim dict As New Scripting.Dictionary
For i = 2 To lr
str = Cells(i, 1).Value
If Not dict.Exists(str) Then
dict.Add (str), 1
End If
Next i
Range("f2").Resize(dict.Count).Value = WorksheetFunction.Transpose(dict.Keys)
End Sub