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

Links? Where??
If Excel says you have links but you can't find them, go to Formulas, Name Manager. Look for old links to dead workbooks & delete.

AlKey

Active Member
Joined
Oct 15, 2013
Messages
395
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

AhoyNC

Well-known Member
Joined
Oct 10, 2011
Messages
5,192
Office Version
  1. 365
Platform
  1. Windows
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,191,385
Messages
5,986,314
Members
440,017
Latest member
vasanrajeswaran

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