Prev Previous Post   Next Post Next
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,501
Default Formula

Hi,

Try this with your names in column A

This in B1 and drag down to extract the title
=LEFT(A1,FIND(" ",A1,1)-1)

This in C1 and drag down to extract the last name
=IF(ISERR(FIND(" ",A1)),A1,MID(A1,FIND("^^",SUBSTITUTE(A1,"
","^^",LEN(A1)-LEN(SUBSTITUTE(A1," ",""))))+1,1024))

This in D1 to extract the middle initial(s)
=TRIM(MID(A1,LEN(B1)+1,LEN(A1)-(LEN(B1)+LEN(C1))))


Mike

"dazoloko" wrote:

I have a download into Excel which contains names, however the full name is
in one cell eg

Mr J Smith
Mrs S Jones
Mr A B Thompson

I can extract the title, ie Mr and I can extract the Last name, ie Smith
using formulas. Where Im hitting a wall is where there is more than one
inititial. In effect, I am looking for a formula which will extract all text
between the first space in the cell and the last space in the cell. Any help
woud be greatly appreciated.


 
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



All times are GMT +1. The time now is 10:33 AM.

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"