操作方法: 按ALT+F11调出VBA窗口,插入一个模块,把下面代码复制进去。 回到在excel窗口,按“工具-宏-宏”,从中选择“换列”这个宏即可。 Sub 换列() s = 1 y1 = 4 y2 = 5 For i = 1 To 2000 '共2000行 If s > 50 Then s = 1: y1 = y1 + 2: y2 = y2 + 2 Cells(s, y1) = Cells(i, 1) Cells(s, y2) = Cells(i, 2) s = s + 1 Next End Sub