Name
Address
City
State
Zip
Name
Address
City
State
Zip
...and I would like to sort it into columns. 1st column would contain
all names, 2nd, all addresses, 3rd all cities....etc.
Since the column is quite long with 1000 names and addresses I would
like to know if there is a quick way to get Excel to sort this data.
=ArrayReshape(A1:A100,20,5)
Alan Beban
You can also accomplish this using formulas. Someone will probably post the
details.
John Walkenbach
For Excel tips, macros, & downloads...
http://j-walk.com/ss
"Wendy Lauerman" <wendy.l...@tx.usda.gov> wrote in message
news:3B77DEB1...@tx.usda.gov...
Sub ReArrange()
Application.ScreenUpdating = False
For Counter = 1 To 5000
Range("A1").Select
If ActiveCell.Offset((Counter - 1) * 5, 0).Value = _
"" Then Exit For
ActiveCell.Offset((Counter - 1) * 5, 0). _
Range("A1:A5").Copy
ActiveCell.Offset(Counter - 1, 1). _
PasteSpecial Transpose:=True
Next
End Sub
"Wendy Lauerman" <wendy.l...@tx.usda.gov> wrote in message
news:3B77DEB1...@tx.usda.gov...