put everything after comma, into next column?

  • Thread starter Thread starter _Bigred
  • Start date Start date
B

_Bigred

I have a column that contains the following style of data:

Smith, John
Smith,John
Smith,John (WCCS)
Smith, John (WCCS)

I would like to eliminate the "," and place the text after the "," into the
next column.

How can I do this?

TIA,
_Bigred
 
Hi _Bigred!

Use Data > Text to Columns

You have a delimited list with comma separator.
 
You can use Data > Text to Columns
Select the column with your data
Choose 'Delimited' > Next
Check 'Comma' > Next
If the result looks OK, Finish
Note that there is a space in your first and last examples, but not in the
others which could cause problems if you want to use VLOOKUP, COUNTIF etc
If this is the case you could use the TRIM function to eliminate the spaces,
Regards,
 
Hi Alan,
It is possible to eliminate the extra space after the comma
strictly with Text to Columns. Personally I would use my TrimALL
macro since I have it set up .
http://www.mvps.org/dmcritchie/excel/join.htm#trimall

Data, Text to Columns, comma delimiter
as already described to separate into the two columns
(dependent on there being only one comma in the cell)

Data, Text to Columns, fixed width
double click or drag the break line off the window to remove
with only one column then finish


Alan said:
You can use Data > Text to Columns
Select the column with your data
Choose 'Delimited' > Next
Check 'Comma' > Next
If the result looks OK, Finish
Note that there is a space in your first and last examples, but not in the
others which could cause problems if you want to use VLOOKUP, COUNTIF etc
If this is the case you could use the TRIM function to eliminate the spaces,
Regards,
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top