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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Names re sorted in Excel cells 2

Status
Not open for further replies.

SteveAudus

Technical User
Oct 4, 2001
409
GB
I have a list of a 1000 names in cells
like this example

A | B
John Smith |
Hayley Howard |
Joe Mickard |
Adam Sharp |

Unfortunatley it's full names in one cell
I need the surname first, is there
a easy way of getting just their surname,
say into cell B.


Steve Audus
Chaucer Community School
Sheffield
UK
 
Try using this formula:

=RIGHT(A1,LEN(A1)-SEARCH(" ",A1,1))
 
Hi Steve

Try putting this in column B:

=MID(A1,FIND(" ",A1)+1,9999)

It will give you the surname if you always have just one space between first and surname and there are no initials etc.

HTH

pjm
 
sure there is :eek:)

Save your excel file in text format
then open excel
open the text file
tell it to import as a delimited file, space, treat multiple delimiters as 1
finsih

You'll have what you want with the first name in column a and the last name in column b

If you want more help just ask :eek:)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top