Rows of Data to Column Subgroups

hot6l

New Member
Joined
Jun 23, 2010
Messages
2
Hi there,

Just wondering if there's an easy way to turn a table of data formatted like this:


Country, 1960, 1961, 1962, 1963
Angola:, 10, 12, 14, 16
Benin:, 20, 14, 12, 31
...

Into this:

Angola, 1960, 10
Angola, 1961, 12
Angola, 1962, 14
Angola, 1963, 16
Benin, 1960, 20
Benin, 1961, 14
Benin, 1962, 12
Benin, 1963, 31
...

I'm using excel on a mac, so I guess VBA isn't really an option.

Thanks!
 

Excel Facts

What is the shortcut key for Format Selection?
Ctrl+1 (the number one) will open the Format dialog for whatever is selected.
Nevermind.

The answer is here:

http://www.excelforum.com/excel-general/721812-column-headers-to-column-data.html


Hi there,

Just wondering if there's an easy way to turn a table of data formatted like this:


Country, 1960, 1961, 1962, 1963
Angola:, 10, 12, 14, 16
Benin:, 20, 14, 12, 31
...

Into this:

Angola, 1960, 10
Angola, 1961, 12
Angola, 1962, 14
Angola, 1963, 16
Benin, 1960, 20
Benin, 1961, 14
Benin, 1962, 12
Benin, 1963, 31
...

I'm using excel on a mac, so I guess VBA isn't really an option.

Thanks!
 
Upvote 0

Forum statistics

Threads
1,223,214
Messages
6,170,771
Members
452,353
Latest member
strainu

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