Private Sub CommandButton1_Click()
Dim i%, r%
m = 1: n = 1
For r = 2 To 4 Step 2
For i = 2 To 5
If Cells(i, r) = "×" Then
m = m + 1
Cells(m, 6) = Cells(i, r - 1)
Cells(m, 7) = Cells(i, r)
Else
n = n + 1
Cells(n, 8) = Cells(i, r - 1)
Cells(n, 9) = Cells(i, r)
End If
Next i
Next r
End Sub