Ok here goes...
The facts and background
I've looked at a lot of google results for how to calculate a coordinate point from a known point with an bearing angle and distance and the above formulae is the result. I also learned that the math(s) is calculated from the Horizontal hence the variable values in the RADIANS() part of the formula. I know they are correct as I can validate the resultant coordinates in CAD software graphically but I do not know if there is a cleaner way of doing it
Now, the problem...
If the known bearing rotation angle is between 90 & 180 degrees, the resultant coordinates are calculated in the wrong place. Specifically they become negative in both directions giving a 'flipped' appearance to the end purpose for what I use the spreadsheet to calculate as used in my CAD Software. Can the above formulae be amended to include an If statement where if the Bearing Angle is between 90° and 270°, the angles have a 180° modifier applied to it? Alternatively, if not in the above formula perhaps another column which generates the adjusted values between the ranges of 270-0-90.
I imagine this will sound quite confusing so if necessary I can draw up some graphics if it helps explain any area that needs more explanation.
Thanks in advance
The facts and background
- I've got a spreadsheet where I have 3 cells which define X,Y,Z coordinates of a known point
- I have a known bearing rotation angle (measured clockwise from North)
- I have a cell which defines a distance
- I have 2 more cells which define a new X,Y coordinate to East of the starting coordinate PERPENDICULAR to the bearing angle
- I have 2 more cells which define a new X,Y coordinate to North of the starting coordinate ALONG the bearing angle
- I have had to use 4 different formulae in each cell in order to report the correct coordinate position which are:
- X Dest E: =TEXT(B3*COS(RADIANS(A3))+MAI!B7,"0.000000")
- X Dest N: =TEXT(B3*SIN(RADIANS(A3-180))+MAI!C7,"0.000000")
- Y Dest E: =TEXT(B3*COS(RADIANS(A3-90))+MAI!B7,"0.000000")
- Y Dest N: =TEXT(B3*SIN(RADIANS(A3-270))+MAI!C7,"0.000000")
- B3 = Distance
- A3 = Bearing Angle
- MAI!B7 = Starting X Coordinate
- MAI!C7 = Starting Y Coordinate
I've looked at a lot of google results for how to calculate a coordinate point from a known point with an bearing angle and distance and the above formulae is the result. I also learned that the math(s) is calculated from the Horizontal hence the variable values in the RADIANS() part of the formula. I know they are correct as I can validate the resultant coordinates in CAD software graphically but I do not know if there is a cleaner way of doing it
Now, the problem...
If the known bearing rotation angle is between 90 & 180 degrees, the resultant coordinates are calculated in the wrong place. Specifically they become negative in both directions giving a 'flipped' appearance to the end purpose for what I use the spreadsheet to calculate as used in my CAD Software. Can the above formulae be amended to include an If statement where if the Bearing Angle is between 90° and 270°, the angles have a 180° modifier applied to it? Alternatively, if not in the above formula perhaps another column which generates the adjusted values between the ranges of 270-0-90.
I imagine this will sound quite confusing so if necessary I can draw up some graphics if it helps explain any area that needs more explanation.
Thanks in advance
Last edited: