Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
if the names given are
peter alan smith geroge w bush william scott scotty than how can i retrive the last name, in another cell... like for the retreval of first name the formula =LEFT(E5, FIND(" ",E5)) would do the trick, but cant seem to figure how to retreve the last name... thanks |
#2
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
=MID(E5, FIND(" ", E5, FIND(" ", E5)+1), LEN(E5)
HTH Kostis Vezerides |
#3
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]() Try: =RIGHT(A1,LEN(A1)-SEARCH("#",SUBSTITUTE(A1&" "," ","#",2))) -- Vito ------------------------------------------------------------------------ Vito's Profile: http://www.excelforum.com/member.php...o&userid=29182 View this thread: http://www.excelforum.com/showthread...hreadid=489070 |
#4
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
If the number of spaces may vary (George Bush vs George W. Bush) Try this:
=RIGHT(A14,MATCH(" ",MID(A14,LEN(A14)+1-ROW(INDIRECT("1:"&(LEN(A14)))),1),0)-1) Note: commit that array formula by holding down [Ctrl]+[Shift] when you press[Enter] Does that help? *********** Regards, Ron "zomex" wrote: if the names given are peter alan smith geroge w bush william scott scotty than how can i retrive the last name, in another cell... like for the retreval of first name the formula =LEFT(E5, FIND(" ",E5)) would do the trick, but cant seem to figure how to retreve the last name... thanks |
#5
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
=MID(A1,FIND("~",SUBSTITUTE(A1," ","~",LEN(A1)-LEN(SUBSTITUTE(A1,"
",""))))+1,255) -- HTH RP (remove nothere from the email address if mailing direct) "zomex" wrote in message ... if the names given are peter alan smith geroge w bush william scott scotty than how can i retrive the last name, in another cell... like for the retreval of first name the formula =LEFT(E5, FIND(" ",E5)) would do the trick, but cant seem to figure how to retreve the last name... thanks |
#6
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
thank u very much... i really appreciate it
"vezerid" wrote: =MID(E5, FIND(" ", E5, FIND(" ", E5)+1), LEN(E5) HTH Kostis Vezerides |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
VBA for Excel 2000 file is corrupt | Excel Discussion (Misc queries) | |||
Stop Excel Rounding Dates | Excel Discussion (Misc queries) | |||
Hints And Tips For New Posters In The Excel Newsgroups | Excel Worksheet Functions | |||
Excel error - Startup (and Acrobat PDFMaker) | Setting up and Configuration of Excel | |||
Excel 2002 and 2000 co-install. Control Which Starts ? | Excel Discussion (Misc queries) |