MS Excel: ATAN2 Function (WS)


This Excel tutorial explains how to use the Excel ATAN2 function with syntax and examples.

Description

The Microsoft Excel ATAN2 function returns the arctangent (in radians) of (x,y) coordinates.

Syntax

The syntax for the Microsoft Excel ATAN2 function is:

ATAN2( x-coordinate, y-coordinate )

Parameters or Arguments

x-coordinate is the x-coordinate of a point.

y-coordinate is the y-coordinate of a point.

Applies To

The ATAN2 function can be used in the following versions of Microsoft Excel:

  • Excel 2013, Excel 2011 for Mac, Excel 2010, Excel 2007, Excel 2003, Excel XP, Excel 2000

Type of Excel Function

The ATAN2 function can be used in Microsoft Excel as the following type of function:

  • Worksheet function (WS)

Example (as Worksheet Function)

Let's look at some Excel ATAN2 function examples and explore how to use the ATAN2 function as a worksheet function in Microsoft Excel:

Microsoft Excel

Based on the spreadsheet above, the following Excel ATAN2 examples would return:

=ATAN2(A1, A2)
Result: 0.674740942

=ATAN2(A2, A3)
Result: -0.643501109

=ATAN2(1, -9)
Result: -1.460139106

=ATAN2(0.2, 0)
Result: 0

=ATAN2(0, 0)
Result: #DIV/0!

Source: www.tutorialspoint.com


Advertisements