A plan marks a point four units right and three units up from the origin. To find its direction, use both offsets and measure the angle from positive X.

Enter X first and Y second in the spreadsheet formula

Put X in A2 and Y in B2. Excel’s ATAN2 uses this order. Wrap it in DEGREES to convert the result from radians.

=DEGREES(ATAN2(A2,B2))

With (4, 3), expect approximately 36.87°.

A four-unit horizontal offset and three-unit vertical offset give an angle of about 36.87 degrees.

Illustrated coordinate example. Measure the angle from positive X.

Test known directions before using unfamiliar ones

Use (1, 0) and expect 0°. Use (0, 1) and expect 90°. Positive angles turn counterclockwise from positive X. The pair (0, 0) has no direction and produces a division-by-zero error in Excel.

A rightward vector gives zero degrees and an upward vector gives 90 degrees.

Illustrated checks. These two inputs catch swapped arguments.

If your source uses image coordinates, where Y may increase downward, convert the sign first if your report uses upward-positive Y. Microsoft’s ATAN2 argument order and angle conventions.