Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
RobertC
 
Posts: n/a
Default How do I extract the last name in Excel, from a list of names lik.

Trying to extract last name from a cell (db field) which contains names like:

John Doe
John B. Doe
J.B. Doe

Various combinations of formulas such as =Right(C17,Len(c17)-FIND(" ", C17))
Can't find the right combination to do the job.

Thanks


  #2   Report Post  
Frank Kabel
 
Posts: n/a
Default

Hi
try:
=MID(A1,LOOKUP(2,1/(MID(A1,seq,1)=" "),seq)+1,1024)

where seq is a defined name ('Insert- Name - Define') with the formula
seq: =ROW(INDIRECT("1:1024"))

"RobertC" wrote:

Trying to extract last name from a cell (db field) which contains names like:

John Doe
John B. Doe
J.B. Doe

Various combinations of formulas such as =Right(C17,Len(c17)-FIND(" ", C17))
Can't find the right combination to do the job.

Thanks


  #3   Report Post  
rccline
 
Posts: n/a
Default

Frank:

Thank you for posting a solution. The solution did not work. I must be
misunderstanding the use of seq and 1024.

Thank you.
Robert

"Frank Kabel" wrote:

Hi
try:
=MID(A1,LOOKUP(2,1/(MID(A1,seq,1)=" "),seq)+1,1024)

where seq is a defined name ('Insert- Name - Define') with the formula
seq: =ROW(INDIRECT("1:1024"))

"RobertC" wrote:

Trying to extract last name from a cell (db field) which contains names like:

John Doe
John B. Doe
J.B. Doe

Various combinations of formulas such as =Right(C17,Len(c17)-FIND(" ", C17))
Can't find the right combination to do the job.

Thanks


  #4   Report Post  
R.VENKATARAMAN
 
Posts: n/a
Default

you can do text to column with <space as delimiter but the last name may
not be in the same column


RobertC wrote in message
...
Trying to extract last name from a cell (db field) which contains names

like:

John Doe
John B. Doe
J.B. Doe

Various combinations of formulas such as =Right(C17,Len(c17)-FIND(" ",

C17))
Can't find the right combination to do the job.

Thanks




  #5   Report Post  
Frank Kabel
 
Posts: n/a
Default

Hi
then try:
=MID(A1,LOOKUP(2,1/(MID(A1,ROW(INDIRECT("1:1024")),1)="
"),ROW(INDIRECT("1:1024")))+1,1024)



"rccline" wrote:

Frank:

Thank you for posting a solution. The solution did not work. I must be
misunderstanding the use of seq and 1024.

Thank you.
Robert

"Frank Kabel" wrote:

Hi
try:
=MID(A1,LOOKUP(2,1/(MID(A1,seq,1)=" "),seq)+1,1024)

where seq is a defined name ('Insert- Name - Define') with the formula
seq: =ROW(INDIRECT("1:1024"))

"RobertC" wrote:

Trying to extract last name from a cell (db field) which contains names like:

John Doe
John B. Doe
J.B. Doe

Various combinations of formulas such as =Right(C17,Len(c17)-FIND(" ", C17))
Can't find the right combination to do the job.

Thanks


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
Excel 2003 FAILS, but Excel 2000 SUCCEEDS ??? Richard Excel Discussion (Misc queries) 2 May 13th 23 11:46 AM
Address List in Excel getalife Excel Discussion (Misc queries) 2 May 29th 06 03:58 PM
export excel file to outlook express contact list gebhardt family New Users to Excel 0 January 20th 05 11:59 PM
How do I put a list of names and e-mail addresses in excel so tha. trav Excel Discussion (Misc queries) 4 December 2nd 04 02:56 AM
How do I import a Windows Explorer list into Excel? Gord Dibben Excel Discussion (Misc queries) 0 December 1st 04 10:20 PM


All times are GMT +1. The time now is 06:53 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"