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

Convert text numbers to real numbers
Select a column containing text numbers. Press Alt+D E F to quickly convert text to numbers. Faster than "Convert to Number"
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,223,894
Messages
6,175,254
Members
452,623
Latest member
Techenthusiast

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