#1   Report Post  
Junior Member
 
Posts: 1
Default Bearing calculation

I'm calculating a bearing from two x,y coordinates. Simple trig functions but the calculations are off by .2 of a degree. It is not a rounding error as I'm taking the exact same two numbers and making no rounding changes to the calcs. Can someone take a look at my excel function and tell me if it's wrong or what I need changing.


Pt1 Easting Northing Pt2 Easting Northing Range [m] Brg
357834.00 9300210.00 357833.98 9300209.46 0.54 182.38

From point 2 to 1 I get a calulated bearing by hand of 182.12. Can someone tell me if this formula for Bearing looks right based on the above.

=IF(P23<0,(IF((P23-M23)=0,IF((O23-L23)0,90,270),ATAN((O23-L23)/(P23-M23))/PI()*180+180*((P23-M23)<0)+360*(AND((O23-L23)<0,(P23-M23)0)))),"")
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
charting bearing and distance MJB Excel Discussion (Misc queries) 1 June 19th 09 09:07 AM
Multi threaded calculation (multi CPU) - impact on calculation spe Pascal[_2_] Excel Discussion (Misc queries) 1 December 3rd 08 10:46 AM
how to convert number to bearing .exp. 40.4040 to 40d 40' 40" melz Excel Worksheet Functions 2 November 22nd 08 11:40 AM
How do I use a rounded calculation result in another calculation? vnsrod2000 Excel Worksheet Functions 1 January 26th 05 10:11 PM
How do I use a rounded calculation result in another calculation? vnsrod2000 Excel Worksheet Functions 1 January 26th 05 09:36 PM


All times are GMT +1. The time now is 01:10 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"