Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
Tim
 
Posts: n/a
Default choose a particular word in a string

I have a list of names with both names in one cell. How do i choose the first
name and put into the next column? and then repeat that for the second name?
  #2   Report Post  
Posted to microsoft.public.excel.misc
Bob Phillips
 
Posts: n/a
Default choose a particular word in a string

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

=LEFT(SUBSTITUTE($A1,B1&" ",""),IF(ISNUMBER(FIND(" ",SUBSTITUTE($A1,B1&"
",""))),FIND(" ",SUBSTITUTE($A1,B1&" ",""))-1,LEN(SUBSTITUTE($A1,B1&"
",""))))

=LEFT(SUBSTITUTE($A1,B1&" "&C1&" ",""),IF(ISNUMBER(FIND("
",SUBSTITUTE($A1,B1&" "&C1&" ",""))),FIND(" ",SUBSTITUTE($A1,B1&" "&C1&"
",""))-1,LEN(SUBSTITUTE($A1,B1&" "&C1&" ",""))))

and so on

--
HTH

Bob Phillips

(remove xxx from email address if mailing direct)

"Tim" wrote in message
...
I have a list of names with both names in one cell. How do i choose the

first
name and put into the next column? and then repeat that for the second

name?


  #3   Report Post  
Posted to microsoft.public.excel.misc
CLR
 
Posts: n/a
Default choose a particular word in a string

"Two basic techniques are used, Data TextToColumns follow the menu", or
"the use of the LEFT and MID functions". Both are dependent on exactly how
your names are in the cells, whether FirstName-space-LastName, or
LastName-,-space-FirstName, etc etc and whether any middle initials, periods,
or titles etc are used.

Vaya con Dios,
Chuck, CABGx3



"Tim" wrote:

I have a list of names with both names in one cell. How do i choose the first
name and put into the next column? and then repeat that for the second name?

  #4   Report Post  
Posted to microsoft.public.excel.misc
Pete_UK
 
Posts: n/a
Default choose a particular word in a string

If the names are separated by a single space, then you can highlight
the column and use Data | Text-to-columns, specifying Delimited data
with space as the delimiter. You can specify where the data is to be
written to, if you want to keep the original column of names.

Hope this helps.

Pete

  #5   Report Post  
Posted to microsoft.public.excel.misc
Tim
 
Posts: n/a
Default choose a particular word in a string

Thanks guys. All very helpful.


"Pete_UK" wrote:

If the names are separated by a single space, then you can highlight
the column and use Data | Text-to-columns, specifying Delimited data
with space as the delimiter. You can specify where the data is to be
written to, if you want to keep the original column of names.

Hope this helps.

Pete


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
Sending from excel to word template pizdus Excel Discussion (Misc queries) 0 January 17th 06 05:57 PM
Excel cannot establish a DDE with WORD rmoritzky Excel Discussion (Misc queries) 0 December 18th 05 02:16 PM
Can Excel Export Data to Word Format? Reddiance Excel Discussion (Misc queries) 2 April 18th 05 06:03 PM
Finding Specific Text in a Text String Peter Gundrum Excel Worksheet Functions 9 April 10th 05 07:21 PM
Entering Excel information into MS Word dwalsh77 Excel Discussion (Misc queries) 0 April 8th 05 05:29 PM


All times are GMT +1. The time now is 03:57 PM.

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

About Us

"It's about Microsoft Excel"