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.
If any conditions are not met, the AND function returns FALSE.
When given TRUE, NOT returns FALSE.
When given FALSE, NOT returns TRUE.
Use the NOT function to reverse a logical value.