Solved

Distance between two zip codes using Excel

Posted on 2012-03-12
3
4,388 Views
Last Modified: 2012-03-12
Does anyone know how, via VBA or an advanced formula/function in Excel, to calculate the distance between two zip codes, if given the latitude and longitude coordinates like those on the attached?
ZIP-CODES.xlsx
0
Comment
Question by:BBlu
3 Comments
 
LVL 12

Accepted Solution

by:
Amick earned 450 total points
ID: 37711830
In miles:

=ACOS(COS(RADIANS(90-Lat1)) *COS(RADIANS(90-Lat2)) +SIN(RADIANS(90-Lat1)) *SIN(RADIANS(90-Lat2)) *COS(RADIANS(Long1-Long2))) * 3958.756


Source: http://bluemm.blogspot.com/2007/01/excel-formula-to-calculate-distance.html
0
 
LVL 7

Assisted Solution

by:leptonka
leptonka earned 50 total points
ID: 37712307
In this Linkedin discussion there were some other solutions about calculation distance between zip codes:
http://www.linkedin.com/groups/Distance-between-Zip-Codes-3843467.S.97120237?trk=group_search_item_list-0-b-ttl&goback=.gna_3843467
0
 

Author Closing Comment

by:BBlu
ID: 37712783
Thank you both very much. Awesome solutions!
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering 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

INDEX and MATCH can be used to great effect to replace HLOOKUP and VLOOKUP as it does not have the limitation of needing the data to be sorted so that the reference value is in the first column or row. It also has the ability to perform a bi-directi…
This tutorial explains how to create a series of drop-down lists that are dependent upon prior selections to guide (“force”) the user to make the correct selection and reduce data errors within Microsoft Excel. Excel 2010 was used for this tutorial;…
The viewer will learn how to create two correlated normally distributed random variables in Excel, use a normal distribution to simulate the return on different levels of investment in each of the two funds over a period of ten years, and, create a …
This Micro Tutorial will demonstrate on a Mac how to change the sort order for chart legend values and decrpyt the intimidating chart menu.

821 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