how to format Doe,John to Doe, John (space after a comma)

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have a downloaded database file with a format of "lastname,firstname" and
would like to change that one column to either one column of say lastname,
firstname (with a space after the comma) or two columns of say col1 lastname,
col2 firstname.
 
Note, Doe,John is in one column, 100 different names will carry the comma in
different places. This will not work but thanks anyway.
 
I have a downloaded database file with a format of "lastname,firstname" and
would like to change that one column to either one column of say lastname,
firstname (with a space after the comma) or two columns of say col1 lastname,
col2 firstname.


=TRIM(SUBSTITUTE(A1,",",", "))

Note the space after the second quoted comma.

The TRIM function is there just in case any of the imported names should happen
to have a space after the comma, so as not to have 2 spaces there.


--ron
 

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