السلام عليكم
أخى الحبيب / فضل
تفض أخى
Sub ragab()
Dim cl As Range
Dim i As Integer
Dim x As Integer
Dim LR As Integer
Set Rng = Range("C2:C42")
Application.ScreenUpdating = False
Range("E3:V42").ClearContents
For i = 6 To 22 Step 2
For Each cl In Rng
x = Application.WorksheetFunction.CountIf(cl, "*" & Cells(2, i) & "*")
If x >= 1 Then
LR = Cells(Rows.Count, i).End(xlUp).Row + 1
Cells(LR, i) = cl.Offset(0, -2)
Cells(LR, i - 1) = cl.Offset(0, -1)
End If
Next
Next i
Application.ScreenUpdating = True
End Sub
مساعدة بكود.rar