How to calculate the distance between two addresses in Excel
London and Bristol, the two major cities of England, have the latitude and longitude given in the image below.
While working with addresses one might find the need to calculate the distance between them. If you have the latitude and longitude coordinates available for a given pair of addresses, it can be done very easily. So let’s find out.
Step 1 – Implement the formula
– So select the cell where you want the calculation to go and type in the formula starting with the equal sign as follows,
=ACOS( SIN( B2 * PI() / 180 ) * SIN( B3 * PI() / 180 ) + COS( B2 * PI() / 180) *
COS( B3 * PI() / 180) *COS( B3 * PI() / 180 – B2 * PI() / 180 ) ) * 6371
– The above formula is presented in multiple lines for understanding and may be written without line feeds.
– Once the formula has been typed press enter on the keyboard to view the calculation.
– So the approximate distance between London and Bristol is 170.47 km.