How to put every other row in two seperate columns

dmb41

Board Regular
Joined
Nov 10, 2010
Messages
75
I have a large amount of data that needs to be split into two rows (based on how it is configured)

Like the following example:

A
B
C
D
E
F
G
H
...etc

What I am looking to get is
A B
C D
E F
G H

So the data is sorted (every other) into two columns.
 

Excel Facts

Control Word Wrap
Press Alt+Enter to move to a new row in a cell. Lets you control where the words wrap.
EDIT: I have a large amount of data that needs to be split into two *columns (based on how it is configured)
 
Upvote 0
Write a macro - along the one below - you have to start with last row then count backwards - in this case the last row is 21 and it assumes the first row is your column header- but modify code to suit your needs.

Code:
For i = 21 To 3 Step -2
    ActiveSheet.Cells(i - 1, 2).Value = ActiveSheet.Cells(i, 1).Value
    ActiveSheet.Rows(i).Delete
Next i
 
Upvote 0
if you have a lot of rows then make sure to make

Application.ScreenUpdating = False

b4 loop and True after loop
 
Upvote 0
Thanks a lot! Exactly what I am looking for. I haven't used macros much but this was easy to use.
 
Upvote 0
Good Evening,

I have a similar challenge. I have 114 files, that have in one column, Qur'anic Arabic words, each in a separate row, with the English translation underneath each Qur'anic Arabic word in another row, with some blank rows here and there.

I want to have the Qur'anic Arabic word in Column A and the corresponding translation in Column B - and I don't know how to write macros. I do have a macros written to delete the blank rows, and I will have to see if works on all of the files. But I still need each language text, in separate columns. I would attach a file as an example, but unsure how to do so?

Thank you.

~ ANMB
 
Upvote 0

Forum statistics

Threads
1,224,568
Messages
6,179,595
Members
452,927
Latest member
whitfieldcraig

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