Forum Discussion
I'm not sure why Conditional Formatting isn't working correctly
Hello, I hope you are all well.
I'm having an issue with a worksheet and the Conditional Formatting I set up. I have the formatting set to turn the cell: Red if the value in the cell is less than 85%, Green if the value in the cell is 85% and above, and Blue, if the value in the cell is blank.
I have tried clearing the entire cell, and redoing everything and I still have the same result.
What is happening is when the cell is blank it remains green instead of blue. I have attached a screenshot.
If anyone could assist and let me know what I am doing wrong, I'd greatly appreciate it.
9 Replies
- SergeiBaklanDiamond Contributor
That's since value of the blank cell is equivalent to zero, 0.85 is greater than zero, green condition triggers the color and next rule is not checked. You shall change (>0.85 and <>0 ) for this rule
- Michael1105Brass ContributorThank you very much for responding. I tried the suggestion from Peter and it worked.
- Michael1105Brass Contributor
I thank you very much for replying. I was able to get it to work properly with Peter's suggestion.SergeiBaklan
- mtarlerSilver Contributor
SergeiBaklan well this is a first for me. Sergei, I did some testing and ""<>0 and in fact it appears any text is evaluating > any number. For example "1">999999 results TRUE (but --"1">9 evaluates FALSE as expected)
so
@MichaelAntonelli change the rule to be (>0.85 and <>"" )
- Michael1105Brass ContributorThank you for replying. I did try Peter's suggestion and it seemed work fix the issue. Much appreciated 🙂
- peteryac60Iron ContributorHi
I’m not able to look at your attachment at present but I suspect that you have the conditions in the wrong order. If you put the blank check first ( you can move it up) and then check the box “stop if true”. This will then not apply the other checks. You can then have the other 2 formats applied in any order.
Hope this helps
Petet- Michael1105Brass Contributor
peteryac60 Thank you very much! Yes...that worked. I wasn't aware that the conditions had to be in an order. You taught me something very valuable! I very much appreciate your response. 🙂
- peteryac60Iron Contributor
You are welcome.
Note also the comments left by @Sergei Baklan especially that text is 'greater' than numbers - I should have mentioned this.
anyway good luck!
Pete