Excel:如何将一列混合数据排序到表中
我有一个收款人的名单,他们的银行号码,我的参考资料和他们的参考资料,在一列Excel:如何将一列混合数据排序到表中,excel,multiple-columns,Excel,Multiple Columns,我有一个收款人的名单,他们的银行号码,我的参考资料和他们的参考资料,在一列 R & J Fred Ltd 12-3456-7890123-45 Freds Fish Bevan Joe King Mata Ltd 01-1234-1234567-89 Joes Boats Bevan01 Dave's the Barber 12-3456-7891478-92 Daves Shaves Accnt 45 我想把它做成这样一张桌子: Payee Account
R & J Fred Ltd
12-3456-7890123-45
Freds Fish
Bevan
Joe King Mata Ltd
01-1234-1234567-89
Joes Boats
Bevan01
Dave's the Barber
12-3456-7891478-92
Daves Shaves
Accnt 45
我想把它做成这样一张桌子:
Payee Account MyRef TheirRef
R & J Fred Ltd 12-3456-7890123-45 Freds Fish Bevan
Joe King Mata Ltd 01-1234-1234567-89 Joes Boats Bevan01
Dave's the Barber 12-3456-7891478-92 Daves Shaves Accnt 45
好的,所以我也不知道该如何在这个网站上进行降价,顺便说一句:)
有300行数据,全部在一列中,沿着相同的顺序一直到列表下方
我想有一个简单的方法可以做到这一点,但我似乎找不到。这可能不是最快或最优雅的解决方案,但确实得到了预期的结果。这是基于这样的假设,即您的数据列是A列,而干净的数据将位于B列到E列
Sub Cleanmeup()
Dim lastrow As Integer
Dim cel As Range
Dim i As Double, j As Double
lastrow = Sheets(1).Range("A:A").Cells(Rows.Count, 1).End(xlUp).Row
i = 2
j = 2
For Each cel In Range("A2:A" & lastrow)
If i = 6 Then
i = 2
j = j + 1
End If
Cells(j, i).Value = cel
i = i + 1
Next cel
End Sub