Formualizer Docs

NOT

Reverses the logical value of its argument.

NOT converts the input to a logical value, then flips it.

The Formualizer engine in this repository at 0.15.0 plus unreleased changes computes the example results. Known differences from Excel are listed on this page.

Syntax

=NOT(logical)

Arguments

ArgumentTypeRequiredDefault
logicalanyRequired—

Return type

Can return a logical value (TRUE or FALSE).

Remarks

  • Numbers are coerced (0 -> TRUE after inversion, non-zero -> FALSE after inversion).
  • Blank values are treated as FALSE, so NOT(blank) returns TRUE.
  • Errors are propagated unchanged.

Error cases

  • Text and other non-coercible values return #VALUE!.

Examples

Invert a true logical value.

Formula =NOT(TRUE)

Expected result FALSE

Try this formula

This editor runs the published Formualizer 0.14.0 package, so the last digits can differ and functions newer than that release return #NAME?.

Invert a false logical value.

Formula =NOT(FALSE)

Expected result TRUE

Try this formula

This editor runs the published Formualizer 0.14.0 package, so the last digits can differ and functions newer than that release return #NAME?.

Test how a zero value is interpreted before negation.

Formula =NOT(0)

Expected result TRUE

Try this formula

This editor runs the published Formualizer 0.14.0 package, so the last digits can differ and functions newer than that release return #NAME?.

An error cannot be interpreted as a logical value.

Formula =NOT(1/0)

Expected result #DIV/0!

Try this formula

This editor runs the published Formualizer 0.14.0 package, so the last digits can differ and functions newer than that release return #NAME?.

FAQ

How does NOT treat blanks?

Blank is treated as FALSE first, so NOT(blank) returns TRUE.

Implementation

Engine source

On this page