Solved

need to populate zip code column with zip codes based on street address, city and state

Posted on 2014-10-28
12
771 Views
Last Modified: 2014-10-29
I have a spreadsheet of over 200,000 records.

In column G I have the street address, column i the city and col K the state (in two letter abbreviation: IL, MT, CA, etc).

What I need is a function that will populate column L (currently blank) with the correct zip code based on columns G, i and K.

Can anybody come with a function for me to do this? I need it right away.
0
Comment
Question by:mabehr
  • 6
  • 2
  • 2
  • +2
12 Comments
 
LVL 25

Expert Comment

by:ProfessorJimJam
ID: 40409585
Do you have the zip codes in any of your columns? Or you just want them to be fetched from somewhere else?
0
 

Author Comment

by:mabehr
ID: 40409599
no zip codes in spreadsheet. I need them fetched.
0
 
LVL 15

Expert Comment

by:Haris Djulic
ID: 40409604
Hi,

you can look at this site: http://www.excelforum.com/excel-general/737400-using-excel-to-fill-zip-code-data-from-geocoder.html there is some VBA developed but I didnt test it...

Or you can get this non-free add in.. http://www.cdxtech.com/CDXZipStream/Overview.aspx
0
 

Author Comment

by:mabehr
ID: 40409662
the top one doesn't seem like it's valid anymore. the bottom (cdx) looks like it works but only does 1000 in the non-registered version.

Close but no cigar yet.
0
 
LVL 27

Expert Comment

by:Glenn Ray
ID: 40409665
The VBA code listed in the Excel Forum thread appears to have some issues, namely the fact that Yahoo shut down the GeoCoder app.

CDXZipStream (or other third-party geo-based software) looks like the way to go.  They at least have a 30-day trial for you to test (1000).  Pay the money and get it done.

-Glenn
0
 

Author Comment

by:mabehr
ID: 40409794
It's a one time need that is part of another small project that my company would not pay for. My hope was that someone in experts-exchange could come up with a function that would do this without having to pay for an application I will never have to use again.
0
Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

 
LVL 15

Expert Comment

by:Haris Djulic
ID: 40409835
Hi,

not to get you disappointed here is another option. If you can get you data to Google spreadsheet you can get your data from there (see attached).. Code is using Address, city, state and getting you the zip code. Here is the code :

=Mid(importHTML(CONCATENATE("https://tools.usps.com/go/ZipLookupResultsAction!input.action?resultMode=0&companyName=&address1=" & A1 & "&address2=&city=" & B1 & "&state=" & C1 & "&urbanCode=&postalCode=&zip="),"list",15),Find( C1,importHTML(CONCATENATE("https://tools.usps.com/go/ZipLookupResultsAction!input.action?resultMode=0&companyName=&address1=" & A1 & "&address2=&city="  & B1& "&state=" & C1 & "&urbanCode=&postalCode=&zip="),"list",15))+2,11)

Open in new window



Enter some values in the A1, B1, C1 and then paste the formula in D1 you will get zip code...
Capture4.PNG
0
 

Author Comment

by:mabehr
ID: 40409854
Wow! Thanks for that Haris. I'll try it when I get into my office in the am and let you know.
0
 
LVL 27

Expert Comment

by:Glenn Ray
ID: 40410085
Isn't there a retrieval limit of 50 addresses/day with that site?  I read that in. Some other web threads on this need.
0
 
LVL 5

Accepted Solution

by:
ReneD100 earned 500 total points
ID: 40410338
I recently stumbled upon this website/list while I was looking for some Postalcode/zip code checking in a client's database. I used the 'allcountries' version, since records contained data from all over the world (about 60 countries):
http://download.geonames.org/export/dump/
I imported in Access and removed the long/lat info. It's then relatively easy to wrap some functions around it to fetch the correct zip info. If you only need the US info you could download all the separate states and join them or download the allcountries file and delete everything not US.
0
 

Author Comment

by:mabehr
ID: 40410879
Haris, I tried the google option with the inserted code and almost all of them come back with an error: Error:
"In FIND evaluation, cannot find 'GA' within 'Government Services ›'."
0
 

Author Closing Comment

by:mabehr
ID: 40411044
It will take a few more steps but this solution is a good beginning. Thank you.
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

What is a Form List Box? (skip if you know this) The forms List Box is the alternative to the ActiveX list box. If you are using excel 2007, you first make sure you have a developer tab (click the Orb)->"Excel Options"->Popular->"Show Developer tab…
Introduction While answering a recent question (http:/Q_27311462.html), I created an alternative function to the Excel Concatenate() function that you might find useful.  I tested several solutions and share the results in this article as well as t…
Viewers will learn the basics of slicers and timelines for both PivotTables and standard Excel tables in Excel 2013.
Graphs within dashboards are meant to be dynamic, representing data from a period of time that will change each time the dashboard is updated with new data. Rather than update each graph to point to a different set within a static set of data, t…

758 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now