Please Note: This article is written for users of the following Microsoft Excel versions: 97, 2000, 2002, and 2003. If you are using a later version (Excel 2007 or later), this tip may not work for you. For a version of this tip written specifically for later versions of Excel, click here: Strange ATAN Results.

Strange ATAN Results

Written by Allen Wyatt (last updated May 30, 2022)
This tip applies to Excel 97, 2000, 2002, and 2003


Jerry notes that when he uses the ATAN function in Excel to calculate an arctangent, he gets a result. However, that result seems to differ quite a bit from the result provided when he uses a scientific calculator to derive the arctangent. This makes him wonder if there is something strange in how the ATAN function works.

There are two possibilities here. The most likely possibility is that your calculator defaults to using degrees in trigonometric functions such as calculating an arctangent. Excel uses radians exclusively. For example, let's say you wanted to calculate the arctangent for 0.5. If you plug this into your calculator, and your calculator is working in degrees, you'll get a rounded result of 26.565. However, using the ATAN function in Excel produces a rounded result of 0.464.

The result that Excel provides is in radians, and when you convert that result to degrees, you end up with 26.565—the same as your calculator's result. Here's how you can easily do the conversion:

=DEGREES(ATAN(0.5))

If the angle for which you want to find the arctangent is expressed in degrees instead of radians, then you'll need to do the conversion on the input:

=ATAN(RADIANS(30))

Again, remember that the result of the ATAN function is always in radians, so you may also want to do a conversion on the output, as well.

The solution is to make sure that your calculator is working in radians mode, which should give you the same results as Excel. Either that, or you need to convert Excel's results (and, possibly, input) to degrees, as shown above.

The other possibility is much less likely, but it is worth mentioning: There are some values for which the ATAN function will break down, but for which your calculator may already compensate. The best explanation of the scenarios under which this could happen is provided in this Wikipedia article:

http://en.wikipedia.org/wiki/Atan2

ExcelTips is your source for cost-effective Microsoft Excel training. This tip (11436) applies to Microsoft Excel 97, 2000, 2002, and 2003. You can find a version of this tip for the ribbon interface of Excel (Excel 2007 and later) here: Strange ATAN Results.

Author Bio

Allen Wyatt

With more than 50 non-fiction books and numerous magazine articles to his credit, Allen Wyatt is an internationally recognized author. He is president of Sharon Parq Associates, a computer and publishing services company. ...

MORE FROM ALLEN

Enforcing a Do-Not-Use Word List

Got a list of words you don't want to appear in your documents? There are a number of ways that you can make sure they ...

Discover More

Deleting Index Entries

When you construct an index you need to insert all sorts of index fields throughout your document. If you want to later ...

Discover More

Determining the Number of Fonts Available

When creating a macro, you may need to figure out how many fonts are available to Word. You can do this using the ...

Discover More

Save Time and Supercharge Excel! Automate virtually any routine task and save yourself hours, days, maybe even weeks. Then, learn how to make Excel do things you thought were simply impossible! Mastering advanced Excel macros has never been easier. Check out Excel 2010 VBA and Macros today!

More ExcelTips (menu)

Using the MROUND Worksheet Function

If you want to round a value to some multiple of a whole number, you'll want to become familiar with the MROUND function. ...

Discover More

Summing Only Positive Values

If you have a series of values and you want to get a total of just the values that meet specific criteria, then you need ...

Discover More

Rounding to the Nearest $50

When preparing financial reports, it may make your data easier to understand if you round it to the nearest multiple, ...

Discover More
Subscribe

FREE SERVICE: Get tips like this every week in ExcelTips, a free productivity newsletter. Enter your address and click "Subscribe."

View most recent newsletter.

Comments

If you would like to add an image to your comment (not an avatar, but an image to help in making the point of your comment), include the characters [{fig}] (all 7 characters, in the sequence shown) in your comment text. You’ll be prompted to upload your image when you submit the comment. Maximum image size is 6Mpixels. Images larger than 600px wide or 1000px tall will be reduced. Up to three images may be included in a comment. All images are subject to review. Commenting privileges may be curtailed if inappropriate images are posted.

What is 8 - 5?

There are currently no comments for this tip. (Be the first to leave your comment—just use the simple form above!)


This Site

Got a version of Excel that uses the menu interface (Excel 97, Excel 2000, Excel 2002, or Excel 2003)? This site is for you! If you use a later version of Excel, visit our ExcelTips site focusing on the ribbon interface.

Newest Tips
Subscribe

FREE SERVICE: Get tips like this every week in ExcelTips, a free productivity newsletter. Enter your address and click "Subscribe."

(Your e-mail address is not shared with anyone, ever.)

View the most recent newsletter.