# trimming help

#### alex19

##### New Member
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)),"")

### Excel Facts

How to calculate loan payments in Excel?
Use the PMT function: =PMT(5%/12,60,-25000) is for a \$25,000 loan, 5% annual interest, 60 month loan.
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.

With the name in A1

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

Replies
2
Views
348
Replies
1
Views
267
Replies
2
Views
126
Replies
3
Views
413
Replies
10
Views
363

1,219,093
Messages
6,146,266
Members
450,681
Latest member
ASBM24

### 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.

### Which adblocker are you using?

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

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