@Jindon
i just made some changes in your code according to my need
but i am not able to do work with this one
Sub test()
Dim a, i As Long
Columns("Q").ClearContents
a = [B2:B500].Resize(, -2).Value
With CreateObject("Scripting.Dictionary")
.CompareMode = 1
For i = 1 To UBound(a, 1)
If a(i, UBound(a, 2)) = "4 OL BC" Then .Item(a(i, 1)) = Empty
Next
If .Count Then
[Q2].Resize(.Count).Value = Application.Transpose(.keys)
Else
MsgBox "No ""4 OL BC"" in Column " & Replace([b2].Offset(, 1).Address(0, 0), 1, "")
End If
End With
End Sub
I have to choose criteria from range a2:a500 and the extract unique values from range(b2:b500)
i think i cant use negative value with resize property
then what i do
Bookmarks