SheetsLessons
Logical function

NOT function in Google Sheets

NOT reverses a TRUE/FALSE value. It's useful for flipping a checkbox or turning "is blank" into "is filled in".

Syntax

=NOT(logical_expression)
logical_expression
A TRUE/FALSE value or condition to reverse.

Practice NOT

Task 1 of 1

Discontinued items shouldn't appear in the store. Use NOT to turn the Discontinued flag in B2 into a "Show in store?" TRUE/FALSE in C2.

C2
fx

Tip: while typing a formula, click a cell or drag across cells to insert references. Press Enter to check, and Tab to accept a function suggestion.

NOT examples

Each example below runs against this sample sheet. The results are calculated by the same engine as the practice grid.

ABCD
1StudentClassScorePassed
2PriyaA92TRUE
3LeoB67FALSE
4ChloeA48FALSE
5MateoB81TRUE
6InesCFALSE
7KaiC75TRUE
Test scores (Ines missed the test)
FormulaResultWhat it shows
=NOT(D3)TRUELeo did not pass, so NOT gives TRUE.
=NOT(C2>=70)FALSESame as C2<70.
=IF(NOT(ISBLANK(C6)), "Has score", "No score")No scoreTurning ISBLANK around.

Tips and common mistakes

  • Often a simpler comparison does the job: NOT(A2="x") is the same as A2<>"x".

Related functions