Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Is there a way to calculate distance between 2 zipcodes?

I need to use some service to dynamically calcualte distance between two
zipcodes. Do you know about anything like this?
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,986
Default Is there a way to calculate distance between 2 zipcodes?

You could check the USPS website for a zip code index to give you the
locations and then maybe Rand-McNally to get the mileage estimates between
the cities that the zip codes apply to. As far as a single point of
reference. Nope, I don't know of one. But somebody probably has one
somewhere.

"Serissa" wrote:

I need to use some service to dynamically calcualte distance between two
zipcodes. Do you know about anything like this?

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4,391
Default Is there a way to calculate distance between 2 zipcodes?

There are lists of zip code, town, long/lat data. As long as you can get
from zip code to long/lat, you can use trig to calculate the straight line
distance, assuming you can approximate to a flat surface, although slightly
more work will allow for the curvature of the Earth.
This list looks pretty comprehensive:
http://www.cfdynamics.com/cfdynamics/zipbase/index.cfm
and sample code
http://www.zipcodeworld.com/samples/distance.vbs.txt

Or look into querying a suitable website. e.g.
http://www.zipinfo.com/cgi-local/zip...ip=77380&Go=Go

Also, accuracy may not be that high, as zipcodes are areas, but you would
have to assume a single point for calculation. There a discussion of some
salient points he
http://www.webmasterworld.com/forum10/6530.htm

NickHK

"Serissa" wrote in message
...
I need to use some service to dynamically calcualte distance between two
zipcodes. Do you know about anything like this?



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 13
Default Is there a way to calculate distance between 2 zipcodes?

You can definately do this if you have the lat/long of the zip centroid.

There are several website that will give you that.

Then you just set up a Macro in Excel to plot the distance between the 2
points.

If you google Excel Distance Macro, you should find it. If not let me know
and I will email you the script.

Jason

"Serissa" wrote:

I need to use some service to dynamically calcualte distance between two
zipcodes. Do you know about anything like this?

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
IS THERE A FORMULA TO CALCULATE THE DISTANCE BETWEEN DATES Alohalady Excel Worksheet Functions 2 June 6th 10 12:50 PM
Can excel calculate Mahalanobis distance? kt_b1 Excel Discussion (Misc queries) 3 March 24th 07 11:38 AM
How do I calculate the distance between 2 postcodes? Rhys Excel Programming 3 July 7th 06 08:23 PM
calculate time/distance KJO Excel Programming 3 April 20th 05 09:53 PM
CALCULATE DISTANCE BETWEEN TWO GPS POSITIONS Jon re Excel Excel Worksheet Functions 2 March 9th 05 02:14 AM


All times are GMT +1. The time now is 04:58 PM.

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

About Us

"It's about Microsoft Excel"