sachinrohra
New Member
- Joined
- Jan 11, 2019
- Messages
- 1
Hi,
How can i convert comma separated text in a cell into multiple rows along with data in other columns. I would want to do this for about 6000 rows and don't want to stay away from using VBA. Can someone please help.
Example:-
[TABLE="class: grid, width: 500, align: left"]
<tbody>[TR]
[TD]Restaurant[/TD]
[TD]Cuisine[/TD]
[TD]Countries[/TD]
[/TR]
[TR]
[TD]ABC[/TD]
[TD]Chinese[/TD]
[TD]Australia, Germany, France[/TD]
[/TR]
[TR]
[TD]PQR[/TD]
[TD]Korean[/TD]
[TD]US, Australia[/TD]
[/TR]
[TR]
[TD]XYZ[/TD]
[TD]American[/TD]
[TD]India, UK, Spain[/TD]
[/TR]
</tbody>[/TABLE]
[TABLE="class: grid, width: 500, align: left"]
<tbody>[TR]
[TD]Restaurant[/TD]
[TD]Cuisine[/TD]
[TD]Country[/TD]
[/TR]
[TR]
[TD]ABC[/TD]
[TD]Chinese[/TD]
[TD]Australia[/TD]
[/TR]
[TR]
[TD]ABC[/TD]
[TD]Chinese[/TD]
[TD]Germany[/TD]
[/TR]
[TR]
[TD]ABC[/TD]
[TD]Chinese[/TD]
[TD]France[/TD]
[/TR]
[TR]
[TD]PQR[/TD]
[TD]Korean[/TD]
[TD]US[/TD]
[/TR]
[TR]
[TD]PQR[/TD]
[TD]Korean[/TD]
[TD]Australia[/TD]
[/TR]
[TR]
[TD]XYZ[/TD]
[TD]American[/TD]
[TD]India[/TD]
[/TR]
[TR]
[TD]XYZ[/TD]
[TD]American[/TD]
[TD]UK[/TD]
[/TR]
[TR]
[TD]XYZ[/TD]
[TD]American[/TD]
[TD]Spain[/TD]
[/TR]
</tbody>[/TABLE]
Thank you.
How can i convert comma separated text in a cell into multiple rows along with data in other columns. I would want to do this for about 6000 rows and don't want to stay away from using VBA. Can someone please help.
Example:-
[TABLE="class: grid, width: 500, align: left"]
<tbody>[TR]
[TD]Restaurant[/TD]
[TD]Cuisine[/TD]
[TD]Countries[/TD]
[/TR]
[TR]
[TD]ABC[/TD]
[TD]Chinese[/TD]
[TD]Australia, Germany, France[/TD]
[/TR]
[TR]
[TD]PQR[/TD]
[TD]Korean[/TD]
[TD]US, Australia[/TD]
[/TR]
[TR]
[TD]XYZ[/TD]
[TD]American[/TD]
[TD]India, UK, Spain[/TD]
[/TR]
</tbody>[/TABLE]
[TABLE="class: grid, width: 500, align: left"]
<tbody>[TR]
[TD]Restaurant[/TD]
[TD]Cuisine[/TD]
[TD]Country[/TD]
[/TR]
[TR]
[TD]ABC[/TD]
[TD]Chinese[/TD]
[TD]Australia[/TD]
[/TR]
[TR]
[TD]ABC[/TD]
[TD]Chinese[/TD]
[TD]Germany[/TD]
[/TR]
[TR]
[TD]ABC[/TD]
[TD]Chinese[/TD]
[TD]France[/TD]
[/TR]
[TR]
[TD]PQR[/TD]
[TD]Korean[/TD]
[TD]US[/TD]
[/TR]
[TR]
[TD]PQR[/TD]
[TD]Korean[/TD]
[TD]Australia[/TD]
[/TR]
[TR]
[TD]XYZ[/TD]
[TD]American[/TD]
[TD]India[/TD]
[/TR]
[TR]
[TD]XYZ[/TD]
[TD]American[/TD]
[TD]UK[/TD]
[/TR]
[TR]
[TD]XYZ[/TD]
[TD]American[/TD]
[TD]Spain[/TD]
[/TR]
</tbody>[/TABLE]
Thank you.