Solved

Distance between two zip codes using Excel

Posted on 2012-03-12
3
4,493 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Industry Leaders: 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

How to quickly and accurately populate Word documents with Excel data, charts and images (including Automated Bookmark generation) David Miller (dlmille) Synopsis In this article you’ll learn how to use ExcelToWord! to copy data,charts, shapes …
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 in Microsoft Excel how to add style and sexy appeal to horizontal bar charts.
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

728 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