+ Reply to Thread
Results 1 to 3 of 3

How do I calculate distances between postcodes

  1. #1
    Registered User
    Join Date
    11-18-2015
    Location
    England
    MS-Off Ver
    2010
    Posts
    9

    How do I calculate distances between postcodes

    I have latitude and longitude co-ordinates for UK postcodes.

    E.g. For postcode 1 - cell c2 latitude d2 Longitude
    For postcode 2 - cell c3 latitude d3 longitude

    Does anyone know of a formula I can use to estimate the distance between two postcodes?

    I do not use VBA.

    Thanks in advance for your help v. much appreciated

  2. #2
    Forum Expert
    Join Date
    03-23-2004
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    7,064

    Re: How do I calculate distances between postcodes

    Pythagoros theorem?
    Regards
    Special-K

    Ensure you describe your problem clearly, I have little time available to solve these problems and do not appreciate numerous changes to them.

  3. #3
    Valued Forum Contributor
    Join Date
    01-03-2016
    Location
    Conwy, Wales
    MS-Off Ver
    2016
    Posts
    974

    Re: How do I calculate distances between postcodes

    The formula to give the distance in miles is

    =6371*ACOS(COS(RADIANS(90-C2))*COS(RADIANS(90-C3))+SIN(RADIANS(90-C2))*SIN(RADIANS(90-C3))*COS(RADIANS(D2-D3)))/1.609

    Point1 Latitude 53.430094 Longitude -2.961845
    Point2 Latitude 53.462887 Longitude -2.291808
    gave me Distance = 27.67Miles

    PS - I did not work this out myself. Picked it up somewhere on the internet and filed it away for moments like these!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Calculating Google Maps Distances Using Postcodes
    By smart_as in forum Excel Programming / VBA / Macros
    Replies: 17
    Last Post: 05-14-2021, 03:08 PM
  2. How to calculate distances between two cells in VBA?
    By gerotutu in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-20-2015, 04:53 AM
  3. Replies: 3
    Last Post: 09-19-2014, 05:43 AM
  4. [SOLVED] Calculate angles and distances from XYZ-points
    By Giake in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 07-27-2014, 09:23 PM
  5. Using google to calculate distances… in a macro
    By fosters_ in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-15-2014, 03:37 PM
  6. Measuring Distances between Postcodes (Mark 2)
    By Woozer74 in forum Excel General
    Replies: 0
    Last Post: 12-15-2011, 04:56 PM
  7. Replies: 3
    Last Post: 02-12-2008, 06:11 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1