View Single Post
  #8   Report Post  
Ron Rosenfeld
 
Posts: n/a
Default how to format Doe,John to Doe, John (space after a comma)

On Thu, 3 Nov 2005 11:17:11 -0800, asuncionw
wrote:

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