Formula needed

IneedHel

New Member
Joined
Jul 27, 2017
Messages
14
I run a report that I export into excel and it will have multiple names in one column separated by a comma. How can I move the crew members into their own column?

[TABLE="width: 537"]
<colgroup><col><col span="3"></colgroup><tbody>[TR]
[TD] Current
COLUMN A [/TD]
[TD="colspan: 3"] Needed
COLUMN A COLUMN B COLUMN C[/TD]
[/TR]
[TR]
[TD] Crew Member[/TD]
[TD]Crew Member[/TD]
[TD]Crew Member[/TD]
[TD]Crew Member[/TD]
[/TR]
[TR]
[TD]chris porter, steve porter, cindy porter[/TD]
[TD]chris porter[/TD]
[TD]steve porter[/TD]
[TD]cindy porter [/TD]
[/TR]
</tbody>[/TABLE]
 

Excel Facts

Did you know Excel offers Filter by Selection?
Add the AutoFilter icon to the Quick Access Toolbar. Select a cell containing Apple, click AutoFilter, and you will get all rows with Apple
Hi,

You can do this with a formula:


Book1
ABCD
1Crew MemberCrew MemberCrew MemberCrew Member
2chris porter, steve porter, cindy porterchris portersteve portercindy porter
Sheet60
Cell Formulas
RangeFormula
B2=TRIM(MID(SUBSTITUTE($A2,",",REPT(" ",100)),COLUMNS($B1:B1)*100-99,100))


Formula copied across as far as needed.

If you're looking to REPLACE Column A with the separated values, you'll need VBA.
 
Upvote 0
Hi,

I need to correct myself in saying if you want to REPLACE Column A with separated values, you'll need VBA, actually, you Don't.

Select your cell (or Column) containing the data, go to Data tab, click Text to Columns, choose "Delimited", Next, choose "Comma", Next, click "Finish".
 
Last edited:
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,177
Members
453,021
Latest member
Justyna P

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