Knowledge base / Excel

NOT in Excel: negation, boundaries and missing inputs

I explain exactly what NOT reverses and why “not approved” can include a missing status as well as cases waiting for approval.

Kajo RudzińskiPublished Updated 5 min read

A mechanical switch connects to two lamps in opposite states.

I use NOT to reverse a condition’s logical result. A true condition becomes FALSE; a false condition becomes TRUE. My main question is which expression the negation covers. Negating an entire requirement is different from negating its component conditions separately. Adding NOT does not remove the need to explain the rule. A formula can be valid while classifying a different set of records from the one the reader expects.

One argument, two logical states

Microsoft documents the syntax as:

=NOT(logical)

The argument is a value or expression that can be evaluated logically. For basic logical values:

Formula Result
=NOT(TRUE) FALSE
=NOT(FALSE) TRUE

NOT takes one argument. Several criteria can be combined first, for example through AND or OR. Microsoft shows these combinations with IF. I use commas in English examples and semicolons in Polish examples with multiple arguments. Your installation’s list separator depends on regional settings, so check it when adapting a formula.

Negating a threshold changes the equality boundary

Suppose A2 contains a synthetic score stored as a valid number. I want to flag a score that has not reached at least 50:

=NOT(A2>=50)

For 49, the comparison is false, so NOT returns TRUE. For 50, the comparison is true, so NOT returns FALSE, as it does for 60. Under these assumptions, =A2<50 describes the same rule more directly. I choose whichever expression is easier to read in the particular spreadsheet. An additional function does not automatically improve clarity.

Negating A2>50, however, includes 50 because not greater means less than or equal for valid numeric inputs. This boundary is easy to lose in a written explanation. I consider a number below the threshold, exactly at it and above it before using the classification. Missing data, text and errors remain separate input problems outside the assumptions of this numeric example.

Negate the whole AND expression

Suppose passing requires both scores in A and B to exceed 50. The condition for failing that requirement is:

=NOT(AND(A2>50,B2>50))

For the synthetic pair 60 and 60, both comparisons are true and the complete formula returns FALSE. For 60 and 50, the second comparison is false, so AND returns FALSE and NOT changes that to TRUE. At least one score must therefore be less than or equal to 50. Omitting equality would misdescribe the formula.

For valid numeric inputs, this expression describes the same requirement:

=OR(A2<=50,B2<=50)

In contrast, =AND(NOT(A2>50),NOT(B2>50)) requires both scores to be at most 50. It returns FALSE for 60 and 50, so it cannot replace the original expression. If the nesting becomes difficult to read, show the comparisons in separate helper columns. That makes it easier to explain which requirement a particular record failed and which part of the formula produced the flag.

A mechanism flips a two-sided tile between a navy face and a golden face.

A status different from Approved

For a text status in B2, I can write:

=IF(NOT(B2="Approved"),"Check status","Approved")

This does not automatically identify the Pending category. It covers everything that fails the comparison with Approved, including a missing status and other entries. “Check status” is therefore more precise than “Pending.” If only pending records are wanted, compare directly with that agreed status. Negating one category cannot define all the other categories in the process. The spreadsheet needs an explicit status vocabulary as well as a logical test.

For conditional formatting over A2:C5 with A2 active, use =NOT($B2="Approved"). The status column stays fixed while the row remains relative. Microsoft explains these formula rules. Decide whether a missing status should receive the same appearance as a rejection. The expression cannot infer the intended meaning of those two situations, even if both happen to produce the same logical result.

An empty cell versus empty text

To check genuine cell emptiness, I use ISBLANK from the documented IS functions:

=NOT(ISBLANK(A2))

The result is FALSE for an empty cell and TRUE for a cell containing zero. It is also TRUE for a cell containing ="", even though no text is visible. If my question concerns empty text, I need a different criterion from genuine cell emptiness. I avoid labeling both questions “completed,” because the same visual appearance can arise from different cell contents.

Likewise, =NOT(ISERROR(A2)) checks that the value is not an error. It neither repairs an error nor establishes business validity. Ordinary text can pass this check even where an amount is required. A control column should name the property it actually checks, rather than imply that the whole record has been approved.

Filtering in modern Excel

In Microsoft 365, Excel 2024 and Excel 2021, FILTER can use an array of logical results. For A2:B5, with statuses in B, write:

=FILTER(A2:B5,NOT(B2:B5="Approved"),"No matches")

Suppose the synthetic statuses are Approved, Pending, Rejected and a genuinely empty B5. The formula selects the final three rows. That matches the negation, but may conflict with an intention to show only pending cases. The third argument controls the no-match result. An error in the criteria array can still cause a filtering error, so the fallback text does not handle every possible problem.

Practice by explaining the rule

For scores 60 and 50, compare negating the complete AND expression with applying AND to two negations. Explain the difference without function names. Then decide what should happen to a missing status. If the answer depends on context, record that context. For alternative conditions, return to OR; for labels based on a logical result, continue with IF.

Key takeaways

How many conditions does NOT accept?

One argument. To negate several criteria together, combine them with a function such as AND first, then apply NOT to the result.

Does NOT(A2>=50) include 50?

No. For 50, A2>=50 is true, so NOT returns FALSE. With valid numbers, the expression corresponds to A2<50.

Does NOT(ISBLANK(A2)) mean visibly filled?

Not always. A formula returning empty text still occupies a cell. ISBLANK distinguishes it from a genuinely empty cell.

AI was used in an automated way while working on this article. If you want to learn how to do it too, check out this project.

Kajo Rudziński

Newsletter KajoData

Let’s keep in touch.

I write about data analysis, learning and changing careers. My newsletter and the sign-up form are in Polish. If that works for you, I’d be glad to see you there.