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

Add Bullets to Range
Select range. Press Ctrl+1. On Number tab, choose Custom. Type Alt+7 then space then @ sign (using 7 on numeric keypad)
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,215,461
Messages
6,124,952
Members
449,198
Latest member
MhammadishaqKhan

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