google search from google sheets

pannells

New Member
Joined
Jun 14, 2009
Messages
41
Hi All
I have been playing with xmlimport in google sheets to extract H3 urls.
I am using search site parameter with a keyword.
Steps I am trying to put together are:
search google
using site:www.mywebsite.com
with keyword in that site - "my keyword"
return to sheet with top 5 H3 list
-------------------------------------------------------------
What I have done so far that is not working is:
see 2nd image attached for formula and workings.
I have added text strings together
google search with site: function site: - Google Search
+ website to search on freespinsgratis.com
+ keyword pokie+place
Full formula looks like this: site:freespinsgratis.com pokie place - Google Search

Then I want to only grab the top 5 urls in returned search in a list.
PROBLEM: formula does not work
when working - how do I get a results into a list format
Any advise would be great or possible another way of doing this as I am not to educated in this topic

1623226373148.png
1623228210934.png
 

Excel Facts

Can you AutoAverage in Excel?
There is a drop-down next to the AutoSum symbol. Open the drop-down to choose AVERAGE, COUNT, MAX, or MIN
Try

Cell Formulas
RangeFormula
D3:D6D3=HYPERLINK(CONCATENATE("https://www.google.com/search?q=site%3A",A3,"+",SUBSTITUTE(B3," ","+")))


Edit:

***IGNOR*** Actually at first glance I did not understand what you wanted, but now I understand but I don't know about IMPORTXML formula..
 
Last edited:
Upvote 0
Any guidance with this would be great, been hammering at this for a day or two now and what I thought would be a simple thing has turned into a rather challenging process with little tweaks done resulting in nothing positive.
Read so much and all looks simple until I actually do this myself.

So Further to my previous post, I have tried a simpler way to to do this but still getting a "could not fetch url" error
=ImportXML("freespinsgratis.com - Google Search pokie place&num=5", "//h3")

Broken down thinking.
> search google serps
> search with site name (freespinsgratis.com)
> search on that site - keyword "pokie place")
> import h3 tags - top 5 SERPS results into sheet

Ideally I want to replace typing in the site and keyword with a cell holding this text string.
Something like this =ImportXML("CELL A5" &num=5", "//h3") where by CELL 5A would hold text string of site and key word

Ideally I would like to use the google "site:" function to get results from that site specifically.
Something like this =ImportXML("site"CELL A5" &num=5", "//h3")

Even better have a way to search that will ONLY result in serps that relate to url searched and must have keyword.
As I am getting SERPS that have either pokie or place in them as well which is not what I want
 
Last edited:
Upvote 0
Try

Cell Formulas
RangeFormula
D3:D6D3=HYPERLINK(CONCATENATE("https://www.google.com/search?q=site%3A",A3,"+",SUBSTITUTE(B3," ","+")))


Edit:

***IGNOR*** Actually at first glance I did not understand what you wanted, but now I understand but I don't know about IMPORTXML formula..
Thanks
Try

Cell Formulas
RangeFormula
D3:D6D3=HYPERLINK(CONCATENATE("https://www.google.com/search?q=site%3A",A3,"+",SUBSTITUTE(B3," ","+")))


Edit:

***IGNOR*** Actually at first glance I did not understand what you wanted, but now I understand but I don't know about IMPORTXML formula..
Thanks Durfani for your response.
Not sure what you gave me and how that helps me in the bigger picture of what I am trying to acheive.
Possibly the addition thread I added will clear my intentions and end goal is.
 
Upvote 0

Forum statistics

Threads
1,223,405
Messages
6,171,925
Members
452,434
Latest member
NUC_N_FUTS2

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