distance between 2 coordinates

6diegodiego9

Board Regular
Joined
Jan 9, 2018
Messages
80
Office Version
  1. 2016
Platform
  1. Windows
Consider this two point on the map:

[TABLE="width: 210"]
<tbody>[TR]
[TD="class: xl65, width: 116"]latitude[/TD]
[TD="class: xl65, width: 94"]longitude[/TD]
[/TR]
[TR]
[TD="class: xl65, width: 116"]45.61782[/TD]
[TD="class: xl65, width: 94"]9.41737[/TD]
[/TR]
[TR]
[TD="class: xl65, width: 116"]45.48568[/TD]
[TD="class: xl65, width: 94"]9.20181[/TD]
[/TR]
</tbody>[/TABLE]

The distance between each other is about 22km.
What's the formula to calculate that?

I tried different formulas found online but every one returned absurd values...
 
Last edited:
By the way, try to change your LAT and LON data as;

45,61782 and 9,41737

I mean; use comma (",") instead of dot (".") for the decimal point indicator..... which depends on your Excel settings.

Substituting the comma (",") with dot (".") solved the problem on my English-language Excel with Italian regional settings!
Thanks so much Haluk!!!

I also succesfully used =6371*((2*ASIN(SQRT((SIN((RADIANS(A2)-RADIANS(A3))/2)^2)+COS(RADIANS(A2))*COS(RADIANS(A3))*(SIN((RADIANS(B2)-RADIANS(B3))/2)^2)))))

Great! Thanksssssssss again!!!
 
Upvote 0

Excel Facts

Can you AutoAverage in Excel?
There is a drop-down next to the AutoSum symbol. Open the drop-down to choose AVERAGE, COUNT, MAX, or MIN

Forum statistics

Threads
1,223,670
Messages
6,173,716
Members
452,528
Latest member
ThomasE

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top