reversing entry

A

american

Hello,

I am a teacher and many times I receive names of students in excel files for
example as John Doe. I would like to know if anyone knows of a way to convert
the name to Doe, John in an easy step so the name can be alphabetized.

If you know please let me know at american @ pressenter . com

Thanks
 
J

JE McGimpsey

One way (assuming only 2 names):

=MID(A1,FIND(" ",A1)+1,255) & ", " & LEFT(A1,FIND(" ",A1)-1)
 
G

gls858

american said:
Hello,

I am a teacher and many times I receive names of students in excel files for
example as John Doe. I would like to know if anyone knows of a way to convert
the name to Doe, John in an easy step so the name can be alphabetized.

If you know please let me know at american @ pressenter . com

Thanks

I would suggest using the text to column feature and separate the name into
two columns FirstName and LastName. This will allow you to sort by
either field.

Here's a link to a sample on the MS site.

http://office.microsoft.com/en-us/assistance/HA011498511033.aspx



gls858
 
D

David McRitchie

Must get confusing with double first name like "Nancy Jo"
or compound last names like "van Buren"

First And Last Names
http://www.cpearson.com/excel/FirstLast.htm

Unless you are trying to save space it probably would be easier to
work with across applications if you used separate columns. The
main advantage to using a comma is the hope that someone doesn't
have both a very long last name *and* firstname.
 
G

gls858

David said:
Must get confusing with double first name like "Nancy Jo"
or compound last names like "van Buren"

First And Last Names
http://www.cpearson.com/excel/FirstLast.htm

Unless you are trying to save space it probably would be easier to
work with across applications if you used separate columns. The
main advantage to using a comma is the hope that someone doesn't
have both a very long last name *and* firstname.
---
HTH,
David McRitchie, Microsoft MVP - Excel [site changed Nov. 2001]
My Excel Pages: http://www.mvps.org/dmcritchie/excel/excel.htm
Search Page: http://www.mvps.org/dmcritchie/excel/search.htm

gls858 said:
I would suggest using the text to column feature and separate the name into
two columns FirstName and LastName. This will allow you to sort by
either field.

Here's a link to a sample on the MS site.

http://office.microsoft.com/en-us/assistance/HA011498511033.aspx



gls858

Yes, I can see where my suggestion wouldn't work in some cases. I hadn't
thought about the double names. Thanks for pointing that out.

gls858
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top