Solved Excel Macro to move columns to 1 row after each other.

brubakes

New member
Local time
4:26 AM
Messages
14
Location
Ohio
I was hoping someone could help me write or find a macro that would take two columns and move it to column A under the previous data and repeat for all columns. Basically user information is located in pairs of columns (typeofvalue, value). So column A and B are for user1, column C and D are user2, column E and F are user3, etc. Bonus if I could have a space in between each once moved.

Current:

HTML:
A			B			C			D		
User1First		User1Last		User2First		User2Last
User1ValueTypeA1	User1ValueB1		User2ValueTypeA1	User2ValueB1
User1ValueTypeA2	User1ValueB2		User2ValueTypeA1	User2ValueB1
Desired:

HTML:
A			B
User1First		User1Last
User1ValueTypeA1	User1ValueB1
User1ValueTypeA2 	User1ValueB2

SPACE/EMPTY ROW

User2First		User2Last
User2ValueTypeA1	User2ValueB1
User2ValueTypeA1	User2ValueB1

Each user has 47 rows of "values", for the example I just did two rows worth.
 

My Computer My Computer

At a glance

Windows 8.1 Professional 64bitCore i5
Computer type
PC/Desktop
Computer Manufacturer/Model Number
Custom Build
OS
Windows 8.1 Professional 64bit
CPU
Core i5
Browser
Chrome

My Computer My Computer

At a glance

Windows 10 Pro X64Intel(R) Core(TM) i5-3570K CPU OC@ 4.5GHZ Turbo8.00 GB DDR3 1600MhzMSI Gaming X GTX 1070
Computer type
PC/Desktop
Computer Manufacturer/Model Number
Dude Build
OS
Windows 10 Pro X64
CPU
Intel(R) Core(TM) i5-3570K CPU OC@ 4.5GHZ Turbo
Motherboard
MSI Z77A-G45 Gaming
Memory
8.00 GB DDR3 1600Mhz
Graphics Card(s)
MSI Gaming X GTX 1070
Sound Card
Realtek High Definition
Monitor(s) Displays
Dell S23O9W, HP L1710
Screen Resolution
DELL-1920 x 1080 HP-1280 x1024
Hard Drives
Crucial m4 256 SSD, WD 7200RPM 500GB WD 1TB
PSU
Seasonic X650 GOLD
Case
Zalman Z12
Cooling
Antec Kuhler 920
Keyboard
Logitech
Mouse
MSI DS100 Interceptor
Internet Speed
50 down and 5 up
Antivirus
MSE
Browser
Chrome, IE 11
Other Info
Logitech X-620 Speakers

My Computer My Computer

At a glance

Windows 8.1 Professional 64bitCore i5
Computer type
PC/Desktop
Computer Manufacturer/Model Number
Custom Build
OS
Windows 8.1 Professional 64bit
CPU
Core i5
Browser
Chrome
Back
Top