Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

"Firstname LastName" split this to just "LastName"

Status
Not open for further replies.

mike91

Programmer
Aug 13, 2002
14
GB
Hi there

I have a column with over 2000 entries of name I need to split the column into two so that it shows just the lastname and the other just the firstname

(create to new columns - yes - one called firstname and one called lastname) - copy the contents of the authors to each of the new columns and use this data.

But then how do I extract the lastname?????
 
Hi

LastName = Mid(FullName,instr(1,Fullname," ")+1)

but this will only work if all full names have been uniformly created as firstname surname

hope this helps Regards

Ken Reay
Freelance Solutions Developer
Boldon Information Systems Ltd
UK
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top