+ Reply to Thread
Results 1 to 9 of 9

how to search google using cell values in microsoft excel 2010

  1. #1
    Registered User
    Join Date
    09-16-2013
    Location
    Norwich UK
    MS-Off Ver
    Excel 2010
    Posts
    3

    how to search google using cell values in microsoft excel 2010

    This must be so basic, so sorry to come up with such a simple query.
    I know it's possible, I found 2 examples of syntax, but neither works for me, argh.

    I have 3 columns of search terms, separated by or fields, like
    bob or mary
    tim or mike
    claire or susan

    In a 4th column, I want to combine those terms into a single search hyperlink to Google, separated by "and" fields. So first search would be for
    "(bob or mary) AND (tim or mike) AND (claire or Susan)".
    Plan is to click on the link and the search will come up in a separate browser window. May have to click search again to get actual search to run at this point, but that is a minor inconvenience. And anyway, I'm advised that Google will ban my IP if the search looks too automated; have to look thru the results manually, anyway.

    I can get a search to work with plain text, so this syntax works:

    =HYPERLINK("http://www.google.com/search?hl=en&q=boo ","Google Search")

    But trying to put cell string values instead of "boo" is defeating me. I just don't understand right syntax and copying other people's syntax isn't working, either.
    I've tried !s and #s and plenty of &s.

    What is right syntax? Please help!!

  2. #2
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: how to search google using cell values in microsoft excel 2010

    Try like this:

    =HYPERLINK("http://www.google.com/search?hl=en&q=boo)
    Last edited by AlKey; 09-16-2013 at 06:09 AM.
    If you like my answer please click on * Add Reputation
    Don't forget to mark threads as "Solved" if your problem has been resolved

    "Nothing is so firmly believed as what we least know."
    --Michel de Montaigne

  3. #3
    Registered User
    Join Date
    09-16-2013
    Location
    Norwich UK
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: how to search google using cell values in microsoft excel 2010

    mmm, maybe I'm not being clear. I mean, I don't need to search for boo, lol.

    My fields are in columns A, B & C, row1.
    I want column D to be a hypertext link that looks something like

    =HYPERLINK("http://www.google.com/search?hl=en&q="&a1&" AND "&b1&" AND "&c1&,"Google Search")

    which sends the search to google = "(bob or mary) AND (tim or mike) AND (claire or Susan)"

    but that isn't the right syntax, either, to search for what is in cells a1-c1.

    Separate problem, Do I need to put one string value per cell, too? So Cell A1 can't contain
    "bob or mary" but it has to just say bob, and cell a2 would say mary?

  4. #4
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: how to search google using cell values in microsoft excel 2010

    Lets say your hyperlink formula in A1 and the word or phrase you want to search is in B1

    =HYPERLINK("http://www.google.com/search?hl=en&q=")&B1

  5. #5
    Registered User
    Join Date
    09-16-2013
    Location
    Norwich UK
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: how to search google using cell values in microsoft excel 2010

    Ooh, brilliant, thanks so much, good start. I had to tweak it slightly and got something that works now with a single cell:


    =HYPERLINK("http://www.google.com/search?hl=en&q="&B1,"This search works perfectly but only with one cell for input")

    So how do I get the same link to work but referring to Cells B1-D1? What is the syntax, anyone know?

  6. #6
    Valued Forum Contributor
    Join Date
    05-13-2010
    Location
    Belo Horizonte, Brazil
    MS-Off Ver
    Excel 2003; 2007
    Posts
    441

    Re: how to search google using cell values in microsoft excel 2010

    Julli, Good Morning.

    About the right syntax for GOOGLING, you can use your own syntax above with a little modification:

    Before:
    =HYPERLINK("http://www.google.com/search?hl=en&q="&A1&" AND "&B1&" AND "&C1&,"Google Search")
    NOW:
    =HYPERLINK("http://www.google.com/search?hl=en&q="&A1&" AND "&B1&" AND "&C1,"Google Search")


    You can use too a syntax where a space between the words is substituted by a plus signal +
    eg. =HYPERLINK("http://www.google.com/search?hl=en&q="&"Blue+or+Golden","Google Search")

    All of theses cases works correctly.

    ATTENTION: Google search the web for words.

    Therefore I believe that your query with this logical criteria: AND, OR will not result in a response like a search on a spreadsheet or database.

    I believe that this kind of search is not possible. I don´t know.

    I hope it helps you.


    Regards from Marcílio Lobão,(Brazil)
    ...If my answer helped you, Please, click on. * Add Reputation (at left)

    Best regards.
    Marc?lio Lob?o

  7. #7
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: how to search google using cell values in microsoft excel 2010

    You can do this:

    =HYPERLINK("http://www.google.com/search?hl=en&q=")&B1&"+"&D1

  8. #8
    Registered User
    Join Date
    09-16-2013
    Location
    Norwich UK
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: how to search google using cell values in microsoft excel 2010

    Thank you so much, I think I have working syntax now. But I have hit a new limit which explains why I was struggling so much before. The actual search alternatives in each cell are a much longer list of words than "mary or tim" -- and basically they are too long. There is a limit to the number of combined characters I can put in.
    I may well have to separate out my search terms to get reliable links (& to get the correct AND/OR combinations anyway).
    Separating out terms will take long time.
    Of course the boss wanted this all done yesterday, argh.
    Thanks so much for the help!!

  9. #9
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: how to search google using cell values in microsoft excel 2010

    You're Welcome. Don't forget to thank those who helped by clicking on Add Reputation * and please mark thread as "Solved" if your issue has been resolved. (Selecting Thread Tools-> Mark thread as Solved).

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Converting spreadsheets from Microsoft Excel to Google Docs
    By hammerb in forum For Other Platforms(Mac, Google Docs, Mobile OS etc)
    Replies: 4
    Last Post: 10-08-2013, 02:32 PM
  2. All the excel files downloaded from google drive are not opening in Microsoft Excel 2010
    By kapilpatel in forum For Other Platforms(Mac, Google Docs, Mobile OS etc)
    Replies: 0
    Last Post: 02-21-2013, 12:42 PM
  3. Microsoft Excel 2010 Doesn't Support Microsoft Excel 2007
    By Orange.CL in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 07-01-2010, 03:21 AM
  4. Replies: 0
    Last Post: 11-05-2009, 04:47 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1