Can anybody please tell me why I am way off? I am working on getting distance between two points on Power BI /Excel. I did my research online and I found a very common formula used by everyone. So tested it out, my distance is way off. Please see below,
The distance between Logan and Draper is 111 miles, but I am getting 3750 miles. I hard coded the formula to test it out. I know this is not 100% accurate, but I am completely off.
Orginal formula =ACOS(SIN(Lat1)*SIN(Lat2) +COS(Lat1)*COS(Lat2)*COS(Lon2-Lon1)) *3958.756
My hard coded one = COS(SIN(40.51)*SIN(41.73) +COS(40.51)*COS(41.73)*COS(-111.78-(-111.87))) *3958.756
Thank you so much