Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Will61768
 
Posts: n/a
Default I don't know if this is even possible...


I want to take a list that has in a column Firstname Lastname and what I
want to do is covert that into Lastname, Firstname.

Is that even possible?

The Firstname Lastname are in the same column, I wasn't sure if that
was clear.


Thanks for any suggestions you can offer.


--
Will61768


------------------------------------------------------------------------
Will61768's Profile: http://www.excelforum.com/member.php...o&userid=27922
View this thread: http://www.excelforum.com/showthread...hreadid=474181

  #2   Report Post  
swatsp0p
 
Posts: n/a
Default


You need to give us the specific layout of the text in the cell and a
formula can be written to invert the text.

Is it in the format of:

John Smith
John J. Smith
JohnSmith
John,Smith
Mr. John Smith
Mrs. Jane Doe
...etc.?

Also, are all entries of the same format or do you have multiples:

John Smith
Mr. Alex Rightly
Mrs. A.J. Dripper
...etc.?

Now if we assume your data is in the "John Smith" format, this formula
will return "Smith, John":

=RIGHT(A1,LEN(A1)-FIND(" ",A1,1))&", "&LEFT(A1,FIND(" ",A1,1)-1)

If not, more info, please.

Good Luck


--
swatsp0p


------------------------------------------------------------------------
swatsp0p's Profile: http://www.excelforum.com/member.php...o&userid=15101
View this thread: http://www.excelforum.com/showthread...hreadid=474181

  #3   Report Post  
Bob Phillips
 
Posts: n/a
Default

If it is just like that with a space separator, try

=MID(A1,FIND(" ",A1)+1,99)&", "&LEFT(A1,FIND(" ",A1))

--
HTH

Bob Phillips

"Will61768" wrote
in message ...

I want to take a list that has in a column Firstname Lastname and what I
want to do is covert that into Lastname, Firstname.

Is that even possible?

The Firstname Lastname are in the same column, I wasn't sure if that
was clear.


Thanks for any suggestions you can offer.


--
Will61768


------------------------------------------------------------------------
Will61768's Profile:

http://www.excelforum.com/member.php...o&userid=27922
View this thread: http://www.excelforum.com/showthread...hreadid=474181



  #4   Report Post  
Ashish Mathur
 
Posts: n/a
Default

Hi,

You may try the following array formula (Ctrl+Shift+Enter)

=MID(A16,MATCH(TRUE,EXACT(MID(A16,ROW($2:$13),1),P ROPER(MID(A16,ROW($2:$13),1))),0)+2,255)&"
"&MID(A16,MATCH(TRUE,EXACT(MID(A16,ROW($1:$13),1), PROPER(MID(A16,ROW($1:$13),1))),0),MATCH(TRUE,EXAC T(MID(A16,ROW($2:$13),1),PROPER(MID(A16,ROW($2:$13 ),1))),0))

A16 contains the name as First name Last name.

Hope this helps

Regards,

Ashish Mathur


"Will61768" wrote:


I want to take a list that has in a column Firstname Lastname and what I
want to do is covert that into Lastname, Firstname.

Is that even possible?

The Firstname Lastname are in the same column, I wasn't sure if that
was clear.


Thanks for any suggestions you can offer.


--
Will61768


------------------------------------------------------------------------
Will61768's Profile: http://www.excelforum.com/member.php...o&userid=27922
View this thread: http://www.excelforum.com/showthread...hreadid=474181


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



All times are GMT +1. The time now is 06:54 AM.

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"