Separate then concatenat

Peter Muller

Board Regular
Joined
Oct 15, 2018
Messages
133
Office Version
  1. 365
Platform
  1. Windows
I have a list of names and surnames in Col A, and want to change the sequence to surname first, then a comma, then a space, then the first name. I presently use a roundabout way to get the result, and have col's B & C hidden. Please help me with a more simple/condensed formula


Name and SurnameSurname, Name
=LEFT(A3, SEARCH(" ",A3,1))=RIGHT(A3,LEN(A3)-SEARCH(" ",A3,1))=CONCAT(C3,",", " ",B3)
Peter JohnPeterJohnJohn, Peter
Abba SmithAbbaSmithSmith, Abba
Jerry BarryJerryBarryBarry, Jerry
 

Excel Facts

Excel Joke
Why can't spreadsheets drive cars? They crash too often!

Forum statistics

Threads
1,214,515
Messages
6,119,973
Members
448,933
Latest member
Bluedbw

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top