展开全部
追答
要用编程
无论行数个数是否一致,都可以
Sub aa()
Dim i, k, x
For i = 2 To Range("a65536").End(xlUp).Row
x = WorksheetFunction.CountIf(Range(Cells(1, 1), Cells(i, 1)), Cells(i, 1))
If x = 1 Then
y = WorksheetFunction.CountIf(Range("a:a"), Cells(i, 1))
Z = WorksheetFunction.CountA(Range("l2:cz2"))
Range(Cells(i, 1), Cells(y + i - 1, "j")).Select
Range(Cells(i, 1), Cells(y + i - 1, "j")).Copy Cells(2, Z + 12)
End If
Next
End Sub
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询