Text string extraction

Excellis

New Member
Joined
Oct 30, 2012
Messages
25
Office Version
  1. 2016
Platform
  1. Windows
Can anyone help?
I'm after a function or combination of functions that can help me extract specific text from a known set of variables. For example, from the list below I might want to know how many blue flags are listed. I may also want to know how many white posters are listed etc.
The list (within each cell) will always be in alphabetical order by item, and the colours will always be in alphabetical order within the parentheses, but not all elements will be present at all times, as you can see.
In the list below each line represents a cell so the range could be C7:C22, for example

[TABLE="width: 425"]
<TBODY>[TR]
[TD]Poster (White)</SPAN>[/TD]
[/TR]
[TR]
[TD]Poster (Blue,Red,White), Flag (Red)</SPAN>[/TD]
[/TR]
[TR]
[TD]Leaflet (Red), Poster (Blue), Flag (Blue,White)</SPAN>[/TD]
[/TR]
[TR]
[TD]Card (Red), Sticker (Red), Flag (Blue,Red)</SPAN>[/TD]
[/TR]
[TR]
[TD]Sticker (Blue,Red,White), Bookmark (Blue)</SPAN>[/TD]
[/TR]
[TR]
[TD]Sticker (Red,White), Flag (Blue,White)</SPAN>[/TD]
[/TR]
[TR]
[TD]Sticker (Blue,Red,White), Flag (Blue)</SPAN>[/TD]
[/TR]
[TR]
[TD]Bookmark (Blue), Flag (Blue,Red,White)</SPAN>[/TD]
[/TR]
[TR]
[TD]Leaflet (Blue,Red), Poster (Blue,Red),Flag (Red)</SPAN>[/TD]
[/TR]
[TR]
[TD]Leaflet (Blue,Red,White), Poster (White)</SPAN>[/TD]
[/TR]
[TR]
[TD]Card (Red), Sticker (Red), Flag (Red)</SPAN>[/TD]
[/TR]
[TR]
[TD]Leaflet (Red), Sticker (Red), Flag (Red)</SPAN>[/TD]
[/TR]
[TR]
[TD]Leaflet (Red), Sticker (Red), Flag (Red)</SPAN>[/TD]
[/TR]
[TR]
[TD]Leaflet (Red), Sticker (Red)</SPAN>[/TD]
[/TR]
[TR]
[TD]Card (Blue), Flag (Red)</SPAN>[/TD]
[/TR]
[TR]
[TD]Leaflet (Red), Sticker (Red), Flag (Blue)

Thanks in advance
</SPAN>[/TD]
[/TR]
</TBODY><COLGROUP><COL></COLGROUP>[/TABLE]
 
Thanks for the welcome, Peter, and thanks for your response.
That works quite well, too.
I'm spoilt for choice now.

Thank you, all.
 
Upvote 0

Excel Facts

Can Excel fill bagel flavors?
You can teach Excel a new custom list. Type the list in cells, File, Options, Advanced, Edit Custom Lists, Import, OK

Forum statistics

Threads
1,223,244
Messages
6,170,976
Members
452,372
Latest member
Natalie18

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