Excel Abstract Text From Cell (#Value) error

bquek

New Member
Joined
Jun 23, 2013
Messages
14
I am trying to abstract combination of text from a cell (A1). The cell comprise of FirstName, LastName, AccounNumber, and the Statement Date. The formula cannot retrieve name format such as FirstName intial, MiddleName initials, and LastName full (A2). Only works with First and Last names. Please assist with the formula (or shorter formula).

Cell A1
John Adam (*8989) Statement Date 12/5/2013
Sam Dean Garza (*9966) Statement Date 12/5/2013
Ben De La Rosa (*5676) Statement Date 2/5/2013

Output in Cell A2
JAdam (ok)
SDGarza (#Value)
BDLRosa (#Value)

Below is the formula:
Code:
=Left(A1,1)&Mid(A1,Find(" ",A1,1)+1,(Find(" ",A1,Find(" ",A1)+1)-Find(" ",A1,1)&IF(Mid(A1,Find(" ",A1,Find(" ",A1)+1)+1,1)="(",,(Mid(A1,Find(" ",A1,Find(" ",A1,1)+1)+1,Find(" ",A1,Find(" ",A1)+1)+1)-Find(" ",A1,find(" ",A1,1)+1)-1)&IF(Mid(A1,Find(" ",A1,Find(" ",A1,Find(" ",A1)+1)+1)+1,1)="(",,(Mid(A1,Find(" ",A1,Find(" ",A1,Find(" ",A1,1)+1)-1)+1,Find(" ",A1,Find(" ",A1,Find(" ",A1,Find(" ",A1q)+1)+1)+1)-Find(" ",A1,Find(" ",A1,Find(" ",A1,1)+1)+1)-1))))))

Thank you for your help.
Cheers,
Ben
 

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
try this:
Ben De La Rosa (*5676) Statement Date 2/5/2013
John Adam (*8989) Statement Date 12/5/2013
Sam Dean Garza (*9966) Statement Date 12/5/2013
Ben De La Rosa (*5676) Statement Date 2/5/2013
BRosa
JAdam
SGarza
BRosa

<tbody>
</tbody><colgroup><col></colgroup>

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

<tbody>
</tbody><colgroup><col></colgroup>
 
Upvote 0
Is it possible to include their middle name initials due to the possibility of having similar first name initial and last name?

BDLRosa
SDGr
 
Upvote 0
this will add up to 2 middle initials:
=LEFT(A1,1)&IF(LEN(LEFT(A1,FIND("(",A1)-2))-LEN(SUBSTITUTE(LEFT(A1,FIND("(",A1)-2)," ","")) > 1,MID(A1,FIND(" ",A1)+1,1),"")&IF(LEN(LEFT(A1,FIND("(",A1)-2))-LEN(SUBSTITUTE(LEFT(A1,FIND("(",A1)-2)," ","")) > 2,MID(A1,FIND(" ",A1,FIND(" ",A1)+1)+1,1),"")&RIGHT(LEFT(A1,FIND("(",A1)-2),LEN(LEFT(A1,FIND("(",A1)-2))-FIND("*",SUBSTITUTE(LEFT(A1,FIND("(",A1)-2)," ","*",LEN(LEFT(A1,FIND("(",A1)-2))-LEN(SUBSTITUTE(LEFT(A1,FIND("(",A1)-2)," ","")))))

<tbody>
</tbody><colgroup><col></colgroup>
 
Upvote 0

Forum statistics

Threads
1,220,965
Messages
6,157,119
Members
451,398
Latest member
rjsteward

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