1

I'm trying to conditionally format cells individually that are above a certain value AND on an even row number. I can perform these tasks separately, but the AND function will not work. I believe it is due to Excel trying "compute" a range comparison inside the AND, and it produces 0.

Here is an image of what I'm trying to achieve: enter image description here

1 Answer 1

1

Use formula

=AND(B2>0.5,MOD(ROW(),2)=0)

and apply to range $B$2:$C$4

enter image description here

Sign up to request clarification or add additional context in comments.

3 Comments

Why do I need to reference an individual cell here whereas for the first example I show, the range works?
Range works, but not the way you think. In the first example, CF takes the first cell from the range and compares it to 0.5, i.e. cell B2 uses the formula B2:C4>0.5 => B2>0.5 => TRUE, cell C2 uses C2:D4>0.5 => C2>0.5 => FALSE, etc. In the third example, CF takes the entire range, divides it into cells, and compares each to 0.5, then returns the result to the AND function, i.e. cell F2 uses AND(F2:G4>0.5,MOD(ROW(),2)=0) => AND(F2>0.5,G2>0.5 ... F4>0.5,G4>0.5, MOD(ROW(),2)=0) => AND(TRUE, FALSE ... FALSE, TRUE, TRUE) => FALSE
Thanks, I think I understand the conditional formatting syntax a lot better now. Cheers.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.