NOT function

NOT() function

Star InactiveStar InactiveStar InactiveStar InactiveStar Inactive
 

Return the reverse of TRUE or FALSE statements based on testing logical conditions

=NOT(logical)


Return the reverse of TRUE or FALSE statements based on testing logical conditions.

Return TRUE if the return is FALSE and FALSE if the return is TRUE.

NOT syntax requires 1 argument, a logical condition.


NOT examples.

In the examples below, the NOT function is used to test different logical conditions.

Use the NOT function to return the reverse of TRUE or FALSE statements based on testing logical conditions.

Use the NOT function to return the reverse of TRUE or FALSE statements based on testing logical conditions.

Syntax

NOT(logical)

The NOT function consists of 1 argument:

  1. logical. Required. A value or expression that can be evaluated to TRUE or FALSE.

Try it now!

  • Enter your formulas into the grey cells.

Scope

NOT can be inserted into calculations to return the reverse of the TRUE and FALSE statements.

  • Text:
 =NOT(AND(C2="Red",C3="Blue")) || result is FALSE if cell C2 contains the text string "Red" and C3 "Blue"
  • Numbers:
 =NOT(AND(1=1,2=2)) || result is FALSE as 1=1, 2=2 are indeed TRUE
  • Dates:
 =NOT(AND(2/1/2022>1/1/2022,"3-Jan-2022">"2-Jan-2022")) || result is FALSE for both serial number and text string dates
  • Boolean:
 =NOT(AND(TRUE,TRUE)) || result is FALSE
  • Boolean:
 =NOT(AND(TRUE,FALSE)) || result is TRUE

Caveats

  • The logical condition (logical) or references must return TRUE or FALSE.

Related Functions

  • AND() returns TRUE or FALSE statements based on testing multiple logical conditions.
  • OR() returns TRUE or FALSE statements if either logical condition is met.

Functions Category

 


Register (for free!) or Login to access bonus materials

About xlsnippets

Learn how to master functions, charts, pivot tables and more using Excel for Microsoft Office 365. Simple instructions and embedded spreadsheets help you practise the basics.

Latest Updates

26 March 2022
26 March 2022
26 March 2022
25 March 2022
22 March 2022

Coming soon

xlsnippets.com is currently in beta version. More functions and bonus content for registered users will be added weekly. Detailed training courses with additional downloadable resources are also on the horizon!