S
Steve
Here is a puzzler, at least for me.
I am calculating distances between points identified by latitude and
longitudes.
Occasionally, if I calculate the distance between the same point, the
formula returns "#NUM!", when it SHOULD return "0".
Here is the formula - anyone have any ideas?
=(DEGEREES(ACOS(SIN(RADIANS(latitude1))*
SIN(RADIANS(latitude2)) +
COS(RADIANS(latitude1)) *
COS(RADIANS(latitude2)) *
COS(RADIANS(longitude 1 - longitude2)))))*69
If latitude 1 and 2 =33.14 and longitude 1 and 2 = 117.16, the formula
returns "#NUM".
If latitude 117.22 and longitude 33.36 are used, the result is zero.
Formulas that use the results will ignore the "#NUM", but I am curious
as to the reason.
Many thanks!
steve
I am calculating distances between points identified by latitude and
longitudes.
Occasionally, if I calculate the distance between the same point, the
formula returns "#NUM!", when it SHOULD return "0".
Here is the formula - anyone have any ideas?
=(DEGEREES(ACOS(SIN(RADIANS(latitude1))*
SIN(RADIANS(latitude2)) +
COS(RADIANS(latitude1)) *
COS(RADIANS(latitude2)) *
COS(RADIANS(longitude 1 - longitude2)))))*69
If latitude 1 and 2 =33.14 and longitude 1 and 2 = 117.16, the formula
returns "#NUM".
If latitude 117.22 and longitude 33.36 are used, the result is zero.
Formulas that use the results will ignore the "#NUM", but I am curious
as to the reason.
Many thanks!
steve