Working with DEGREES, RADIANS and compass headings ...

MAPepin

New Member
Joined
Oct 27, 2008
Messages
2
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
 

Some videos you may like

Excel Facts

How to change case of text in Excel?
Use =UPPER() for upper case, =LOWER() for lower case, and =PROPER() for proper case. PROPER won't capitalize second c in Mccartney

tusharm

MrExcel MVP
Joined
May 28, 2002
Messages
11,007
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)
 

MAPepin

New Member
Joined
Oct 27, 2008
Messages
2
AWSOME ... :biggrin:

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

WOOT!! A toast to you. (y)
 

Watch MrExcel Video

Forum statistics

Threads
1,102,042
Messages
5,484,356
Members
407,437
Latest member
alfaroM

This Week's Hot Topics

  • Finding issue in If elseif else with For each Loop
    Finding issue in If elseif else with For each Loop I have tried this below code but i'm getting in Y column filled with W005. Colud you please...
  • MsgBox Error
    Hi Guys, I have the below error show up when i try and run my macro in File1 but works fine if i copy and paste the same code into file2. [ATTACH...
  • CELL FORMAT - IF CONDITION
    My Cell Format is [B]""0.00" Cr". [/B]But in the cell, it is showing 123.00 for editing. (123 is entry figure). (Data imported from other...
  • Show numbers nearly the same
    Is this possible. I have a number that can change very time eg 0.00001234 Then I have a lot of numbers 0.0000001, 0.0000002, 0.00000004...
  • Please i need your help to create formula
    I need a formula in cell B8 to do this >>if b1=1 then multiply ( cell b8) by 10% ,if b1=2 multiply by 20%,if=3 multiply by 30%. Thank you in...
  • Got error while adding column and filter
    Got error while adding column and filter In column Z has some like "Success" and "Error". I want to add column in AA if the Z cell value is...
Top