How to fix multi conditional formatting issue-- dates

Megan Conkle 0 Reputation points
2024-11-12T18:38:02.0333333+00:00

I am attempting to color code Board Member terms based on how many years they have left. I am using conditional formatting formulas to attempt this, but something isn't working correctly.

Screenshot 2024-11-12 at 1.33.46 PM

Screenshot 2024-11-12 at 1.31.48 PM

Excel
Excel
A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.
1,991 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Barry Schwarz 3,071 Reputation points
    2024-11-12T20:43:27.4633333+00:00

    The rules are in the wrong order.

    Consider row 3. B3+365*3 is 10/1/25. Today is 11/x/24. The first format rule returns false. The second returns true and the pink format is applied. Stop if true is set so no more rules are evaluated and you have the wrong color since less than a year to go should be green.

    You should not test for < 3 years unless the tests for < 2 years and < 1 year have both failed.

    Reverse the four rules. If there is less than a year to go, apply green and stop. If not, then if less than 2 apply orange and stop. ...

    Since the last rule applies no format, it can be deleted. If you need to keep it, it can be simplified to TRUE.

    0 comments No comments

  2. Emi Zhang-MSFT 25,796 Reputation points Microsoft Vendor
    2024-11-19T01:23:23.46+00:00

    Hi,

    Just checking in to see if the information was helpful. Please let us know if you would like further assistance.


    If the response is helpful, please click "Accept Answer" and upvote it.

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.