Move data in column into row

MarlonvanDijk

New Member
Joined
Sep 23, 2019
Messages
4
Hello,

I have a large excel-datafile with data stored in columns, but want to get all into one row (this format is needed for further analysis).The dataset is too large to do this manually. Below an example:

Original
Author - Obs.- Obs.- Obs.
X aaa bbb ccc
Y ddd eee

Output
Author - Obs.
X aaa
(X) bbb
(X) ccc
Y ddd
(Y) eee

Preferably I have the author-cell copied in all new columns, but this is not completely necessary. Also note that each column doesn't have the same amount of rows in them.

Is this possible to do in excel? Can it be done by writing a macro? Thanks in advance for your help!
 

Excel Facts

Links? Where??
If Excel says you have links but you can't find them, go to Formulas, Name Manager. Look for old links to dead workbooks & delete.
I see the formatting of the example changed. The bold "author" and "Obs" are labels of the rows, with corresponding values in the lines under it
 
Upvote 0

Forum statistics

Threads
1,223,903
Messages
6,175,286
Members
452,631
Latest member
a_potato

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