Hi everyone,
I'd have 2 large ranges:
A1:A50000
B1:B50000
Both contain duplicates.
I'd like to determine which unique values from A range are contained in B range.
I thought of ruling out these methods:
a) Looping thru arrays and making array of unique values
b) Range.AdvancedFilter Unique:=True
c) Creating pivot tables
I found on Ozgrid this nice looking method:
Code
Dim V As Variant
With Range("A1:A50000")
V = Filter(Evaluate("TRANSPOSE(IF(COUNTIF(OFFSET(" & _
.Address & ",,,ROW(1:" & .Rows.Count & "))," & _
.Address & ")=1," & .Address & "))"), False, 0)
End With
But it still takes long processing time.
What would you suggest as fastest way ?