Sorting data on one sheet, paste and transpose

tstansfi

New Member
Joined
Nov 6, 2015
Messages
2
Hi

First time post-er, excel newbie.

I used Ron Bruin's VBA module to merge 732 workbooks into one worksheet. That worked great but each record (from each workbook) is spread over 38 rows. The data is all in the same columns (D, H, J and L), just spread out over 38 rows!

What I need is a code that will:

1) copy D1:D38 from worksheet1 and transpose paste to A1:AL1 in worksheet 2 then:
H1:H38 – transpose to AM1:BX1
J1:J38 – transpose to BY1:DJ1
L1:L38 – transpose to DK1:EV1

2) delete the first 38 rows and then repeat the paste transpose into row 2

I need all 732 records to be in just 732 rows. Then I'll just manually delete the empty columns.

Can anyone help!?
 

Excel Facts

Create a Pivot Table on a Map
If your data has zip codes, postal codes, or city names, select the data and use Insert, 3D Map. (Found to right of chart icons).
tomtomjoearchieredbluegreen
joe
archie
red
blue
green
is this what you want

<colgroup><col width="64" span="10" style="width:48pt"> </colgroup><tbody>
</tbody>
 
Upvote 0
It's more like this:

Tom Red 2m Steel
Tom 01 4t Plastic
Tom 65 1s paper
Joe yel 3p wool
Joe 02 7y steel
Joe 87 4q plastic

where each value in column A repeats down 38 rows, with related data in columns D, H, J and L

And what i need is:

Tom Red 2m Steel 01 4t Plastic 65 1s paper
Joe yel 3p wool 02 7y steel 87 4q plastic

Does that make sense?
 
Upvote 0

Forum statistics

Threads
1,215,751
Messages
6,126,671
Members
449,326
Latest member
asp123

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