+ Reply to Thread
Results 1 to 4 of 4

Conditional Formatting change in azimuth

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

    Conditional Formatting change in azimuth

    Hello all,

    So I am trying to do conditional formatting to look for a greater than 30 degree change in direction. The issue I am running into is when you get between directions 340-020 it will always highlight that difference because obviously thats way more than a difference of 30 when doing it mathematically. But if your looking at a compass it may not be a difference of 30 degrees.

    Example: Cell O5 shows direction 350 and cell AK5 shows 010. On a compass that is less than a 30 degree difference. Mathematically is is far greater than a difference of 30.

    Is there any way around this??

    Thanks for any help!

    -Chris

  2. #2
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP and 2007
    Posts
    15,829

    Re: Conditional Formatting change in azimuth

    I think most suggestions are to use the MOD() function =MOD(10-350,360) returns 20.
    Quote Originally Posted by shg
    Mathematics is the native language of the natural world. Just trying to become literate.

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

    Re: Conditional Formatting change in azimuth

    Quote Originally Posted by MrShorty View Post
    I think most suggestions are to use the MOD() function =MOD(10-350,360) returns 20.
    So in the formula below where you put the MOD formula?

    =AND(P5>=(ABS(AL6-P5)),ABS(AL6-P5)>30)

  4. #4
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP and 2007
    Posts
    15,829

    Re: Conditional Formatting change in azimuth

    Around the ABS() function =AND(P5>=MOD(ABS(...),360),MOD(ABS(...),360)>30). 180 might be a better divisor than 360, depending on exactly what you are wanting to do.

+ 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. Change conditional formatting into regular formatting
    By drrazor in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-14-2018, 04:21 AM
  2. [SOLVED] Conditional Formatting change if cell changes
    By shaz0503 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-17-2015, 10:21 PM
  3. 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
  4. Fix conditional formatting to never change
    By whatever61 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 07-25-2013, 06:16 AM
  5. Conditional Formatting via VBA: Change formatting in range based on value of each cell
    By ralphjmedia in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-12-2013, 10:37 AM
  6. % Change, Conditional Formatting
    By GreatLakesJK in forum Excel General
    Replies: 6
    Last Post: 10-12-2010, 01:01 PM
  7. Change conditional formatting set in Excel using VBA?
    By proepert in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-08-2010, 09:53 PM

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