I have two columns containing alphanumeric data - Column A in workbook1 and Column A in workbook2.
Column A, in workbook1 contains 40,000 rows(contains duplicate values, but they are needed) and column A in workbook2 contains 25,000(contains unique values) rows. I have to search whether Column A values are present in column B. If yes i have to update the Column B in workbook1 as user_found.
I tried looping but as the size of data is large, Excel crashes frequently and it takes a lot of time. Please help i am a beginner.
Dim arr As Variant
With AAws1
arr = AAws1.Range("A4:A" & Range("A" & Rows.Count).End(xlUp).Row).Value
End With
Dim varr As Variant
With userws1
varr = userws1.Range("A4:A" & Range("A" & Rows.Count).End(xlUp).Row).Value
End With
m = 4
Dim x, y, match As Boolean
For Each x In arr
match = False
For Each y In varr
If x = y Then
match = True
AAws1.Cells(m, 4).Value = "user found"
End If
' m = m + 1
Next y
If Not match Then
AAws1.Cells(m, 4).Value = "Not found"
End If
m = m + 1
Next