Hi,
Anyone could help me to roll up the data when there's only one key of ID and distribute to many (One to many)
One ID no. has only one title, but has many CCC, R, C,T as below table
The data I extract from the server becomes like this
[TABLE="width: 500"]
<tbody>[TR]
[TD]ID no[/TD]
[TD]Title[/TD]
[TD]CCC[/TD]
[TD]R[/TD]
[TD]C[/TD]
[TD]T[/TD]
[/TR]
[TR]
[TD]SAQ1234[/TD]
[TD]AAA[/TD]
[TD]H22[/TD]
[TD]0.51[/TD]
[TD]0.7[/TD]
[TD]0.4[/TD]
[/TR]
[TR]
[TD]SAQ1234[/TD]
[TD]AAA[/TD]
[TD]C13[/TD]
[TD]0.49[/TD]
[TD]0.3[/TD]
[TD]0.4[/TD]
[/TR]
[TR]
[TD]SAQ1234[/TD]
[TD]AAA[/TD]
[TD]D13[/TD]
[TD]0.3[/TD]
[TD]0.3[/TD]
[TD]0.2[/TD]
[/TR]
[TR]
[TD]SAQ4321[/TD]
[TD]BBB[/TD]
[TD]H22[/TD]
[TD]0.1[/TD]
[TD]0.2[/TD]
[TD]0.8[/TD]
[/TR]
[TR]
[TD]SAQ4321[/TD]
[TD]BBB[/TD]
[TD]H24[/TD]
[TD]0.9[/TD]
[TD]0.8[/TD]
[TD]0.2[/TD]
[/TR]
[TR]
[TD]SAQ5478[/TD]
[TD]CCC[/TD]
[TD]C24[/TD]
[TD]0.1[/TD]
[TD]0.1[/TD]
[TD]0.1[/TD]
[/TR]
</tbody>[/TABLE]
What I need is... One ID has one Title, consolidate CCC R, C, T from multiple roll to one roll and delete the roll that has been consolidated.
ID, title and CCC are string, R,C,T are numeric with 2 decimal place.
Quantity of CCC would not over 10 in maximum.
[TABLE="width: 500"]
<tbody>[TR]
[TD]ID no[/TD]
[TD]Title[/TD]
[TD]CCC[/TD]
[TD]R[/TD]
[TD]C[/TD]
[TD]T[/TD]
[/TR]
[TR]
[TD]SAQ1234[/TD]
[TD]AAA[/TD]
[TD]H22, C13, D13[/TD]
[TD]1.3[/TD]
[TD]1.3[/TD]
[TD]1.0[/TD]
[/TR]
[TR]
[TD]SAQ4321[/TD]
[TD]BBB[/TD]
[TD]H22, H24[/TD]
[TD]1.0[/TD]
[TD]1.0[/TD]
[TD]1.0[/TD]
[/TR]
[TR]
[TD]SAQ5478[/TD]
[TD]CCC[/TD]
[TD]C24[/TD]
[TD]0.1[/TD]
[TD]0.1[/TD]
[TD]0.1[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
Understand that Pivot table can do that, but VBA is appreciated.
Thank you so much.
achantak
Anyone could help me to roll up the data when there's only one key of ID and distribute to many (One to many)
One ID no. has only one title, but has many CCC, R, C,T as below table
The data I extract from the server becomes like this
[TABLE="width: 500"]
<tbody>[TR]
[TD]ID no[/TD]
[TD]Title[/TD]
[TD]CCC[/TD]
[TD]R[/TD]
[TD]C[/TD]
[TD]T[/TD]
[/TR]
[TR]
[TD]SAQ1234[/TD]
[TD]AAA[/TD]
[TD]H22[/TD]
[TD]0.51[/TD]
[TD]0.7[/TD]
[TD]0.4[/TD]
[/TR]
[TR]
[TD]SAQ1234[/TD]
[TD]AAA[/TD]
[TD]C13[/TD]
[TD]0.49[/TD]
[TD]0.3[/TD]
[TD]0.4[/TD]
[/TR]
[TR]
[TD]SAQ1234[/TD]
[TD]AAA[/TD]
[TD]D13[/TD]
[TD]0.3[/TD]
[TD]0.3[/TD]
[TD]0.2[/TD]
[/TR]
[TR]
[TD]SAQ4321[/TD]
[TD]BBB[/TD]
[TD]H22[/TD]
[TD]0.1[/TD]
[TD]0.2[/TD]
[TD]0.8[/TD]
[/TR]
[TR]
[TD]SAQ4321[/TD]
[TD]BBB[/TD]
[TD]H24[/TD]
[TD]0.9[/TD]
[TD]0.8[/TD]
[TD]0.2[/TD]
[/TR]
[TR]
[TD]SAQ5478[/TD]
[TD]CCC[/TD]
[TD]C24[/TD]
[TD]0.1[/TD]
[TD]0.1[/TD]
[TD]0.1[/TD]
[/TR]
</tbody>[/TABLE]
What I need is... One ID has one Title, consolidate CCC R, C, T from multiple roll to one roll and delete the roll that has been consolidated.
ID, title and CCC are string, R,C,T are numeric with 2 decimal place.
Quantity of CCC would not over 10 in maximum.
[TABLE="width: 500"]
<tbody>[TR]
[TD]ID no[/TD]
[TD]Title[/TD]
[TD]CCC[/TD]
[TD]R[/TD]
[TD]C[/TD]
[TD]T[/TD]
[/TR]
[TR]
[TD]SAQ1234[/TD]
[TD]AAA[/TD]
[TD]H22, C13, D13[/TD]
[TD]1.3[/TD]
[TD]1.3[/TD]
[TD]1.0[/TD]
[/TR]
[TR]
[TD]SAQ4321[/TD]
[TD]BBB[/TD]
[TD]H22, H24[/TD]
[TD]1.0[/TD]
[TD]1.0[/TD]
[TD]1.0[/TD]
[/TR]
[TR]
[TD]SAQ5478[/TD]
[TD]CCC[/TD]
[TD]C24[/TD]
[TD]0.1[/TD]
[TD]0.1[/TD]
[TD]0.1[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
Understand that Pivot table can do that, but VBA is appreciated.
Thank you so much.
achantak