Solved

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

Posted on 2014-10-28
12
962 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
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Drop Down List with Unique/Distinct Values (Part II - ComboBox or ListBox and Data Validation List Bonus!) David Miller (dlmille) Intro This article focuses on delivering unique, sorted lists to list objects (e.g., ComboBox, ListBox) and Dat…
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…
This Micro Tutorial will demonstrate how to create pivot charts out of a data set. I also added a drop-down menu which allows to choose from different categories in the data set and the chart will automatically update.
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

910 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