Using LEFT RIGHT LEN TO reverse and trim first name and last name

alphabex18

New Member
Joined
Dec 28, 2016
Messages
1
I have a cell (A1) that looks like this:
Last Name, First Name [000100833-RWURL]

I need a formula to trim the [000100833-RWURL] , which is always 17 characters with the brackets, and then put the first name first and the last name last with no comma

<colgroup><col width="321" style="width: 241pt; mso-width-source: userset; mso-width-alt: 11739;"> <tbody> </tbody>
this is where I am at so far, but I cant seem to rid the additional items within the brackets
=RIGHT(A1,LEN(A1)-(SEARCH(",",A1,1)+1))
&" "
&LEFT(A1,SEARCH(",",A1,1)-1)

Thanks for any help
 

Excel Facts

Which lookup functions find a value equal or greater than the lookup value?
MATCH uses -1 to find larger value (lookup table must be sorted ZA). XLOOKUP uses 1 to find values greater and does not need to be sorted.
Try this

=MID(LEFT(A1,FIND("[",A1)-2)&" "&LEFT(A1,FIND("[",A1)-2),FIND(" ",LEFT(A1,FIND("[",A1)-2))+1,LEN(LEFT(A1,FIND("[",A1)-2))-1)


Excel 2016 (Windows) 32 bit
AB
1Clooney, George [000100833-RWURL]George Clooney
Sheet2
 
Upvote 0
Another option
Excel Workbook
AB
1Smith, John [000100833-RWURL]John Smith
2Johnson, Mary Ann [000200865-RWURL]Mary Ann Johnson
Sheet
 
Upvote 0

Forum statistics

Threads
1,215,003
Messages
6,122,655
Members
449,091
Latest member
peppernaut

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