• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

Conditional Formatting Formula

Dear All,

Could you please guide me how to highlight Red, Amber, Green (RAG) using conditional formatting based on the cell value. The criteria is below:

a) Plus or Minus 10% => Red
b) Plus or Minus 5% => Green
c) Plus or Minus 5 to 10% => Amber

Thank You and Regards,
Pavan.
 
Can you upload a file please?
Based on understanding of the above, rules based on formulas if cells are in column B.
amber =AND(ABS($B1)>5%,ABS($B1)<10%)
green = ABS($B1)=5%
red = ABS($B1)=10%
 

Attachments

  • 37270.xlsx
    8.5 KB · Views: 4
Kindly note that if the value is in cell A2, and tried the below formula which is not working.

=IF(OR(A2<5%,A2>-5%),"Green",IF(OR(A2<9%,A2>-9%),"Amber","Red"))

Please correct and make it work.

Thank You and Regards,
Pavan.
 
Can you upload a file please?
Based on understanding of the above, rules based on formulas if cells are in column B.
amber =AND(ABS($B1)>5%,ABS($B1)<10%)
green = ABS($B1)=5%
red = ABS($B1)=10%
Thank You GraH. However, please note that if the value is below + or - 5 also, it should turn Green.
 
Pavan, Did you check how I did it in the uploaded file?
I use ABS(A2)=5% => So it does not matter if it is MIN/PLUS.
And I defined 3 rules: one for each colour.
FYI: CF works if the rule returns TRUE.
 
Back
Top