## Excel ATAN2 Function

The ATAN2 function calculates the arctangent (inverse tangent) of the specified x- and y-coordinates, and returns an angle, in radians, in the range from -π/2 to π/2.

#### Syntax

=ATAN2(x_num, y_num)

#### Arguments

• x_num (required): The x-coordinate of the point for which to calculate the arctangent.
• y_num (required): The y-coordinate of the point for which to calculate the arctangent.

#### Return Value

The ATAN2 function returns a numeric value.

#### Function Notes

• The result is an angle expressed in radians. To convert the angle from radians to degrees, use the DEGREES function, or multiply the result by 180/PI().
• A positive result represents a counterclockwise angle from the x-axis; and a negative result represents a clockwise angle.
• ATAN2 returns the #DIV/0! error if both x_num and y_num are 0 (zero).
• ATAN2 returns the #VALUE! error if x_num or y_num is not numeric.

#### Example

To calculate the arctangent (inverse tangent) of the specified x- and y-coordinates listed in the table as shown below, please copy or enter the below formula in the top cell (E6) of the result list, and press Enter to get the result. Then select the result cell, and drag the fill handle (the small square in the lower-right corner of the selected cell) down to apply the formula to the below cells.

=ATAN2(B6,C6)

Instead of cell references, you can type the actual x_num and y_num values in the formula as shown below.

=ATAN2(-1.6,0)

Note that the results are angles expressed in radians. You can nest the ATAN2 function into a DEGREES function to convert the angles from radians to degrees as shown below.

=DEGREES(ATAN2(1,-3))

Alternatively, you can multiply ATAN2 by 180/PI().

=ATAN2(1,-3)*180/PI()

#### Related functions

Excel ATAN Function

The ATAN function calculates the arctangent (inverse tangent) of a number, and returns an angle, in radians, in the range from -π/2 to π/2.

Excel ATANH Function

The ATANH function calculates the inverse hyperbolic tangent of a number.

Excel DEGREES Function

The DEGREES function converts an angle in radians to an angle in degrees.

Excel PI Function

The PI function returns the number 3.14159265358979 of the mathematical constant called pi.

### The Best Office Productivity Tools

#### Kutools for Excel - Helps You To Stand Out From Crowd

 🤖 Kutools AI Aide: Revolutionize data analysis based on: Intelligent Execution   |  Generate Code  |  Create Custom Formulas  |  Analyze Data and Generate Charts  |  Invoke Kutools Functions… Popular Features: Find, Highlight or Identify Duplicates  |  Delete Blank Rows  |  Combine Columns or Cells without Losing Data  |  Round without Formula ... Super VLookup: Multiple Criteria  |  Multiple Value  |  Across Multi-Sheets  |  Fuzzy Lookup... Adv. Drop-down List: Easy Drop Down List  |  Dependent Drop Down List  |  Multi-select Drop Down List... Column Manager: Add a Specific Number of Columns  |  Move Columns  |  Toggle Visibility Status of Hidden Columns  |  Compare Columns to Select Same & Different Cells ... Featured Features: Grid Focus  |  Design View  |  Big Formula Bar  |  Workbook & Sheet Manager | Resource Library (Auto Text)  |  Date Picker  |  Combine Worksheets  |  Encrypt/Decrypt Cells  |  Send Emails by List  |  Super Filter  |  Special Filter (filter bold/italic/strikethrough...) ... Top 15 Toolsets:  12 Text Tools (Add Text, Remove Characters ...)  |  50+ Chart Types (Gantt Chart ...)  |  40+ Practical Formulas (Calculate age based on birthday ...)  |  19 Insertion Tools (Insert QR Code, Insert Picture from Path ...)  |  12 Conversion Tools (Numbers to Words, Currency Conversion ...)  |  7 Merge & Split Tools (Advanced Combine Rows, Split Excel Cells ...)  |  ... and more

Kutools for Excel Boasts Over 300 Features, Ensuring That What You Need is Just A Click Away...

#### Office Tab - Enable Tabbed Reading and Editing in Microsoft Office (include Excel)

• One second to switch between dozens of open documents!
• Reduce hundreds of mouse clicks for you every day, say goodbye to mouse hand.
• Increases your productivity by 50% when viewing and editing multiple documents.
• Brings Efficient Tabs to Office (include Excel), Just Like Chrome, Edge and Firefox.
No ratings yet. Be the first to rate!
There are no comments posted here yet
Posting as Guest
Rate this post:
0   Characters
Suggested Locations