Closed Thread
Results 1 to 16 of 16

Using Excel to Fill Zip Code Data from Geocoder

  1. #1
    Forum Contributor
    Join Date
    07-17-2009
    Location
    Raleigh, NC
    MS-Off Ver
    Excel 2013/2016
    Posts
    107

    Using Excel to Fill Zip Code Data from Geocoder

    Hello again,

    I've got roughly 12,000 address without zip codes and I need to lookup all of these codes manually to get the job done. I don't want to waste Thousands of hours to do it either.

    I have Address, City, and State. I just need Zip.

    Doing this manually from http://zip4.usps.com/zip4/welcome.jsp takes hours.

    I found this write up, but it doesn't work from Excel, because it's for Google Docs.

    Hard to do in Excel. Would need to call a Web Service using SOAP toolkit, or use Visual Studio. One must wonder what MS is thinking...

    Much easier to do in Google Docs Spreadsheet, then export to Excel:

    can use GeoCoder.ca's XML web service to look up the zip code by address. In Google docs, you would use this function:

    =importXML("http://geocoder.ca/?geoit=xml&showpostal=1&locate=" & A2,"//postal")

    where A2 is the street address

    you can also get the latitude and longitude this way:

    =importXML("http://geocoder.ca/?geoit=xml&showpostal=1&locate=" & A2,"//geodata")

    Please note that GeoCoder has a throttle on requests per day for their free service.

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Using Excel to Fill Zip Code Data from Geocoder

    See attached. Note that it requires the following references:

    Microsoft VBScript Regular Expressions
    Microsoft WinHTTP Services
    Attached Files Attached Files
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Forum Contributor
    Join Date
    07-17-2009
    Location
    Raleigh, NC
    MS-Off Ver
    Excel 2013/2016
    Posts
    107

    Re: Using Excel to Fill Zip Code Data from Geocoder

    Quote Originally Posted by shg View Post
    See attached. Note that it requires the following references:

    Microsoft VBScript Regular Expressions
    Microsoft WinHTTP Services
    OMFG! That's awesome! Thanks. That's definitely a keeper file :D

  4. #4
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Using Excel to Fill Zip Code Data from Geocoder

    Please do me a favor and get your own key from Yahoo instead of using mine -- it's free

  5. #5
    Registered User
    Join Date
    11-01-2010
    Location
    Geneva, Switzerland
    MS-Off Ver
    Excel 2003, 2007
    Posts
    1

    Re: Using Excel to Fill Zip Code Data from Geocoder

    I’ve developed an Excel addin that does forward/reverse gecoding, with GoogleMaps in a task-pane and GCD calculations.
    Freeware: http://www.calvert.ch/geodesix/

  6. #6
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Using Excel to Fill Zip Code Data from Geocoder

    To our members: Be reluctant to run any exe from parties you don't know directly or by reputation.

  7. #7
    Registered User
    Join Date
    12-12-2012
    Location
    Miami
    MS-Off Ver
    Excel 2010
    Posts
    2

    Re: Using Excel to Fill Zip Code Data from Geocoder

    what do i have to do to enable this sheet? Every time i put in an address I get this: "backend fetch error 404". Please help.

  8. #8
    Registered User
    Join Date
    12-12-2012
    Location
    Miami
    MS-Off Ver
    Excel 2010
    Posts
    2

    Re: Using Excel to Fill Zip Code Data from Geocoder

    Re: Using Excel to Fill Zip Code Data from Geocoder

    See attached. Note that it requires the following references:

    Microsoft VBScript Regular Expressions
    Microsoft WinHTTP Services

  9. #9
    Registered User
    Join Date
    07-26-2010
    Location
    Pasadena, US
    MS-Off Ver
    Excel 2007
    Posts
    21

    Question Re: Using Excel to Fill Zip Code Data from Geocoder

    Quote Originally Posted by Jdahari21 View Post
    Re: Using Excel to Fill Zip Code Data from Geocoder

    See attached. Note that it requires the following references:

    Microsoft VBScript Regular Expressions
    Microsoft WinHTTP Services
    Hi!

    How do I provide those two references? Could someone please provide some guidance. This wonderful tool could save me a lifetime. Thank you!!
    _________
    K.Thakur
    Sr. Fin. Analyst

  10. #10
    Registered User
    Join Date
    07-26-2010
    Location
    Pasadena, US
    MS-Off Ver
    Excel 2007
    Posts
    21

    Re: Using Excel to Fill Zip Code Data from Geocoder

    Quote Originally Posted by kthakur View Post
    Hi!

    How do I provide those two references? Could someone please provide some guidance. This wonderful tool could save me a lifetime. Thank you!!
    bump! anybody??

  11. #11
    Registered User
    Join Date
    05-05-2014
    Location
    New Jersey, USA
    MS-Off Ver
    Excel 2007, Excel 2010
    Posts
    1

    Re: Using Excel to Fill Zip Code Data from Geocoder

    kthakur ... I believe the problem to be http://local.yahooapis.com/MapsServi...deResponse.xsd

    After obtaining my own ID and editing the VBA code ... I saw the above line of code and recalled that Yahoo shut it down.

    When I click the GeoCode button I get the following error:

    Gecoder - runtime error!

    Error - 2147012889 : The server name or address could not be resolved

    Hope this helps ... have you found another solution yet?

    I'll post back here if I figure out a fix.

    Joe

  12. #12
    Registered User
    Join Date
    02-20-2015
    Location
    Miami
    MS-Off Ver
    2010
    Posts
    1

    Re: Using Excel to Fill Zip Code Data from Geocoder

    How do I reference the following?

    Microsoft VBScript Regular Expressions
    Microsoft WinHTTP Services

  13. #13
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,926

    Re: Using Excel to Fill Zip Code Data from Geocoder

    khps Unfortunately your post does not comply with Rule 2 of our Forum RULES. Do not post a question in the thread of another member -- start your own thread.

    If you feel an existing thread is particularly relevant to your need, provide a link to the other thread in your new thread.

    Old threads are often only monitored by the original participants. New threads not only open you up to all possible participants again, they typically get faster response, too.
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  14. #14
    Registered User
    Join Date
    06-16-2015
    Location
    Singapore
    MS-Off Ver
    2010
    Posts
    2

    Re: Using Excel to Fill Zip Code Data from Geocoder

    Quote Originally Posted by shg View Post
    See attached. Note that it requires the following references:

    Microsoft VBScript Regular Expressions
    Microsoft WinHTTP Services
    sorry to bump this up. when i downloaded and open up the file,all i cld see was excelforum main page.
    And i'm nuts on this coding except copy & paste and edit to make it work. hope someone could help me

  15. #15
    Registered User
    Join Date
    03-28-2019
    Location
    Dallas
    MS-Off Ver
    office 16
    Posts
    1

    Re: Using Excel to Fill Zip Code Data from Geocoder

    Hi I see this error message. Can one of you please help me out of it.

    Geocoder-runtime error!
    Error-2147012889: The server name or address could not be resolved

  16. #16
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,926

    Re: Using Excel to Fill Zip Code Data from Geocoder

    wow, perhaps you guys dont bother to read all the posts in a thread????

    READ MY POST 13 ABOVE!!

Closed Thread

Thread Information

Users Browsing this Thread

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

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