Changing layout of a list.

Shadoxic

New Member
Joined
Jun 28, 2011
Messages
6
Ok, basically i have a 27 thousand row spreadsheet as follows all the way down:
A B C D E F
1 Name __________________Address 1 ___________________Address 2 _______________Address 3 _____________________Address 4 ____________________Address 5
2
3 Mr John Smith
4 12, cottage road
5 Kelvindale
6 Glasgow
7 Scotland
8 G61 1234
9
10 Miss Swanson
11 13, Glendarule Sq.
12 Coatbridge
13 Glasgow
14 G61 1231
15

I need to somehow change the layout to the following:

A B C D E F
1 Name ______________Address 1 _____________Address 2 ___________Address 3 _______________Address 4 _____________Address 5
2
3 Mr John Smith _____12, cottage road _________Kelvindale ___________Glasgow ________________Scotland ______________G61 1234
4
5 Miss Swanson _____13, Glendarule Sq. _______Coatbridge ____________Glasgow ______________________________________G61 1231

I have literally not the slightest whim as to where to begin, so any help whatsoever would be greatly appreciated. Also, if I have failed to specify any info, I apologise and will answer any questions.

Thank you!

EDIT: The underscores represent between two cells :)
 
Last edited:

Excel Facts

Save Often
If you start asking yourself if now is a good time to save your Excel workbook, the answer is Yes
Try this with a copy of your sheet

Code:
Sub Addrs()
Dim Area As Range
Application.ScreenUpdating = False
For Each Area In Columns("A").SpecialCells(xlCellTypeConstants).Areas
    Area(1).Offset(, 1).Resize(, Area.Rows.Count).Value = Application.Transpose(Area)
Next Area
Columns("A").Delete
Columns("A").SpecialCells(xlCellTypeBlanks).EntireRow.Delete
Application.ScreenUpdating = True
End Sub
 
Upvote 0

Similar threads

Forum statistics

Threads
1,224,599
Messages
6,179,828
Members
452,946
Latest member
JoseDavid

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top