Value1 Value2 Color
2 16 =IF(A2>5,"Red", IF(AND(5>A2>1,40>B2>1,"Yellow")),IF(AND(5>A2>1,40>B2>60,"Red")),IF(AND(5>A2>1,60>B2>100,"Yellow")),"Green)
The logic for which, I believe is:
If "Value1" > 5 ---> "Red"
If "Value1" is between 1-5 and "Value2 " is between 1-40 ---> "Yellow"
If "Value1" is between 1-5 and "Value2 " is between 40-60 ---> "Red"
If "Value1" is between 1-5 and "Value2 " is between 60-100 ---> "Yellow"
Else ---> "Green"
I want the color «red», «yellow» og «green» to be shown in a column based on two values from two different colums. I’ve tried to look it up but I can’t find anything to make my formula work. Hope the picture explains
It only says that the formula is wrong but I can’t figure out what to do…