ATAN2(x_num, y_num)
=DEGREES(ATAN2(x,y))
The ATAN2 function takes two arguments and returns the angle between the two points. This angle is returned as a radian. To get the angle in degrees, use the formula
=ATAN2(x,y)*180/PI()
The formula above gives the angle in degrees.
The ATAN2 function is used to calculate the arctangent of a point in radians, which is the angle from the x-axis to a line connecting the origin (0, 0) to the point (x_num, y_num). The result is a value between -pi and pi.