Google Sheets ATAN2 Function

This post will guide you how to use Google Sheets ATAN function with syntax and examples.

Description


The Google Sheets ATAN function returns the arctangent, or inverse tangent, of the specified x- and y-coordinates. And you can use the ATAN2 function to calculate the arctangent of a given x and y coordinates. The returned value is an angle between –pi/2 and pi/2.

The purpose of ATAN function is to get arctangent from x- and y-coordinates in google sheets.

The ATAN function is a build-in function in Google Sheets and it is categorized as a MATH function.

Syntax


The syntax of the ATAN2 function is as below:

= ATAN2 (x_num, y_num)

Where the ATAN2 function arguments are:

  • x_num -This is a required argument. The x-coordinate of a point.
  • Y_num – This is a required argument. The y-coordinate of a point.

Note:

  • If the values of both x_num and y_num arguments are 0, the ATAN2 will return the #DIV/0! Error.
  • The returned value of ATAN2(a,b) is equal to the formula ATAN2(b,a).
  • If you want to express the arctangent in degrees, you just need to multiply the result by 180/PI() or you can use the DEGREES function.
  • If the supplied number is not a numeric value, the ATAN function will get the #VALUE! Error。
  • If the returned result is a positive value, it indicates that it is a counterclockwise angle from the x-axis. If the returned result is a negative value, it indicates that it is a clockwise angle.

Google Sheets ATAN Function Examples


The below examples will show you how to use google sheets ATAN2 Function to return the arctangent of x and y coordinates

1# get the arctangent of the x- and y-coordinates 2,2 in radians, enter the following formula in Cell B1.

=ATAN2(2,2)

google sheets atan2 function1

The returned result is 0.785398.

2# get the arctangent of the x- and y-coordinates -2,-2 in radians, -3*pi/4, using the following formula in Cell B2.

=ATAN2(-2,-2)

google sheets atan2 function1

This formula will return the value -2.35619.

3# get the arctangent of the x- and y-coordinates 2,2 in degrees, using the following formula in Cell B3.

=ATAN2(2,2)*180/PI()

google sheets atan2 function1

Or you can use the below formula to achieve the same result:

=DEGREES(ATAN2(2.2))

google sheets atan2 function1

 

Related Posts

Google Sheets LN Function
google sheets LN function1

This post will guide you how to use Google Sheets LN function with syntax and examples. Description The Google Sheets LN function returns the natural logarithm of a given number.  And the natural logarithms are based on the constant e ...

Google Sheets INT Function
google sheets int function1

This post will guide you how to use Google Sheets INT function with syntax and examples. Description The Google Sheets INT function returns the integer portion of a given number. And it will round a given number down to the ...

Google Sheets FLOOR Function
google sheets floor function1

This post will guide you how to use Google Sheets FLOOR function with syntax and examples. Description The Google Sheets FLOOR function returns a number rounded down to the nearest multiple of significance. So it will return a rounded number. ...

Google Sheets EXP Function
google sheets exp function1

This post will guide you how to use Google Sheets EXP function with syntax and examples. Description The Google Sheets EXP function returns e raised to the power of a number.  The constant e is equal to 2.71828182845904, and it ...

Google Sheets FACT Function
google sheets FACT function1

This post will guide you how to use Google Sheets FACT function with syntax and examples. Description The Google Sheets FACT function returns the factorial of a given number.  The factorial of a given number is equal to 1*2*3…* number. ...

Google Sheets EVEN Function
google sheets even function1

This post will guide you how to use Google Sheets EVEN function with syntax and examples. Description The Google Sheets EVEN function rounds a given number up to the nearest even integer. You can use the EVEN function to return ...

Google Sheets COUNTBLANK Function
google sheets countblank function1

This post will guide you how to use Google Sheets COUNTBLANK function with syntax and examples. Description The Google Sheets COUNTBLANK function use to count the number of empty cells in a range of cells. You can use the COUNTBLANK ...

Google Sheets DEGREES Function
google sheets degrees function1

This post will guide you how to use Google Sheets DEGREES function with syntax and examples. Description The Google Sheets DEGREES function converts radians into degrees. And it will return a numeric value. For examples, if you pass the PI() function into ...

Google Sheets COSH Function
google sheets cosh function1

This post will guide you how to use Google Sheets COSH function with syntax and examples. Description The Google Sheets COSH function returns the hyperbolic cosine of a given angle. The purpose of this function is used to get hyperbolic ...

Google Sheets COS Function
google sheets cos function1

This post will guide you how to use Google Sheets COS function with syntax and examples. Description The Google Sheets COS function returns the cosine of a given angle. If you want to supply an angle to COS function in ...

Sidebar