Extract text from between the second set of inverted commas (double quotes)

Emile du Toit

New Member
Joined
Mar 7, 2015
Messages
22
I could REALLY do with some help, as I cannot find an online answer to this question. I am extracting text from a large chunk of text in a cell, and most of it is pretty simple. However, the one bit of text I need to extract occurs in a section of the cell where symbols and suchlike vary too much depending on the cell, so it is difficult to find two constant symbols to use to extract the text.

The only pattern I can find is that the text I need to extract always appears within the second set of inverted commas (double quotes), though the total number of double quotes can vary.

So three cells might look like this:
A2: can & XCT , and , "what is it?", pirate, "cat", Fstop
A3: doll& instance , "8 or so", 98 "tortoise", xtr IT "six or seven"
A4: sip, "99 or so" can it be, ??, pot +, fixer, "sheep or goats" "Index", "a pox on all these formulas" & fittest

Working in column B I am trying to extract:
B2: cat
B3: tortoise
B4: sheep or goats
 
Last edited:

Excel Facts

What do {} around a formula in the formula bar mean?
{Formula} means the formula was entered using Ctrl+Shift+Enter signifying an old-style array formula.
Try

=TRIM(MID(SUBSTITUTE(A2,"""",REPT(" ",999)),2999,999))

This formula pulls out the text between the 3rd and 4th quotation marks.
 
Last edited:
Upvote 0

Forum statistics

Threads
1,223,247
Messages
6,171,007
Members
452,374
Latest member
keccles

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