+ Reply to Thread
Results 1 to 6 of 6

Finding Google Plus Codes for a database with addresses without VBA

  1. #1
    Registered User
    Join Date
    11-07-2020
    Location
    Phoenix, AZ
    MS-Off Ver
    2010 & Office 365
    Posts
    57

    Finding Google Plus Codes for a database with addresses without VBA

    I have a simple database with customer name and address. I would like to have a formula or method to look up the Google Plus Code for the addresses listed. I have NEVER used VBA and quite frankly, it scares me to try. But if I could get some expert opinion on how to best accomplish this goal, it would be greatly appreciated. See the attached file. Thanks to all that step in to help!
    Attached Files Attached Files

  2. #2
    Forum Expert BadlySpelledBuoy's Avatar
    Join Date
    06-14-2013
    Location
    East Sussex, UK
    MS-Off Ver
    365
    Posts
    7,903

    Re: Finding Google Plus Codes for a database with addresses without VBA

    If you have all your addresses and associated GPCs in a list it would be relatively straightforward to use VLOOKUP or INDEX/MATCH to return the GPC for a selected address.
    It's not clear from your file what your expected output is. Perhaps it would be helpful if you could update it to show what your desired results are?

    BSB

  3. #3
    Forum Expert
    Join Date
    02-14-2009
    Location
    .
    MS-Off Ver
    ................
    Posts
    2,840

    Re: Finding Google Plus Codes for a database with addresses without VBA

    NM - irrelevent
    Last edited by cytop; 04-23-2022 at 03:14 AM.

  4. #4
    Registered User
    Join Date
    11-07-2020
    Location
    Phoenix, AZ
    MS-Off Ver
    2010 & Office 365
    Posts
    57

    Re: Finding Google Plus Codes for a database with addresses without VBA

    Thank you for your reply!! It is appreciated!! I do not have the GPC for all of my addresses. Finding the GPC is what I am hoping to automate. What I have been doing is: I have been going to the company's website, looking up the address, finding and copying the GPC, then returning to my Excel file and pasting it beside the address. I was hoping there was a way to have excel automatically look up the GPC by using the address given. Maybe I am asking too much from Excel but I thought I would try before I kept doing the boring and laborious job of going back and forth cutting and pasting for these 1,000 addresses I have.

  5. #5
    Forum Contributor
    Join Date
    02-25-2022
    Location
    Dallas, Texas
    MS-Off Ver
    Office 365
    Posts
    174

    Re: Finding Google Plus Codes for a database with addresses without VBA

    There is an addin called SeleniumBasic for Excel. It allows you to scrape websites to get data. For example I use it to search my library for books. You need to know a little about websites and how to identify elements. You'll need to update the webdriver for browser. It works with Chrome and Edge. Is there an external website you use?
    Last edited by mogul; 04-23-2022 at 01:33 PM.

  6. #6
    Forum Contributor
    Join Date
    02-25-2022
    Location
    Dallas, Texas
    MS-Off Ver
    Office 365
    Posts
    174

    Re: Finding Google Plus Codes for a database with addresses without VBA

    I did a little more research on this. Google provides a Web API for Plus Codes. You can easily implement a WebAPI in VBA using MSXML 6.0. Example below. You embed the address in the url. You need to encode address string like substitute + for space. You also embed the your encrypted key and email address. You need to have an account with Google Maps to get your key. I don't have Google Maps account so I wasn't able to test it.

    Please Login or Register  to view this content.

+ 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. Replies: 9
    Last Post: 01-08-2021, 07:33 PM
  2. [SOLVED] Finding out the difference between two sets of codes -repetitive codes and interchanged
    By chandramouliarun in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-11-2020, 07:05 AM
  3. [SOLVED] Finding the Added and Deleted Codes out of the two sets of Codes Entered
    By chandramouliarun in forum Excel Formulas & Functions
    Replies: 17
    Last Post: 12-08-2020, 10:10 AM
  4. Finding Postal Code of Addresses using Google Maps API
    By ReachIsGone in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 12-04-2017, 12:21 AM
  5. Replies: 3
    Last Post: 07-10-2017, 02:20 AM
  6. [SOLVED] Addresses - truncate 11 digit zip codes and leave 5 digit zip codes
    By landisf in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 07-25-2013, 11:15 PM

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