Solved

Distance between two zip codes using Excel

Posted on 2012-03-12
3
4,450 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

Technology Partners: 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

Freeze panes is an option within all variants of Excel to enable parts of a sheet to remain stationary when the cursor is in another part of the sheet. This is a very useful feature which is overlooked or under used.
Excel can be a tricky bit of software to get your head around. Whilst you’ll be able to eventually get to grips with the basic understanding of how to get by, there are a few Excel tips that not everybody will even know about let alone know how to d…
This Micro Tutorial demonstrates in Microsoft Excel how to consolidate your marketing data by creating an interactive charts using form controls. This creates cool drop-downs for viewers of your chart to choose from.
This Micro Tutorial will demonstrate how to use a scrolling table in Microsoft Excel using the INDEX function.

740 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