how to use VBA to transpose from vertical data to horizontal data?

ashbash

New Member
Joined
Jan 4, 2019
Messages
3
I have moved my data from one sheet to another via VBA. I want to use tableau to visualise the data. But it can only read the data if it is horizontal. I need the year to loop it self and then insert the data next to it as shown in below picture. I have added the code that i use to move data, in the last part if needed. I need to make this possible via VBA and not using the transpose function.

Pgq2I7l


The picture is an example of what i would like it to look like.. "the result i seek" as linked below

https://imgur.com/a/Pgq2I7l

Pgq2I7l

Npo1R60



Pgq2I7l
 

Excel Facts

Bring active cell back into view
Start at A1 and select to A9999 while writing a formula, you can't see A1 anymore. Press Ctrl+Backspace to bring active cell into view.

Forum statistics

Threads
1,215,045
Messages
6,122,836
Members
449,096
Latest member
Erald

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