Sub 数据处理()
Dim i, k As Integer
Dim arr, brr
arr = Range("a3").CurrentRegion
ReDim brr(1 To UBound(arr), 1 To UBound(arr, 2))
brr = arr
For i = 1 To UBound(arr) Step 2
If arr(i, 2) = arr(i + 1, 2) Then
brr(i, 2) = arr(i, 2)
Else
brr(i, 2) = arr(i, 2) & "," & arr(i + 1, 2)
End If
Next
Range("a1").CurrentRegion.Clear
Range("a1").Resize(UBound(brr), UBound(brr, 2)) = brr
Range("b:b").Select
Selection.HorizontalAlignment = xlCenter
For k = 2 To Range("a" & Cells.Rows.Count).End(xlUp).Row Step 2
Rows(k).Clear
Next
End Sub