Extract text string using MID

  • Thread starter Thread starter Turk
  • Start date Start date
T

Turk

Dear all,

I have got a text string as below

She is a girl,,,,,"I am a boy",""

What the formula should be to extract the string between ,,,,," and ",""
so that the result comes out with I am a boy ?

Thanks

Turk
 
Dear Biff,

Thanks for your prompt response.

However the formula doesn't work when there are some more characters follow
the strings

ie: She is a girl,,,,,"I am a boy",""she is a woman

returns I am a boyshe is a woman

but I only want the result to be I am a boy

Pls help


Turk
 
Try this:

=LEFT(MID(A1,FIND("""",A1)+1,255),FIND(",",MID(A1,FIND("""",A1)+1,255))-2)

I'm assuming every entry has as part of the string:

.........."some text",..............

If not then post SEVERAL representative samples so we can see what's needed.

Biff
 
Dear Biff,

This works, thank you~

Turk


Biff said:
Try this:

=LEFT(MID(A1,FIND("""",A1)+1,255),FIND(",",MID(A1,FIND("""",A1)+1,255))-2)

I'm assuming every entry has as part of the string:

........."some text",..............

If not then post SEVERAL representative samples so we can see what's
needed.

Biff
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top