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
 

Oeldere

Well-known Member
Joined
Dec 29, 2011
Messages
2,209
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.
 

odezi455

New Member
Joined
Sep 5, 2014
Messages
2
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
 

Forum statistics

Threads
1,081,845
Messages
5,361,663
Members
400,643
Latest member
RockStar89

Some videos you may like

This Week's Hot Topics

  • populate from drop list with multiple tables
    Hi All, i have a drop list that displays data, what i want is when i select one of those from the list to populate text from different tables on...
  • Find list of words from sheet2 in sheet1 before a comma and extract text vba
    Hi Friends, Trying to find the solution on my task. But did not find suitable one to the need. Here is my query and sample file with details...
  • Dynamic Formula entry - VBA code sought
    Hello, really hope one of you experts can help with this - i've spent hours on this and getting no-where. .I have a set of data (more rows than...
  • Listbox Header
    Have a named range called "AccidentsHeader" Within my code I have: [CODE]Private Sub CommandButton1_Click() ListBox1.RowSource =...
  • Complex Heat Map using conditional formatting
    Good day excel world. I have a concern. Below link have a list of countries that carries each country unique data. [URL...
  • Conditional formatting
    Hi good morning, hope you can help me please, I have cells P4:P54 and if this cell is equal to 1 then i want row O to say "Fully Utilised" and to...
Top