SOLVED

Conditional formatting with AND function

Copper Contributor

Hi there, 

I am trying to make a document with conditional formatting based on two variables:

a percentage value and a word (yes or no).

In conditional formatting I choose for "Use a formula...."

And then I use this formula:

="AND($C$15=""Yes"",$F$21<10%)"

This should be leading to a green cell. 

The formatting doesn't happen though.

Does anyone have an idea what I could be doing wrong here? 

Best regards,

John

4 Replies
best response confirmed by John_NumeroDos (Copper Contributor)
Solution

@John_NumeroDos 

=AND($C$15="Yes",$F$21<0.1)

You can try this formula if the format of cell F21 is percentage.

conditional format.JPG

 

@OliverScheurich 

It doesn't work, see below 😞

John_NumeroDos_0-1680301263549.png

 

@OliverScheurich 

Thanks for the suggestion. Excel tells me to add a ' if I don't want a formula and then changes it to

 

="'=AND($C$15='Yes',$F$21<10%)"

 

So, it doesnt accept the formula without the extra stuff.

Any idea why this happens? Drives me crazy

@OliverScheurich 

 

I got it, I used a , instead of ; 

 

1 best response

Accepted Solutions
best response confirmed by John_NumeroDos (Copper Contributor)
Solution

@John_NumeroDos 

=AND($C$15="Yes",$F$21<0.1)

You can try this formula if the format of cell F21 is percentage.

conditional format.JPG

 

View solution in original post