Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
asuncionw
 
Posts: n/a
Default how to format Doe,John to Doe, John (space after a comma)

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.
  #2   Report Post  
Bill Kuunders
 
Posts: n/a
Default how to format Doe,John to Doe, John (space after a comma)

have a look at :
data
text to columns

--
Greetings from New Zealand
Bill K

"asuncionw" wrote in message
...
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.



  #3   Report Post  
John Michl
 
Posts: n/a
Default how to format Doe,John to Doe, John (space after a comma)

You could also do a Find/Replace.

  #4   Report Post  
asuncionw
 
Posts: n/a
Default how to format Doe,John to Doe, John (space after a comma)

Note, Doe,John is in one column, 100 different names will carry the comma in
different places. This will not work but thanks anyway.

"Bill Kuunders" wrote:

have a look at :
data
text to columns

--
Greetings from New Zealand
Bill K

"asuncionw" wrote in message
...
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.




  #5   Report Post  
asuncionw
 
Posts: n/a
Default how to format Doe,John to Doe, John (space after a comma)

This would help me if no formula or function is available. Thanks John.

"John Michl" wrote:

You could also do a Find/Replace.




  #6   Report Post  
Bill Kuunders
 
Posts: n/a
Default how to format Doe,John to Doe, John (space after a comma)

You can use the comma as the delimiter.
Have a go
--
Greetings from New Zealand
Bill K
"asuncionw" wrote in message
...
Note, Doe,John is in one column, 100 different names will carry the comma
in
different places. This will not work but thanks anyway.

"Bill Kuunders" wrote:

have a look at :
data
text to columns

--
Greetings from New Zealand
Bill K

"asuncionw" wrote in message
...
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.






  #7   Report Post  
asuncionw
 
Posts: n/a
Default how to format Doe,John to Doe, John (space after a comma)

I will try that and I think it should work. Thanks Bill.

"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.

  #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
  #9   Report Post  
asuncionw
 
Posts: n/a
Default how to format Doe,John to Doe, John (space after a comma)

Ron, it works too, thanks to you, Bill and John. Now I have 3 options.

"Ron Rosenfeld" wrote:

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

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Trailing Space / Format Question hagen Excel Discussion (Misc queries) 4 December 28th 04 12:01 AM
copy conditional format as ACTUAL format Dana Zulager Excel Discussion (Misc queries) 7 December 8th 04 12:02 AM
How can I change the default 'comma' format. Eg paranthesis inste. Duncan Excel Discussion (Misc queries) 1 December 4th 04 01:51 AM
Importing French (Canadian) format html pages Pierce Setting up and Configuration of Excel 0 December 1st 04 10:23 PM
.CSV file format - comma or semi-colon antifashionpimp Excel Worksheet Functions 1 November 10th 04 02:18 PM


All times are GMT +1. The time now is 11:49 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"