View Single Post
  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Rick Rothstein \(MVP - VB\)[_808_] Rick Rothstein \(MVP - VB\)[_808_] is offline
external usenet poster
 
Posts: 1
Default Isolate text immediately preceding "("

Assuming you want to pull out the DOB and convert it into a real Excel
date...

=--SUBSTITUTE(SUBSTITUTE(TRIM(RIGHT(A1,10)),")",""),"/",", ")

Rick


"Tacrier" . wrote in message
...
I tried unsuccessfully to isolate text immediately preceding the "(" from a
text string into another cell using:

=MID(A1,SEARCH("(",A1) -20)

My text string contains a payee name followed by their date of birth like
this:

Smith, John (DOB: Dec 16/91)

I want to put the name into cell A1 and the DOB into B1, however I want to
do this for about 100 rows and each row has different text string lengths
due
to the varying name lengths.

Any suggestions?

Thanking you in advance,
Trina