Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <h2>Answer</h2> <pre><code>=IF(AND(A1&lt;&gt;3,A1&lt;&gt;6,A1&lt;&gt;7),TRUE,FALSE) </code></pre> <h2>Bonus 1 - Flexible conditions</h2> <p>To make logic easy to change, consider putting them in a separate cell D1 as "3, 6, 7", then change conditional formatting formula to:</p> <pre><code>=IF(ISERROR(FIND(A1,$D$1)),TRUE,FALSE) </code></pre> <p><img src="https://i.stack.imgur.com/Q7oHY.jpg" alt="enter image description here"></p> <p>This also helps with Excel's limitation on how many logic evaluations you can have within and() or() not() in the same formula. I've hit it before but can't remember exactly how many. Perhaps others can shred some light.</p> <h2>Bonus 2 - To use or not to use absolute reference?</h2> <p>You can check multiple cells against A1's value by using absolute reference $A$1:</p> <p><img src="https://i.stack.imgur.com/T75Hv.jpg" alt="enter image description here"></p> <p>But if you want to check multiple cells against their own value, select the multiple cells with A1 as starting point, then don't use absolute references:</p> <p><img src="https://i.stack.imgur.com/jKqGm.jpg" alt="enter image description here"></p> <p>Similarly, to check another column against their respective row counterparts in column A, use $A1:</p> <p><img src="https://i.stack.imgur.com/i0JVw.jpg" alt="enter image description here"></p> <p>Note that Excel is particular about the starting point of "Applies to" region. If you use conditional formatting formula evaluating against A1, you must have A1 as the beginning of "Applies to" region:</p> <p><img src="https://i.stack.imgur.com/qpbMH.jpg" alt="enter image description here"></p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload