Search the internet from within a cell

GB613

New Member
Joined
Dec 13, 2022
Messages
2
Office Version
  1. 365
Platform
  1. Windows
In column A, I've got a list of companies (non-public so no stock ticker symbols) and what I'd like to do is create a formula that launches a google/bing search that puts the name of the CEO in Column B.

A B
Acme =FormulaX? (A: search "CEO of" A)
 

Excel Facts

Excel Joke
Why can't spreadsheets drive cars? They crash too often!
You could do this with VBA - but this is webscraping, and besides it being against their Terms of Service (which is totally the pot calling the kettle black in the case of Google, which is the webscrapers of all webscrapers) it is increasingly difficult to do. What would be easier, and in line with everyone's Terms of Service, is if you were to find an API service from which you could source the information.

Depending on the jurisdiction/industry, that information may already be freely available. In the UK, for example, Companies House provides an API with access to all manner of filed documentation, corporate registry data. In the US, the SEC provides a similar service (EDGAR - SEC.gov | EDGAR Application Programming Interfaces).

There are hundreds of APIs that fulfill this kind of function, and some of them even have free tiers. For example, one option might be to use ClearBit (Company Name to Domain API) - it's API returns the domain name of any listed company. Once you have that information, it's probably better off webscraping the company's site for the CEO information that it is running your luck with Google/Bing. That said, they both offer search API services, but the functionality available for each varies.

Hope that helps.
 
Upvote 0
Solution
You could do this with VBA - but this is webscraping, and besides it being against their Terms of Service (which is totally the pot calling the kettle black in the case of Google, which is the webscrapers of all webscrapers) it is increasingly difficult to do. What would be easier, and in line with everyone's Terms of Service, is if you were to find an API service from which you could source the information.

Depending on the jurisdiction/industry, that information may already be freely available. In the UK, for example, Companies House provides an API with access to all manner of filed documentation, corporate registry data. In the US, the SEC provides a similar service (EDGAR - SEC.gov | EDGAR Application Programming Interfaces).

There are hundreds of APIs that fulfill this kind of function, and some of them even have free tiers. For example, one option might be to use ClearBit (Company Name to Domain API) - it's API returns the domain name of any listed company. Once you have that information, it's probably better off webscraping the company's site for the CEO information that it is running your luck with Google/Bing. That said, they both offer search API services, but the functionality available for each varies.

Hope that helps.
Dan, you nailed this answer. I can't thank you enough. Truly appreciate your having taken the time to educate me.
 
Upvote 0

Forum statistics

Threads
1,224,814
Messages
6,181,124
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