Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Junior Member
 
Posts: 1
Question Web lookup query (have: city+state | want: zip code)

I have a spreadsheet with various building information but it only has city and state. I was able to create a .qry file to get external data from a particular location, but it just pulls all the info - I just want to pull out the first zip (it doesn't have to be exactly correct). The idea is that I will then use a zip code to MSA (metropolitan statistical area) lookup table.

I have:
City & State

I want to query for:
The a zip code in said city and state

The contents of the .qry file:
Code:
WEB
1
http://zipcodes.addresses.com/results.php?ReportType=42&qc=["City","Enter the Search Term:"]&qi=0&qk=100&qs=["State","Enter the Search Term:"]

Selection=10
Formatting=None
ConsecutiveDelimitersAsOne=True
SingleBlockTextImport=True
I played with the "Selection =" and "SingleBlockTextImport=" with no success. Available documentation for the parameters & flags for such a query is sporadic at best.

This is what I'm getting after using the above query method:

Click for full size - Uploaded with plasq's Skitch

What I really want is just the 92801 returned.

All help is greatly appreciated. Have a good day.
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to change address, city, state zip code into separate columns mastertype Excel Discussion (Misc queries) 2 September 15th 09 06:41 PM
City State Zip Texas Nuckols Excel Discussion (Misc queries) 3 August 7th 07 10:56 PM
City State Zip Texas Nuckols Excel Worksheet Functions 3 August 7th 07 10:22 PM
zip code to city, state function xcelentform Excel Worksheet Functions 1 May 18th 06 11:59 PM


All times are GMT +1. The time now is 08:49 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"