这是拜托狼兄写的为我写的,请帮忙注释,谢谢 For i = 5 To [c65536].End(xlUp).Row Step 4 x.Add Chr(x.Count + 65), Cells(i - 1, 3) & "," & Cells(i, 3) & "," & Cells(i + 1, 3) y.Add Chr(y.Count + 97), CStr(Cells(i, 3)) Cells(i, 2) = x(Cells(i - 1, 3) & "," & Cells(i, 3) & "," & Cells(i + 1, 3)) Cells(i, 4) = y(CStr(Cells(i, 3)))
If WorksheetFunction.CountIf([d1].Resize(i, 1), Cells(i, 4) & "*") = 1 Then Cells(i, 4) = Cells(i, 4) & "(" & WorksheetFunction.CountIf([d:d], Cells(i, 4)) & "x):" & Cells(i - 1, 3) + Cells(i, 3) + Cells(i + 1, 3)
Application.ScreenUpdating = True
|