Changing data layout

Shadoxic

New Member
Joined
Jun 28, 2011
Messages
6
Ok, so I just got help with something extremely similiar, and have honestly tried to work this out (it took me half an hour to work out how to run a macro) but I'm now at a loss.
I have to transform this:
_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
4 _______________________Kelvindale
5 _______________________-Glasgow
6 ________________________Scotland
7 _______________________-_G61 1234
8
9 Miss Swanson__________13, Glendarule Sq.
10 _______________________Coatbridge
11 _______________________Glasgow
12 _______________________G61 1231


into this:
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 tried :( Thanks again!
 
Last edited:

Excel Facts

How to fill five years of quarters?
Type 1Q-2023 in a cell. Grab the fill handle and drag down or right. After 4Q-2023, Excel will jump to 1Q-2024. Dash can be any character.
Look into Copy - Paste Special - Transpose

Something like this in code:

Code:
    Range("A1:A6").Copy
    Range("A15").PasteSpecial Paste:=xlPasteAll, Operation:=xlNone, SkipBlanks:= _
        False, Transpose:=True
 
Upvote 0
Look into Copy - Paste Special - Transpose

Something like this in code:

Code:
    Range("A1:A6").Copy
    Range("A15").PasteSpecial Paste:=xlPasteAll, Operation:=xlNone, SkipBlanks:= _
        False, Transpose:=True
I forgot to mention the spreadsheet goes 15 thousand rows down on the theme in OP :P
 
Upvote 0
Can anybody help with this? I've been continuing trying to work it out, it seems to me like it has to be done in two stages, one moving the address under, and the second the macro code that I previously used. However, I know nothing :/
 
Upvote 0

Forum statistics

Threads
1,224,564
Messages
6,179,543
Members
452,924
Latest member
JackiG

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