abhishek_singhal
New Member
- Joined
- Oct 9, 2014
- Messages
- 4
Hi All
I have a data set like this:-
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]Item Category[/TD]
[TD]Item[/TD]
[TD]Sales[/TD]
[/TR]
[TR]
[TD]Shoes[/TD]
[TD]Sports Shoes[/TD]
[TD]100[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Casual Shoes[/TD]
[TD]200[/TD]
[/TR]
[TR]
[TD]Others[/TD]
[TD]Sandals[/TD]
[TD]300[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Slippers[/TD]
[TD]400[/TD]
[/TR]
</tbody>[/TABLE]
I want a row after each unique value in column A along with unique cell value pasted in the new row. Like the below mentioned:-
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]Item Category[/TD]
[TD]Item[/TD]
[TD]Sales[/TD]
[/TR]
[TR]
[TD]Shoes[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Shoes[/TD]
[TD]Sports Shoes[/TD]
[TD]100[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Casual Shoes[/TD]
[TD]200[/TD]
[/TR]
[TR]
[TD]Others[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Others[/TD]
[TD]Sandals[/TD]
[TD]300[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Slippers[/TD]
[TD]400[/TD]
[/TR]
</tbody>[/TABLE]
I want a macro for this. Thanks in advance.
Abhishek
I have a data set like this:-
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]Item Category[/TD]
[TD]Item[/TD]
[TD]Sales[/TD]
[/TR]
[TR]
[TD]Shoes[/TD]
[TD]Sports Shoes[/TD]
[TD]100[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Casual Shoes[/TD]
[TD]200[/TD]
[/TR]
[TR]
[TD]Others[/TD]
[TD]Sandals[/TD]
[TD]300[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Slippers[/TD]
[TD]400[/TD]
[/TR]
</tbody>[/TABLE]
I want a row after each unique value in column A along with unique cell value pasted in the new row. Like the below mentioned:-
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]Item Category[/TD]
[TD]Item[/TD]
[TD]Sales[/TD]
[/TR]
[TR]
[TD]Shoes[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Shoes[/TD]
[TD]Sports Shoes[/TD]
[TD]100[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Casual Shoes[/TD]
[TD]200[/TD]
[/TR]
[TR]
[TD]Others[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Others[/TD]
[TD]Sandals[/TD]
[TD]300[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Slippers[/TD]
[TD]400[/TD]
[/TR]
</tbody>[/TABLE]
I want a macro for this. Thanks in advance.
Abhishek