Looking for how to do a double FIND formula

  • Thread starter Philippe L. Balmanno
  • Start date
P

Philippe L. Balmanno

I have a cells in column A in varying lengths that I want to extract the
text characters in between two known and common characters { and }. I've
tried figuring out the use of =MID(A:A,FIND("{",A:A&"}")-1,255) however the
string of characters within { and } varies in length. Is there a way to
count the characters in between my search criteria and replace the 255 with
that number?
 
P

Peo Sjoblom

One way

=MID(A1,FIND("{",A1)+1,FIND("}",A1)-FIND("{",A1)-1)

--
Regards,

Peo Sjoblom

(No private emails please)
 
A

Aladin Akyurek

=MID(A2,FIND("{",A2)+1,FIND("}",A2)-FIND("{",A2)-1)
I have a cells in column A in varying lengths that I want to extract the
text characters in between two known and common characters { and }. I've
tried figuring out the use of =MID(A:A,FIND("{",A:A&"}")-1,255) however the
string of characters within { and } varies in length. Is there a way to
count the characters in between my search criteria and replace the 255 with
that number?

--

[1] The SumProduct function should implicitly coerce the truth values to
their Excel numeric equivalents.
[2] The lookup functions should have an optional argument for the return
value, defaulting to #N/A in its absence.
 
T

Tom Ogilvy

=MID(A1,FIND("{",A1),FIND("}",A1)-FIND("{",A1)+1)

includes the Braces, This is the text between:

=MID(A1,FIND("{",A1)+1,FIND("}",A1)-FIND("{",A1)-1)
 
P

Philippe L. Balmanno

Philippe L. Balmanno said:
I have a cells in column A in varying lengths that I want to extract the
text characters in between two known and common characters { and }. I've
tried figuring out the use of =MID(A:A,FIND("{",A:A&"}")-1,255) however the
string of characters within { and } varies in length. Is there a way to
count the characters in between my search criteria and replace the 255 with
that number?
Thank you I just had a small modification to include the start & end
characters.
=MID(A1,FIND("{",A1)-1,FIND("}",A1)-FIND("{",A1)+2)
 
Top