Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10
Default Extract First and Last Name

Lynn

If your last name is always first with a comma at the end, and there is
always a space after the first name, then you could use the following
(not particularly tidy, but it appears to work).

If the names are all in column A, and you want the surname in column B
and the first name in column C, then put:

=LEFT(A1,FIND(",",A1)-1) in cell B1, and

=LEFT(MID(A1,FIND(" ",A1)+1,LEN(A1)),FIND(" ",MID(A1,FIND("
",A1)+1,LEN(A1)))-1) in cell C1

and then copy down as needed.

Andy


*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
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
Extract sajith New Users to Excel 7 September 23rd 08 01:53 PM
Extract 7 and 30 day max West22 Excel Discussion (Misc queries) 2 December 5th 07 12:55 AM
How can I extract each Max key value ? diglas1 via OfficeKB.com New Users to Excel 2 May 31st 06 11:06 PM
Extract Unique Values, Then Extract Again to Remove Suffixes Karl Burrows Excel Discussion (Misc queries) 23 June 25th 05 10:37 PM
Extract First and Last Name John Wilson Excel Programming 0 August 27th 03 04:38 PM


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