Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations cowski 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
Joined
Aug 7, 2009
Messages
11
Location
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?
 
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