Solved

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

Posted on 2014-10-28
12
1,523 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
Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

 

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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Convert between Excel file formats (.XLS, .XLSX, .XLSM) with/without macro option David Miller (dlmille) Intro Over this past Fall, I've had the opportunity to see several similar requests and have developed a couple related solutions associate…
This code takes an Excel list of URL’s and adds a header titled “URL List”. It then searches through all URL’s in column “A”, looking for duplicates. When a duplicate is found, it is moved to the top of the list. The duplicate URL’s are then highlig…
This Micro Tutorial will demonstrate on a Mac how to change the sort order for chart legend values and decrpyt the intimidating chart menu.
This Micro Tutorial will demonstrate in Microsoft Excel how to add style and sexy appeal to horizontal bar charts.

808 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