To make a more flexible, interactive conditional formatting rule, use other cells like variables in the formula.

You must use an absolute address for E2 and G2 to prevent these addresses from changing.

AND returns TRUEonly if all the conditions are met.

Excel formula: Highlight values between

If any conditions are not met, the AND function returns FALSE.

When given TRUE, NOT returns FALSE.

When given FALSE, NOT returns TRUE.

Excel AND function

Use the NOT function to reverse a logical value.

Excel NOT function

Article image

Article image

Article image

Article image