Consolidating/Transposing Multiple Column Data into Common Data Columns

sjkl_99

New Member
Joined
May 17, 2013
Messages
1
Hi all,

Hoping someone can assist with some data column to row transposing that I'm trying to do in Excel. It's not the easiest to describe so best to take the example data below:

[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]Person
[/TD]
[TD]Acc No
[/TD]
[TD]Currency
[/TD]
[TD]Acc No
[/TD]
[TD]Currency
[/TD]
[TD]Acc No
[/TD]
[TD]Currency
[/TD]
[TD]Acc No
[/TD]
[TD]Currency
[/TD]
[/TR]
[TR]
[TD]123456[/TD]
[TD]000111222[/TD]
[TD]USD[/TD]
[TD]00012345[/TD]
[TD]AUD[/TD]
[TD]000143243[/TD]
[TD]GBP[/TD]
[TD]000234323[/TD]
[TD]EUR[/TD]
[/TR]
[TR]
[TD]987654[/TD]
[TD]000888999[/TD]
[TD]AUD[/TD]
[TD]00123423[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]

"Person" is the key value, for which you can have multiple "Acc No" and "Currency" combinations as a series of columns. What I want to do is to transpose the Acc No and Currency values into a 3 column output as below:

[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]Person
[/TD]
[TD]Acc No
[/TD]
[TD]Currency
[/TD]
[/TR]
[TR]
[TD]123456[/TD]
[TD]000111222[/TD]
[TD]USD[/TD]
[/TR]
[TR]
[TD]123456[/TD]
[TD]00012345[/TD]
[TD]AUD[/TD]
[/TR]
[TR]
[TD]123456[/TD]
[TD]000143243[/TD]
[TD]GBP[/TD]
[/TR]
[TR]
[TD]123456[/TD]
[TD]000234323[/TD]
[TD]EUR[/TD]
[/TR]
[TR]
[TD]987654[/TD]
[TD]000888999[/TD]
[TD]AUD[/TD]
[/TR]
[TR]
[TD]987654[/TD]
[TD]00123423[/TD]
[TD]NZD[/TD]
[/TR]
</tbody>[/TABLE]

There are dozens of columns that repeat as per the input layout above, so i'm hoping the general principle of a solution can be extended across X no of columns (without too much manual intervention).

Any solutions very welcomed - Thank you!
 

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