ATAN2 function - Zoho Sheet - Help Guide

ATAN2

Returns the inverse tangent (the a rctangent) for specified x- and y-coordinates as an angle in radians between -pi and pi, excluding -pi. This equals the angle between the x-axis and a line from the origin (0,0) to the given point (x_coord, y_coord).

 

Syntax

 

ATAN2(x_coord; y_coord)

x_coord: The value of the x coordinate of the point. Eg., -2

y_coord: The value of the y coordinate of the point. Eg., 3  

Examples

  

Formula

Result

=ATAN2(1;1)

0.785398163

=ATAN2(-2;3)

2.15879893

=ATAN2(3;-1)

-0.321750554


Get a hands-on experience of the function in the embedded range below. 



Remarks

  • To return the angle in degrees, use the DEGREES function or multiply it by 180/PI().

 

Possible Errors

 

Errors

Meaning

#N/A!

  • The function could not find the value it was asked to look for. Commonly occurs in VLOOKUP and similar functions.

#NAME!

  • The function name is incorrect or invalid.

  • The given defined name (if any) is invalid.

  • There is a typo in the defined name used in the function.

  • Double quotes are missing for text values in the function.

  • Colon missing in a cell range reference.

#VALUE!

  • The given argument's data type is incorrect or invalid.
    For example, the function =DATE(A1:A3) will return a #VALUE error when a text value is present in the range.

#REF!

  • The given cell reference is incorrect or invalid. This error may occur when a cell/range has been deleted, moved, or pasted over.

 

Similar Functions