ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Reversing Text in cells (https://www.excelbanter.com/excel-discussion-misc-queries/172921-reversing-text-cells.html)

Truc Lopez

Reversing Text in cells
 
I have a list of names in a column that were entered as First Name then Last
Name. Is there a way to transposing all of the names so that they read Last
Name, then First Name?

Example:

currently - Chris Lopez
desired outcome - Lopez, Chris

Gary''s Student

Reversing Text in cells
 
=RIGHT(A1,LEN(A1)-FIND(" ",A1,1)) & ", " & LEFT(A1,FIND(" ",A1,1))
--
Gary''s Student - gsnu200765

T. Valko

Reversing Text in cells
 
As long as the names are only 2 word names:

=MID(A1&", "&A1,FIND(" ",A1)+1,LEN(A1)+1)

If you have names like: John Paul De La Cruz Sr. = good luck!!!

--
Biff
Microsoft Excel MVP


"Truc Lopez" wrote in message
...
I have a list of names in a column that were entered as First Name then
Last
Name. Is there a way to transposing all of the names so that they read
Last
Name, then First Name?

Example:

currently - Chris Lopez
desired outcome - Lopez, Chris




Truc Lopez

Reversing Text in cells
 
Thank you!!!!

"Gary''s Student" wrote:

=RIGHT(A1,LEN(A1)-FIND(" ",A1,1)) & ", " & LEFT(A1,FIND(" ",A1,1))
--
Gary''s Student - gsnu200765


CLR

Reversing Text in cells
 
=RIGHT(A1,LEN(A1)-FIND(" ",A1,1)) & ", " & LEFT(A1,FIND(" ",A1,1))

Returns a trailing space......this drops it

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

Vaya con Dios,
Chuck, CABGx3



"Gary''s Student" wrote:

=RIGHT(A1,LEN(A1)-FIND(" ",A1,1)) & ", " & LEFT(A1,FIND(" ",A1,1))
--
Gary''s Student - gsnu200765



All times are GMT +1. The time now is 05:59 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com