#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 67
Default Editing Text

I have a list of names that are printed like this

SMITH,SAM J
CAMPBELL,SUSAN LYNN
JONES,CINDY

I want it to look like this -

Smith, Sam
Campbell, Susan
Jones, Cindy

How do I remove those middle names, put the names in proper form and put a
space after the comma?
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,058
Default Editing Text

=IF(ISERROR(FIND(" ",A1)),SUBSTITUTE(PROPER(A1),",",",
"),SUBSTITUTE(PROPER(LEFT(A1,FIND(" ",A1)-1)),",",", "))

--
Gary''s Student - gsnu200750


"Help" wrote:

I have a list of names that are printed like this

SMITH,SAM J
CAMPBELL,SUSAN LYNN
JONES,CINDY

I want it to look like this -

Smith, Sam
Campbell, Susan
Jones, Cindy

How do I remove those middle names, put the names in proper form and put a
space after the comma?

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,316
Default Editing Text

Select the column of names and click DATA in the menu and select TEXT TO
COLUMNS. The first name is in column 1, the first name is in column 2 and
the middle name is in column 3 if the middle name exists.

Then in column 4 use the following function to concatenate the last and
first name and put them in proper case:

=PROPER(A1&" "&B1)

Then copy down the column.

Then copy the entire column of concatenated text and then click EDIT, select
PASTE SPECIAL, click the VALUES option and click OK.

Then delete the columns 1, 2 and 3
--
Kevin Backmann


"Help" wrote:

I have a list of names that are printed like this

SMITH,SAM J
CAMPBELL,SUSAN LYNN
JONES,CINDY

I want it to look like this -

Smith, Sam
Campbell, Susan
Jones, Cindy

How do I remove those middle names, put the names in proper form and put a
space after the comma?

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 10,593
Default Editing Text

=PROPER(SUBSTITUTE(LEFT(A1,IF(ISNUMBER(FIND(" ",A1)),FIND("
",A1)-1,LEN(A1))),",",", "))

--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)

"Help" wrote in message
...
I have a list of names that are printed like this

SMITH,SAM J
CAMPBELL,SUSAN LYNN
JONES,CINDY

I want it to look like this -

Smith, Sam
Campbell, Susan
Jones, Cindy

How do I remove those middle names, put the names in proper form and put a
space after the comma?



  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 67
Default Editing Text

Thanks Kevin. That worked easily and perfectly.

"Kevin B" wrote:

Select the column of names and click DATA in the menu and select TEXT TO
COLUMNS. The first name is in column 1, the first name is in column 2 and
the middle name is in column 3 if the middle name exists.

Then in column 4 use the following function to concatenate the last and
first name and put them in proper case:

=PROPER(A1&" "&B1)

Then copy down the column.

Then copy the entire column of concatenated text and then click EDIT, select
PASTE SPECIAL, click the VALUES option and click OK.

Then delete the columns 1, 2 and 3
--
Kevin Backmann


"Help" wrote:

I have a list of names that are printed like this

SMITH,SAM J
CAMPBELL,SUSAN LYNN
JONES,CINDY

I want it to look like this -

Smith, Sam
Campbell, Susan
Jones, Cindy

How do I remove those middle names, put the names in proper form and put a
space after the comma?

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
Editing text after concatenate Fozeye Excel Worksheet Functions 3 May 20th 23 03:47 AM
what download do i need to enable editing text? wkdbecky Excel Discussion (Misc queries) 3 October 26th 06 06:43 PM
Editing Repeated Text Jonny Excel Worksheet Functions 2 November 3rd 05 11:52 AM
text editing function help JenBasch Excel Worksheet Functions 3 September 19th 05 07:41 PM
Why does the cell I'm editing put the text on the right side? Kate Mars Excel Discussion (Misc queries) 1 September 10th 05 12:18 AM


All times are GMT +1. The time now is 10:08 PM.

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"