Forum Discussion
Last Name, First name to First Name Last Name,
This is probably pretty basic, but I need to convert (CONCAT?) a column of names from (Last Name, First name) to (First Name Last Name,).
Thanks, in advance!
Ex" A2 = BOND, JAMES
use: =RIGHT(A2,LEN(A2)-FIND(", ",A2))&" "&LEFT(A2,FIND(", ",A2)-1)
to get JAMES BOND
place formula only beside cells with commaex: BOND JAMES
use: =RIGHT(A2,LEN(A2)-FIND(" ",A2))&" "&LEFT(A2,FIND(" ",A2)-1)
pls see attached file
11 Replies
- SergeiBaklanDiamond Contributor
For the static data Flash Fill https://support.office.com/en-us/article/using-flash-fill-in-excel-3f9bcf1e-db93-4890-94a0-1578341f73f7 works fine if you are on Excel 2013 or later. Just start typing in first couple of cells, Flash Fill will do the rest
If you add more data select range in column B and click Fill->Flash Fill in ribbon
- Lorenzo KimBronze Contributor
Mr. Baklan
good info..
thanks..
- Bob WeilCopper ContributorPS I need to skip cells that have no commas.
- Lorenzo KimBronze Contributorpls place some samples of output you need in the file I sent.
thanks- Bob WeilCopper Contributor
Best response - so far - I'm hoping ;-)
- Lorenzo KimBronze Contributor
- Bob WeilCopper ContributorSo, I have a column with Last, First in most of the cells, but not all & I want to create a column with First Last, from the cells with commas & leave the rest alone. This newb needs help. LOL
- Lorenzo KimBronze Contributor
Ex" A2 = BOND, JAMES
use: =RIGHT(A2,LEN(A2)-FIND(", ",A2))&" "&LEFT(A2,FIND(", ",A2)-1)
to get JAMES BOND
place formula only beside cells with commaex: BOND JAMES
use: =RIGHT(A2,LEN(A2)-FIND(" ",A2))&" "&LEFT(A2,FIND(" ",A2)-1)
pls see attached file
- Lorenzo KimBronze Contributoror you can use =concatenate(B2," ",A2)