×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

#### Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
• Talk With Other Members
• Be Notified Of Responses
To Your Posts
• Keyword Search
• One-Click Access To Your
Favorite Forums
• Automated Signatures
On Your Posts
• Best Of All, It's Free!

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

#### Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

# Relative position of 2 points on a circle2

 Forum Search FAQs Links MVPs

## Relative position of 2 points on a circle

(OP)
hi
this question was addressed in thread770-356581: Add or subtract polar degrees in Excel but the resulting formula is only valid for points within 90 degrees of each other

stevenal (Electrical) 21 Jan 14 20:12
'=DEGREES(ASIN(SIN(RADIANS(A1-A2))))'
Excel

recap if point A1 is at position 358 degrees
point A2 is at position 01 degrees
above formula returns -3 (position of A1 relative to A2)

but if point A1 is at position 180 degrees
point A2 is at position 01 degree
above formula returns +1 (required return is +179)

can anyone expand on above formula to be valid over complete circle (+- 180)

thanks
ziggyS

### RE: Relative position of 2 points on a circle

(OP)
i have changed formula to
'=DEGREES(ACOS(COS(RADIANS(A1-A2))))'
which returns the correct whole number but i lose the polarity

### RE: Relative position of 2 points on a circle

2
This should work (it works for your examples):

=DEGREES(ATAN2(COS(RADIANS(A1-A2)),SIN(RADIANS(A1-A2))))

There may be a simpler way, but I doubt it can be done with just sin or just cos.

Doug Jenkins
Interactive Design Services
http://newtonexcelbach.wordpress.com/

### RE: Relative position of 2 points on a circle

(OP)
thanks IDS absolutely perfect!

#### Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

#### Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

### Reply To This Thread

#### Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members! Already a Member? Login

Close Box

# Join Eng-Tips® Today!

Join your peers on the Internet's largest technical engineering professional community.
It's easy to join and it's free.

Here's Why Members Love Eng-Tips Forums:

• Talk To Other Members
• Notification Of Responses To Questions
• Favorite Forums One Click Access
• Keyword Search Of All Posts, And More...

Register now while it's still free!

Already a member? Close this window and log in.