Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations waross on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Converting rectangular coodinates to WCBs in excel spreadsheet

Status
Not open for further replies.

landranger

Civil/Environmental
Aug 7, 2009
11
US
i have written a spread sheet to convert rectangular coodinates to whole circle bearings, using ATAN2, but i always get a minus or a positive bearing from 0(ie north).
i need to somehow convert that to a true whole circle bearing.

i am not very up on excel, can some one help?
 
Replies continue below

Recommended for you

If you try this formula in cell G6 referencing D6 and E6 respectively it can be copied down to calculate the other rows

=IF((ATAN2(E6,D6)/PI()*180)<0,360+(ATAN2(E6,D6)/PI()*180),(ATAN2(E6,D6)/PI()*180))

I've used this and it works!

all the best
 
Thanks cherrypicker it seems to work fine

regards bob
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top