Change the order of a double barrelled surname

EmmaTM

Board Regular
Joined
Jan 5, 2022
Messages
74
Office Version
  1. 365
Platform
  1. Windows
Hi , I am looking for a simple way to change the order of a double barrelled surname.
For example if in my list of names I have Smith-Jones, I want to be able to swap that to Jones-Smith. I may have multiple names in the list.

Thank you
 

Excel Facts

Last used cell?
Press Ctrl+End to move to what Excel thinks is the last used cell.
Many ways to do this but would need to see some sample data as we don't know what delimiters may occur. Also please tell us which version of excel you have

thanks
 
Upvote 0
Also please tell us which version of excel you have
Have a look at the OP's details at the left of their post. :)

@EmmaTM
If your data contains just surnames, then try this. Otherwise please give us some varied but realistic sample data and expected results, preferably with XL2BB

23 12 08.xlsm
AB
1Smith-JonesJones-Smith
2HallHall
Swap
Cell Formulas
RangeFormula
B1:B2B1=MID(A1&"-"&A1,FIND("-",A1&"-")+1,LEN(A1))
 
Upvote 1
Solution
You're welcome. Thanks for the follow-up. :)
 
Upvote 0

Forum statistics

Threads
1,215,214
Messages
6,123,664
Members
449,114
Latest member
aides

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