Working with DEGREES, RADIANS and compass headings ...

MAPepin

New Member
Joined
Oct 27, 2008
Messages
7
I'm in a bit of a jam. I'm trying to figure out an Excel spreadsheet problem using RADIANS and DEGREES and just can't seem to figure it out. This has to do with ship (maritime) navigation.

Here's the problem:
I want to input any given course within the 360° of a circle and output the possible courses to steer if I came left or right 15°, 30°, 45°, 60°, 75°, or 90°.

So, if I were to use a course of 000° as my base input, it would look something like this:
---------------------------------------
BASE COURSE: 000°

LEFT diff RIGHT
345° 15 015°
330° 30 030°
315° 45 045°
300° 60 060°
285° 75 075°
270° 90 090°
---------------------------------------

If I were to change the base course input, all numbers would instantly update:

---------------------------------------
BASE COURSE: 120°

LEFT diff RIGHT
105° 15 135°
090° 30 150°
075° 45 165°
060° 60 180°
045° 75 195°
030° 90 210°
---------------------------------------

One big thing that I need with this is to be able to subtract numbers to the left while treating 000° the same as 360° so that if I subtract (come left) 45° from the course 030° I get 345° and not -15.

Is this even possible in Excel without any VB programming? Am I using the wrong functions?

Thank you, in advance, for any help you might give on this.

Mike
 

Excel Facts

Create a Pivot Table on a Map
If your data has zip codes, postal codes, or city names, select the data and use Insert, 3D Map. (Found to right of chart icons).
Lightly tested...

For left use =MOD(360+$D$2-$C5,360) where D2 is the base heading and C5 is the degrees to turn.

For right use =MOD(360+$D$2+$C5,360)
 
Upvote 0
AWSOME ... :biggrin:

I put it through the wringer in testing it out and it worked like a champ !!!

WOOT!! A toast to you. (y)
 
Upvote 0

Forum statistics

Threads
1,214,918
Messages
6,122,257
Members
449,075
Latest member
staticfluids

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top