ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Flip Values in Single Column (https://www.excelbanter.com/excel-worksheet-functions/112350-flip-values-single-column.html)

Syed

Flip Values in Single Column
 
I have first name and last name in a single column it goes firstname,
lastname. the file has 8000 names is there any way i can flip it to
lastname, firstname?

Rob

Flip Values in Single Column
 
Assuming Peter Rowlans is in cell A1, the following formula will show
Rowlands Peter. Depending on your needs, either insert a column alongside
the existing one and copy the formula down 8000 rows and leave as that or
copy down but then copy and paste value over the original. This formula
only works if the names are in the format you stated.

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

HTH Rob

"Syed" wrote i
n message ...
I have first name and last name in a single column it goes firstname,
lastname. the file has 8000 names is there any way i can flip it to
lastname, firstname?




Teethless mama

Flip Values in Single Column
 
Try this

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



"Syed" wrote:

I have first name and last name in a single column it goes firstname,
lastname. the file has 8000 names is there any way i can flip it to
lastname, firstname?



All times are GMT +1. The time now is 02:40 PM.

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