Copy dynamic Range and pasteSpecial(Transpose)

odezi455

New Member
Joined
Sep 5, 2014
Messages
2
Hi all, I need help in structuring a lot of data file and I was wondering If anyone could help me.
what I want is to search for cell that starts with "CP" in range (A:A) then copy the next set of row untill the next "CP" and paste(transpose).
This is how the data is at the moment:
CP,00001
Date,15/06/2014
1
2
6
9
85
24
32
1485
25
1
101
5
87
9
6
3
7
1
2
CP,00502
Date,14/06/2014
5
69
35
78.6
36.9
85.8
8569.5
78.9
8
874
2
2
8
2
5
2
5
2
CP,04003
Date,19/06/2014
8
7
8
9
52
12
14
47
25
69
10
10
CP,90004
Date,16/06/2014
36
7.3
3.6
36
58
25
21
CP,00035
Date,1/06/2014
78.6
36.9
85.8
8569.5
78.9
8
874
2
2
1
2
6
9
CP,99006
Date,12/06/2014
1
2
5
3
8
87
96
66
55

<tbody>
</tbody>
and I want it to be in this form

CP,00001Date,15/06/20141269852432148525110158796371
CP,00502Date,14/06/20145693578.636.985.8857078.9887422825252
CP,04003Date,19/06/201487895212144725691010
CP,90004Date,16/06/2014367.33.636582521
CP,00035Date,1/06/201478.636.985.8857078.98874221269
CP,99006Date,12/06/2014125388796665587

<tbody>
</tbody>

I will be very grateful if some one could help me with the VBA code for this.
Thanks in advance
 

Excel Facts

Quick Sum
Select a range of cells. The total appears in bottom right of Excel screen. Right-click total to add Max, Min, Count, Average.
why do you need the values in a row?

If you want to analyze the data, (e.g. with an pivot table) a verticaly format is much better.
 
Upvote 0
why do you need the values in a row?

If you want to analyze the data, (e.g. with an pivot table) a verticaly format is much better.

Hi,
I have several hundreds of files in this format and I want to organise it into a database... in row format.
Thanks
 
Upvote 0

Forum statistics

Threads
1,214,832
Messages
6,121,849
Members
449,051
Latest member
excelquestion515

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