trimming help

alex19

New Member
Joined
Jul 4, 2007
Messages
27
in cell c87 i have a name ex
Helmoney, Jonathen
i need it to be turened into jonathen helmoney

how can i do this i tryed this however it just gives me one name

=IF(C87<>"",TRIM(RIGHT(C87,LEN(C87)-SEARCH(",",C87)-1)),"")
 

Some videos you may like

Excel Facts

Did you know Excel offers Filter by Selection?
Add the AutoFilter icon to the Quick Access Toolbar. Select a cell containing Apple, click AutoFilter, and you will get all rows with Apple

Paddy1979

Well-known Member
Joined
Sep 23, 2005
Messages
608
Hi try,

Code:
=MID(A4,FIND(",",A4,1)+2,LEN(A4)-FIND(",",A4,1))&" "&MID(A4,1,FIND(",",A4,1)-1)

There maybe a shorter way but i think it should work.

Example given is with name in cell A4.
 

VoG

Legend
Joined
Jun 19, 2002
Messages
63,650
With the name in A1

=RIGHT(A1,LEN(A1)-FIND(" ",A1)) & " " & LEFT(A1,FIND(" ",A1)-2)
 

Watch MrExcel Video

Forum statistics

Threads
1,122,860
Messages
5,598,491
Members
414,243
Latest member
Shockpulsar

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
Top