Transpose large data set

jamezsez

New Member
Joined
Apr 1, 2012
Messages
10
Hi All,

I am having much difficulty transposing a large data set. The result I am after seems simple but is proving to be somewhat difficult.

I have a list of the following data.

Account1
a
b
c

<tbody>
</tbody>
Account2
d
e
f

<tbody>
</tbody>
Account3
g
h
i

<tbody>
</tbody>


How I would like the data to be,

Account1abc
Account2def
Account3ghi

<tbody>
</tbody>


I know this can be done with a simple transpose formula/paste but my dataset is 47,000 rows long, so copying and pasting individually is not an option. I think VBA might be the way to go, but I havent got a clue where to even start.

Help!

Thank you.
 

Excel Facts

What is the fastest way to copy a formula?
If A2:A50000 contain data. Enter a formula in B2. Select B2. Double-click the Fill Handle and Excel will shoot the formula down to B50000.
This will transpose the data in column A in groups of 4 (Account number and following 3 rows)

in C1
=INDEX($A$1:$A$12,INT((ROW()-1)*4)+COLUMN()-2,1)

copy across to F1
now copy C1:F1 down as far as row 11,750
or until you get errors by which time the column A data will have expired
 
Upvote 0

Forum statistics

Threads
1,215,361
Messages
6,124,500
Members
449,166
Latest member
hokjock

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