Samir_
New Member
- Joined
- Jul 12, 2023
- Messages
- 3
- Office Version
- 365
- 2021
- 2019
- 2016
- 2013
- 2011
- 2010
- Platform
- Windows
Hi
I need a formula in excel 365 to find the distance in km between two coordinates (longitude ,latitude)
I had tried these twos formulas
=6371 * ACOS(COS(RADIANS(90-B2)) * COS(RADIANS(90-B3)) + SIN(RADIANS(90-B2)) * SIN(RADIANS(90-B3)) * COS(RADIANS(A2-A3)))
=2*ASIN(SQRT((SIN((B3-B2)/2))^2+COS(B2)*COS(B3)*(SIN((A3-A2)/2))^2))*6371
But they are not giving the same result and they did not match the result in google maps
TIA
-Samir
I need a formula in excel 365 to find the distance in km between two coordinates (longitude ,latitude)
I had tried these twos formulas
=6371 * ACOS(COS(RADIANS(90-B2)) * COS(RADIANS(90-B3)) + SIN(RADIANS(90-B2)) * SIN(RADIANS(90-B3)) * COS(RADIANS(A2-A3)))
=2*ASIN(SQRT((SIN((B3-B2)/2))^2+COS(B2)*COS(B3)*(SIN((A3-A2)/2))^2))*6371
But they are not giving the same result and they did not match the result in google maps
TIA
-Samir