Correct name

shimaa01234

Active Member
Joined
Jun 24, 2014
Messages
446
I have a Group of names I want to correct names
So that the first letter is the last
The last letteris the first letter
Such an example
retepPeter
oarcPMarco
ntefanSStefan

<tbody>
</tbody>
 

Excel Facts

What is =ROMAN(40) in Excel?
The Roman numeral for 40 is XL. Bill "MrExcel" Jelen's 40th book was called MrExcel XL.
Yes, Mister "Vidar"
CODE works nicely
You also mister "Rick"
CODE works nicely, but is it possible to do so as the result by formula
Because I love more formula
 
Upvote 0
Unfortunately Mister "Aladin"
I made the mistake in the letter

That appears to be the case in 2/3 of the input cases. That's whay of the question in post #4...

Does all this mean that this is:

retepPeter
arcoMMarco
tefanSStefan

<COLGROUP><COL style="WIDTH: 70pt; mso-width-source: userset; mso-width-alt: 3328" width=94><COL style="WIDTH: 69pt; mso-width-source: userset; mso-width-alt: 3271" width=92><TBODY>
</TBODY>

what you have actually meant?
 
Upvote 0
As you can see the formula solution is a bit long. Enter the formula below in B2 and C2 resp., then copy the formula in C2 across as long as needed. If there are four names, concatenate columns C – F in cell B2:

Enter in B2:

=C2&" "&D2&" "&" "&E2&" "&F2

C2 (and copy across):

=REPLACE(SUBSTITUTE(REPLACE(TRIM(MID(SUBSTITUTE(" "&$A2," ",REPT(" ",99)),COLUMNS($A:A)*99,99)),2,0,(RIGHT(TRIM(MID(SUBSTITUTE(" "&$A2," ",REPT(" ",99)),COLUMNS($A:A)*99,99)),1)))&"ß",RIGHT(TRIM(MID(SUBSTITUTE(" "&$A2," ",REPT(" ",99)),COLUMNS($A:A)*99,99))&"ß",2),LEFT(TRIM(MID(SUBSTITUTE(" "&$A2," ",REPT(" ",99)),COLUMNS($A:A)*99,99)),1)),1,1,"")

*ABCDEF
1******
2ntefaS oarcM reteP ialVStefan Marco *Peter ValiStefanMarcoPeterVali
3ntefaS oarcM retePStefan Marco *Peter StefanMarcoPeter*
4ntefaS oarcMStefan Marco * StefanMarco**
5ntefaSStefan * *Stefan***

<colgroup><col style="width:30px; "><col style="width:170px;"><col style="width:176px;"><col style="width:71px;"><col style="width:68px;"><col style="width:67px;"><col style="width:64px;"></colgroup><tbody>
</tbody>


Excel tables to the web >> Excel Jeanie HTML 4
 
Upvote 0
You always give me the genius solutions Thank you very much, Mr." Istvan Hirsch" Solution is really a genius
 
Upvote 0

Forum statistics

Threads
1,216,075
Messages
6,128,665
Members
449,462
Latest member
Chislobog

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