Sub www()
Dim a, b, c, i&, ii&
Application.ScreenUpdating = False
With Sheets("Массив_2")
a = .Range("B7:I" & .Cells(.Rows.Count, 1).End(xlUp).Row).Value
End With
With Sheets("Массив_1")
b = .Range("B7:B" & .Cells(.Rows.Count, 1).End(xlUp).Row).Value
End With
ReDim c(1 To UBound(a), 1 To 9)
ii = 1
With CreateObject("Scripting.Dictionary")
.CompareMode = 1
For i = 1 To UBound(b): .Item(b(i, 1)) = i: Next
For i = 1 To UBound(a)
If .Exists(a(i, 1)) Then
c(ii, 1) = ii: c(ii, 2) = a(i, 1)
c(ii, 3) = a(i, 2): c(ii, 4) = a(i, 3)
c(ii, 5) = a(i, 4): c(ii, 6) = a(i, 5)
c(ii, 7) = a(i, 6): c(ii, 8) = a(i, 7)
c(ii, 9) = a(i, 8): ii = ii + 1
End If
Next
End With
With Sheets("Ненайдено")
.Activate:.[a7].Resize(UBound©, 9) = c
End With
Application.ScreenUpdating = True
End Sub