Solved

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

Posted on 2014-10-28
12
1,829 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 26

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
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

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
 
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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

: Microsoft Office Collaborate for free and online versions of Microsoft  Word, Excel, Powerpoint, OneNote, Onedrive , Email, Calendar etc. In short we can say that Microsoft office is a suite of servers, applications and services developed by  Micr…
You need to know the location of the Office templates folder, so that when you create new templates, they are saved to that location, and thus are available for selection when creating new documents.  The steps to find the Templates folder path are …
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.
This Micro Tutorial demonstrates in Microsoft Excel how to consolidate your marketing data by creating an interactive charts using form controls. This creates cool drop-downs for viewers of your chart to choose from.

749 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