Returns the angle between the x-axis and a line segment from the origin (0,0) to specified coordinate pair (`x`,`y`), in radians. Learn more
In Google Sheets, ATAN2 is a function that returns the arctangent of the quotient of two given values, x and y, in radians. The function takes two arguments:
x: This is the numerator value of the quotient for which you want to calculate the arctangent. y: This is the denominator value of the quotient for which you want to calculate the arctangent.
The ATAN2 function is different from the ATAN function because it returns an angle in the correct quadrant of the coordinate plane. In other words, it takes into account the signs of both x and y to determine the correct angle. The angle returned by the ATAN2 function is in radians.