Separate a column by commas

jamesv32

New Member
Joined
Oct 10, 2011
Messages
5
I have data in this format​

<TBODY>
[TD="width: 50%"]
Item #​
[/TD]
[TD="width: 50%"]
Data​
[/TD]

[TD="width: 50%"]
A​
[/TD]
[TD="width: 50%"]
1, 2, 3, 4, 5​
[/TD]

</TBODY>
And I am trying to see if there is a way to separate the data column into separate colums anywhere that a comma is present.Need data to look like this.​

<TBODY>
[TD="width: 17%"]
Item #​
[/TD]
[TD="width: 17%"]
Data​
[/TD]
[TD="width: 17%"]
Data​
[/TD]
[TD="width: 17%"]
Data​
[/TD]
[TD="width: 17%"]
Data​
[/TD]
[TD="width: 17%"]
Data​
[/TD]

[TD="width: 17%"]
A​
[/TD]
[TD="width: 17%"]
1​
[/TD]
[TD="width: 17%"]
2​
[/TD]
[TD="width: 17%"]
3​
[/TD]
[TD="width: 17%"]
4​
[/TD]
[TD="width: 17%"]
5​
[/TD]

</TBODY>
Any help would be greatly appreciated.



 
Use Excel's Test to Columns feature to separate the data into separate cells.
Step 1: Choose Delimited rather than Fixed width
Step 2: Check box for Comma
Step 3: Finish
 
Upvote 0
Use Excel's Test to Columns feature to separate the data into separate cells.
Step 1: Choose Delimited rather than Fixed width
Step 2: Check box for Comma
Step 3: Finish
The OP's data looks to be delimited by a comma and a space, so in addition to checking the Comma checkbox, I would also check the Space checkbox as well... and make sure the "Treat consecutive delimiter as one" checkbox is checked as well.
 
Upvote 0

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top