Thread: Editing Text
View Single Post
  #4   Report Post  
Posted to microsoft.public.excel.misc
Bob Phillips Bob Phillips is offline
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?