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:
Thank you for your help.
Cheers,
Ben
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