Please Note: This article is written for users of the following Microsoft Excel versions: 2007, 2010, and 2013. If you are using an earlier version (Excel 2003 or earlier), this tip may not work for you. For a version of this tip written specifically for earlier versions of Excel, click here: Strange ATAN Results.
Written by Allen Wyatt (last updated October 23, 2021)
This tip applies to Excel 2007, 2010, and 2013
Jerry notes that when he uses the ATAN function in Excel to calculate an arctangent, he gets a result that's quite a bit different 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 (11437) applies to Microsoft Excel 2007, 2010, and 2013. You can find a version of this tip for the older menu interface of Excel here: Strange ATAN Results.
Solve Real Business Problems Master business modeling and analysis techniques with Excel and transform data into bottom-line results. This hands-on, scenario-focused guide shows you how to use the latest Excel tools to integrate data from multiple tables. Check out Microsoft Excel 2013 Data Analysis and Business Modeling today!
When you filter data, Excel displays only a portion of what is really in a worksheet. If you want to count the number of ...
Discover MoreVLOOKUP is an oft-used worksheet function to lookup values in a data table. If the function cannot return a value, it ...
Discover MoreThe LET function provides an easy way to define and use variables within a formula. This tip shows you how you can start ...
Discover MoreFREE SERVICE: Get tips like this every week in ExcelTips, a free productivity newsletter. Enter your address and click "Subscribe."
There are currently no comments for this tip. (Be the first to leave your comment—just use the simple form above!)
Got a version of Excel that uses the ribbon interface (Excel 2007 or later)? This site is for you! If you use an earlier version of Excel, visit our ExcelTips site focusing on the menu interface.
FREE SERVICE: Get tips like this every week in ExcelTips, a free productivity newsletter. Enter your address and click "Subscribe."
Copyright © 2024 Sharon Parq Associates, Inc.
Comments