Transposing Group of Rows to Columns

RobertWagner

New Member
Joined
Dec 19, 2014
Messages
2
[TABLE="width: 500"]
<tbody>[TR]
[TD]Acct
[/TD]
[TD]Symbol[/TD]
[TD]Shrares[/TD]
[/TR]
[TR]
[TD]123[/TD]
[TD]AAPL[/TD]
[TD]300[/TD]
[/TR]
[TR]
[TD]123[/TD]
[TD]GOOG[/TD]
[TD]200[/TD]
[/TR]
[TR]
[TD]567[/TD]
[TD]AAPL[/TD]
[TD]600[/TD]
[/TR]
[TR]
[TD]567[/TD]
[TD]GOOG[/TD]
[TD]400[/TD]
[/TR]
</tbody>[/TABLE]

End Result:

Acct Security Shares Acct Security Shares
123 APPL 300 567 AAPL 600
123 GOOG 200 567 GOOG 400


I'm a VBA beginner and am trying to write a code to cut data from 3 columns of data and move it to adjacent columns.

The current data is in 3 columns. Column 1 = Account Number, Column 2 = Security Symbol and Column 3 = Number Shares. The ultimate goal is to line the account up side by side so I can verify that they are all identical. Basically I want to cut out each entire account and paste them side by side. Any help would be greatly appreciated.

A
n
 

Excel Facts

Easy bullets in Excel
If you have a numeric keypad, press Alt+7 on numeric keypad to type a bullet in Excel.
Hi and welcome to the forum.

Have you tried a pivot table to do your checks? If you set a Pivot Table on that data With Symbol and Acct as Row Labels and Shares in Sum Values then you should be able to do the check.
 
Upvote 0

Forum statistics

Threads
1,223,228
Messages
6,170,875
Members
452,363
Latest member
merico17

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