Syntax
| Parameter | Description |
|---|---|
| x_num | Parameter of the ATAN2 function. |
| y_num | Parameter of the ATAN2 function. |
Examples
First quadrant
=DEGREES(ATAN2(1, 1))
Second quadrant
=DEGREES(ATAN2(-1, 1))
Navigation bearing
=MOD(DEGREES(ATAN2(east_displacement, north_displacement)), 360)
Common Errors
=ATAN2(0, 0) returns #DIV/0! because the angle is undefined at the origin.
Non-numeric arguments return #VALUE!.
Tips
In spreadsheets, ATAN2(x, y) has x first, unlike many programming languages where it's atan2(y, x). Double-check the order.
ATAN2 distinguishes all four quadrants. ATAN(y/x) can't tell (1,1) from (-1,-1) — both give 45°. ATAN2 correctly gives 45° and -135°.
Radius = SQRT(x²+y²), Angle = ATAN2(x, y). This pair converts any (x,y) point to polar coordinates (r, θ).
Try ATAN2 in Viztab
Import your data and use ATAN2 with 370+ other formulas. No signup required.
Open Viztab