×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Are you an
Engineering professional?
Join Eng-Tips Forums!
• Talk With Other Members
• Be Notified Of Responses
• Keyword Search
Favorite Forums
• Automated Signatures
• 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.

# excel problem

## excel problem

(OP)
I am trying to write an excel spread sheet for distance and bearing between two co-ordinates, the distance is easy, Pythagoras! but when it comes to calculating the whole circle bearing I’m struggling, theta = tan^1(dE/dN) depending on which quadrant the line falls depends whether you add nothing,180 degrees or 360 degrees but how would I write this in a spread sheet?

I have written spread sheets for levels, profile boards, and volume calculations, if that’s any use to anyone.

### RE: excel problem

Use Excel's ATAN2 function.  It is intended to get around the exact problem you describe.

It takes two arguments, first the change in X, second the change in Y.  But be aware that most people who do not live in Redmond instinctively want to enter these two arguments in the other order.

### RE: excel problem

(OP)
thanks i will give that a go, bit confused by the,

"But be aware that most people who do not live in Redmond instinctively want to enter these two arguments in the other order." statement??

cheers olly

### RE: excel problem

Most mathematically-inclined programming languages that offer the equivalent of ATAN2 require the arguments to be entered in the order (change in Y, change in X).

Microsoft (headquartered - I believe - in Redmond in the US state of Washington) chooses to be different.

### RE: excel problem

You must remember:  EXCEL won´t report angles in degree, just radians.  Th result of the function used to obtain the angle must be converted to degrees with the function DEGREES(argument).

#### 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.

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!