Pull keywords (countries) out of a column of headlines

Rek88

New Member
Joined
Jun 4, 2019
Messages
2
I have a large dataset which is a long list of newspaper headlines along with other irrelevant data. What I want to do is when a country is mentioned in a headline, be able to pick it out and dump it in the next cell along

So for example:
Column A contains a list of all the countries in Europe.
Column B contains all of the newspaper headlines.
Column C I want to show the country only, and if no country is found to be left blank.

Then I will count up the number of occurrences of each country.

Can anyone help, I’m guessing this is not possible with formulas and will require VBA?
 

Excel Facts

Is there a shortcut key for strikethrough?
Ctrl+S is used for Save. Ctrl+5 is used for Strikethrough. Why Ctrl+5? When you use hashmarks to count |||| is 4, strike through to mean 5.
Hi,

No need for VBA:


Book1
ABC
1Francesome text italy other textItaly
2Italytext, other text, france, more textFrance
3Britainjust a lot of text without any country
4britain and a bunch of textBritain
Sheet670
Cell Formulas
RangeFormula
C1=IFERROR(LOOKUP(2,1/SEARCH(A$1:A$3,B1),A$1:A$3),"")


Formula copied down.
 
Upvote 0

Forum statistics

Threads
1,224,818
Messages
6,181,152
Members
453,021
Latest member
Justyna P

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