- How does NOT treat numeric values like 0 or 5?
- In Excel and Google Sheets, NOT coerces numbers to Boolean: 0 is treated as FALSE, so NOT(0) returns TRUE. Any non-zero number is treated as TRUE, so NOT(5) returns FALSE. This implicit conversion can be surprising, so use explicit comparisons if you need precise logic.
- Can I use NOT on an array of logical values?
- NOT itself only accepts a single logical argument; passing an array such as A2:A5 results in a #VALUE! error. To invert each element of an array, use MAP with a LAMBDA that returns NOT(x), or apply the double-unary operator (-- ) in an array formula context.
- Why does NOT return #VALUE! when I reference a whole column?
- Column references like A:A produce a range containing many cells. NOT expects a single logical value, so it cannot implicitly reduce a multi-cell range and therefore raises #VALUE!. Reduce the range to a single cell, or combine the column with an aggregating function (e.g., AND(A:A)) before applying NOT.
- What is the difference between =NOT(A1) and =A1=FALSE?
- Both formulas return the opposite Boolean of A1, but =A1=FALSE performs a direct comparison that yields TRUE when A1 is FALSE or 0, and FALSE otherwise. =NOT(A1) first coerces A1 to Boolean (0 becomes FALSE, non-zero becomes TRUE) and then flips it. The subtle difference appears when A1 contains non-Boolean values like text; NOT will return #VALUE! while the comparison may return FALSE.