Please how do i do the following
column a has a list of names in it - last name, first name
is there a way to reverse that to read - first name, last name
with out having to re type all names
Please how do i do the following
column a has a list of names in it - last name, first name
is there a way to reverse that to read - first name, last name
with out having to re type all names
If there are only ever two names separated by a space then one way would be
Formula:Please Login or Register to view this content.
However I can't help thinking that all the names may not be a simple first/last name, in which case we need to see a representative sample of your data.
Richard Buttrey
RIP - d. 06/10/2022
If any of the responses have helped then please consider rating them by clicking the small star icon below the post.
MR. bUTTREY THANKS THAT DIDNT HELP I HAVE ATTACHED A SAMPLE
@Richards solution works with the adaption to accomodate ','
Please Login or Register to view this content.
You might need to either add a -1 to the formula or wrap in a Trim
=RIGHT(A2,LEN(A2)-FIND(",",A2)-1)&" "&LEFT(A2,FIND(",",A2)-1)
=TRIM(RIGHT(A2,LEN(A2)-FIND(",",A2))&" "&LEFT(A2,FIND(",",A2)-1))
HTH
Regards, Jeff
Aesthetically speaking..
=TRIM(RIGHT(SUBSTITUTE(A2,",",REPT(" ",255)),255))&" "&TRIM(LEFT(SUBSTITUTE(A2,",",REPT(" ",255)),255))
or
TRIM(RIGHT(SUBSTITUTE(A2,",",REPT(" ",255)),255)&" "&LEFT(SUBSTITUTE(A2,",",REPT(" ",255)),255))
Life's a spreadsheet, Excel!
Say thanks, Click *
Or try:
=MID(A2&" "&A2,FIND(",",A2)+2,LEN(A2)-1)
Another way:
=TRIM(MID(SUBSTITUTE(A2&" "&A2,",",REPT(" ",255)),255,255))
An alternative solution if you are using Excel 2010 or later is Power Query. Here is the Mcode and the document
Since you posted an .xlsx file, I can assume you are no longer using Excel 2003 as indicated in your profile. Please update your profile to the correct version of excel. This is important as solution may vary based upon the version you are using.Please Login or Register to view this content.
Last edited by alansidman; 01-01-2020 at 10:28 AM.
Alan עַם יִשְׂרָאֵל חַי
Change an Ugly Report with Power Query
Database Normalization
Complete Guide to Power Query
Man's Mind Stretched to New Dimensions Never Returns to Its Original Form
Thanks all got it to work
happy new year all the best for 2020
Glad to see these solutions worked for you. You're very welcome. We are happy to help and thanks for the feedback.
If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.
Also, as a relatively new member of the forum, you may not be aware that you can thank those who have helped you by clicking the small star icon located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of those who helped.
The other pragmatic solution would have been to use TextToColumns specifiying the comma as a delimiter then in column C concatenate the names with
Formula:Please Login or Register to view this content.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks