huiyin9218
Board Regular
- Joined
- Aug 7, 2018
- Messages
- 53
Hi,
May I know how to write a code to automatically filter each component types (C type, P type) available in my data, copy paste to their respective sheet and arrange according to their component names (C-100, C-10, etc)?
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]Component[/TD]
[TD]Amount[/TD]
[/TR]
[TR]
[TD]C-100[/TD]
[TD]4[/TD]
[/TR]
[TR]
[TD]C-10[/TD]
[TD]5[/TD]
[/TR]
[TR]
[TD]P-150[/TD]
[TD]7[/TD]
[/TR]
[TR]
[TD]C-100[/TD]
[TD]3[/TD]
[/TR]
[TR]
[TD]P-100[/TD]
[TD]2[/TD]
[/TR]
[TR]
[TD]C-100[/TD]
[TD]4[/TD]
[/TR]
</tbody>[/TABLE]
Table above is a example of my data. I would like to copy all C components and its amount and paste it at sheet C. In sheet C, all C components will arrange according to their component name, shown in table below
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]Component Name[/TD]
[TD]Amount[/TD]
[TD][/TD]
[TD]Component Name[/TD]
[TD]Amount[/TD]
[/TR]
[TR]
[TD]C-100[/TD]
[TD]4[/TD]
[TD][/TD]
[TD]C-10[/TD]
[TD]5[/TD]
[/TR]
[TR]
[TD]C-100[/TD]
[TD]3[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]C-100[/TD]
[TD]4[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
Component P will be arrange like component C but it has to be in sheet P
I would be so grateful for your help.
May I know how to write a code to automatically filter each component types (C type, P type) available in my data, copy paste to their respective sheet and arrange according to their component names (C-100, C-10, etc)?
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]Component[/TD]
[TD]Amount[/TD]
[/TR]
[TR]
[TD]C-100[/TD]
[TD]4[/TD]
[/TR]
[TR]
[TD]C-10[/TD]
[TD]5[/TD]
[/TR]
[TR]
[TD]P-150[/TD]
[TD]7[/TD]
[/TR]
[TR]
[TD]C-100[/TD]
[TD]3[/TD]
[/TR]
[TR]
[TD]P-100[/TD]
[TD]2[/TD]
[/TR]
[TR]
[TD]C-100[/TD]
[TD]4[/TD]
[/TR]
</tbody>[/TABLE]
Table above is a example of my data. I would like to copy all C components and its amount and paste it at sheet C. In sheet C, all C components will arrange according to their component name, shown in table below
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]Component Name[/TD]
[TD]Amount[/TD]
[TD][/TD]
[TD]Component Name[/TD]
[TD]Amount[/TD]
[/TR]
[TR]
[TD]C-100[/TD]
[TD]4[/TD]
[TD][/TD]
[TD]C-10[/TD]
[TD]5[/TD]
[/TR]
[TR]
[TD]C-100[/TD]
[TD]3[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]C-100[/TD]
[TD]4[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
Component P will be arrange like component C but it has to be in sheet P
I would be so grateful for your help.