+ Reply to Thread
Results 1 to 5 of 5

Conditional Formatting Formula for highlighting Azimuth.

  1. #1
    Registered User
    Join Date
    11-22-2019
    Location
    MI
    MS-Off Ver
    2016
    Posts
    30

    Conditional Formatting Formula for highlighting Azimuth.

    Hello all,

    I have a very tricky question and one that excel may not be able to handle without some crazy formula and that is dealing with Azimuth directions (Degrees on a compass).

    So what I am trying to do is highlight anything that is more than +/- 30 degree difference in direction. The issue is when you get to the Northerly directions. When going from a Northwest direction like 350 to a Northeast direction like 010 (10 degrees) the math will always show that this is greater than a difference of 30 because mathematically is a far more than a difference of 30. But when looking at a compass that 350 to 010 is not a difference of more than 30 degrees it is only a difference of 20 degrees.

    I have attached an example excel file to this post for reference.

    On the Direction 1 table I want to highlight if there is a 30 or more degree difference between the data in the Direction 1 and Direction 2 tables. The conditional formatting formula I currently have in place does not work obviously but it is there for reference.

    Thank you for any help in advance!

    -Chris
    Attached Files Attached Files

  2. #2
    Registered User
    Join Date
    10-29-2009
    Location
    Zurich, Switzerland
    MS-Off Ver
    Excel 2016
    Posts
    15

    Re: Conditional Formatting Formula for highlighting Azimuth.

    Try this in P5:

    Please Login or Register  to view this content.
    The formula can be refined, but it gives you the distance between the two angles.

  3. #3
    Registered User
    Join Date
    11-22-2019
    Location
    MI
    MS-Off Ver
    2016
    Posts
    30

    Re: Conditional Formatting Formula for highlighting Azimuth.

    Quote Originally Posted by tatoon View Post
    Try this in P5:

    Please Login or Register  to view this content.
    The formula can be refined, but it gives you the distance between the two angles.
    That works to find the difference but is there a way to translate that into a conditional formatting formula to get it to highlight if it is +/- 30 degrees? I know I could just add a new column and just get the raw number and use that but it would be much cleaner to just have a conditional formatting formula to highlight the original cell.

    Thank you for the help! If I can't find a way to do it with conditional formatting this will be really useful!

  4. #4
    Registered User
    Join Date
    10-29-2009
    Location
    Zurich, Switzerland
    MS-Off Ver
    Excel 2016
    Posts
    15

    Re: Conditional Formatting Formula for highlighting Azimuth.

    You can create a formula based conditional formatting.

    Just wrap the formula I wrote before in a: =If(formula>30,1,0)

  5. #5
    Registered User
    Join Date
    11-22-2019
    Location
    MI
    MS-Off Ver
    2016
    Posts
    30

    Re: Conditional Formatting Formula for highlighting Azimuth.

    Quote Originally Posted by tatoon View Post
    You can create a formula based conditional formatting.

    Just wrap the formula I wrote before in a: =If(formula>30,1,0)
    Thank you that worked! Thank you very much for the help! I spent way to long trying to figure that out before coming here lol.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Conditional Formatting change in azimuth
    By Kirbstomp1287 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-13-2020, 12:29 PM
  2. Conditional formatting is highlighting empty cells that contain formula
    By rikkyshh in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 11-19-2019, 11:49 AM
  3. [SOLVED] Conditional Formatting Highlighting Formula for Multiple Values
    By papaaj1 in forum Excel General
    Replies: 6
    Last Post: 04-15-2019, 12:40 PM
  4. Conditional Formatting with a Formula, it's highlighting incorrect cells
    By Hyflex in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 03-05-2019, 01:43 AM
  5. Replies: 6
    Last Post: 02-15-2018, 11:54 PM
  6. [SOLVED] Conditional Formatting highlighting cell when blank with formula in it?
    By Shannon561 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 12-15-2015, 01:54 AM
  7. VERY DIFFICULT FORMATTING NEED HELP Inclination and Azimuth
    By ryan1977flem in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-10-2014, 10:27 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1