Conditional Formatting when between two values
&
is the concatenation operator in Excel, it doesn't work as AND
, use one of below:
=AND($N20>90,$N20<100)
=($N20>90)*($N20<100)
Related videos on Youtube
Mike
I've been programming in several different languages since 2012 and I'm still learning. I enjoy using this site to learn more and to help others to learn more as well. SO has been a great benefit in helping me to be a better developer as I've learned new languages and worked hard at making myself indispensable to my employers.
Updated on September 18, 2022Comments
-
Mike over 1 year
I am trying to figure out how to conditionally format a row based on the value in one column. The values can go from 0 - 100, I want 3 different conditions.
- value < 90 = Formatting Red
- value => 90 and < 100 = Formatting Orange
- value = 100 = Formatting Green
I have figured out how to do 1 and 3, but getting the 2nd one has me stuck. For the first one I have a formula expression like this:
"=$B5<90"
and this works perfectly anything that is less than 90 is red.I have tried for the 2nd one this:
=$N20>90&$N20<100
, but it does nothing no formatting is applied. -
Mike about 6 yearsI feel kind of dumb for not realizing that sooner. Thanks!