=IF(AND(A5>0,B5>0),90-(ATAN(ABS(B5)/ABS(A5))*57.2957795),IF(AND(A5<0,B5>0),270+(ATAN(ABS(B5)/ABS(A5))*57.2957795),IF(AND(A5>0,B5<0),90+(ATAN(ABS(B5)/ABS(A5))*57.2957795),270-(ATAN(ABS(B5)/ABS(A5))*57.2957795))))
Not sure if this helps at all. Maybe you can extract my solution from this. Cell...