swap text left side of comma with text right side of comma

IvoOvermars

New Member
Joined
Aug 6, 2010
Messages
12
Goedmorning,

Someone gave me a two list of names I have to compare. However the names differ in the way they are set up. Now i would like to switch the text left of the comma with the text right of the comma. Is this possible?

Example

List 1
Velde, van der

Same name in list 2
van der Velde


Kind regards,

Ivo

<tbody>
</tbody>
 

Excel Facts

Bring active cell back into view
Start at A1 and select to A9999 while writing a formula, you can't see A1 anymore. Press Ctrl+Backspace to bring active cell into view.
Give this formula a try...

=MID(A1&" "&A1,FIND(" ",A1)+1,LEN(A1)-1)
 
Upvote 0
Try

=RIGHT(A1,LEN(A1)-FIND(",",A1)-1)&" "&LEFT(A1,FIND(",",A1)-1)
 
Upvote 0
Hang on having this annoying dutch version with also translates the formulas :s. Figuring out what dutch formula to use
 
Upvote 0
Not sure why yet. But I get an error on the underlined part

RECHTS(A1,LENGTE(A1)-VIND(",",A1)-1)&" "&LINKS(A1,VIND(",",A1)-1)
 
Upvote 0
Probably should be

RECHTS(A1;LENGTE(A1)-VIND(",",A1)-1)&" "&LINKS(A1;VIND(",",A1)-1)
 
Upvote 0
Thank you got it to work. I had to replace the one word formula FIND with VIND.ALLES. Wich translated means Find.ALL

=RECHTS(A1;LENGTE(A1)-VIND.ALLES(",";A1)-1)&" "&LINKS(A1;VIND.ALLES(",";A1)-1)
 
Upvote 0
Based on the link VoG posted, I believe the formula I posted in Message #2 translates this way...

=DEEL(A1&" "&A1;VIND(" ";A1)+1;LENGTE(A1)-1)



EDIT NOTE: Or, based on what you posted in Message #8, possibly this....

=DEEL(A1&" "&A1;VIND.ALLES(" ";A1)+1;LENGTE(A1)-1)
 
Last edited:
Upvote 0

Forum statistics

Threads
1,214,954
Messages
6,122,462
Members
449,085
Latest member
ExcelError

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