NOT and XOR
Chase every order that is neither Paid nor Cancelled. Those two are finished; everything else needs a reminder.
keyboard Typing formulas is easiest on a computer with a keyboard.
| A | B | C | D | |
|---|---|---|---|---|
| 1 | Order | Status | Action | |
| 2 | ORD-2368 | Unpaid | ||
| 3 | ORD-7534 | Overdue | ||
| 4 | ORD-6187 | Overdue | ||
| 5 | ORD-2144 | Unpaid | ||
| 6 | ORD-3381 | Paid | ||
| 7 | ORD-1438 | Pending | ||
| 8 | ORD-6599 | Cancelled | ||
| 9 | ORD-8791 | Overdue | ||
| 10 | ||||
| 11 | ||||
| 12 | ||||
| 13 |
How NOT and XOR works
What does
NOTdo?NOTflips a condition:TRUEbecomesFALSEandFALSEbecomesTRUE. On its own,NOT(B2="Paid")is the same asB2<>"Paid". It earns its place around a bigger question:=NOT(OR(B2="Paid",B2="Cancelled")) That reads "neither Paid nor Cancelled", which is easier to get right than flipping each part by hand.
What does
XORdo?XORmeans "exclusive or":TRUEwhen exactly one of two conditions isTRUE, andFALSEwhen both or neither are.=XOR(B2="Yes",C2="Yes") How is it different from
OR?ORisTRUEwhen one or both areTRUE. UseXORwhen "both" should not count: one weekend shift but not two, a phone number or an email but not both.What about more than two conditions?
XORisTRUEwhen an odd number of them areTRUE. That's rarely what people mean, so with three or more, count them instead:=COUNTIF(B2:D2,"Yes")=1.
Know someone fighting with a spreadsheet? Send them this page.