NOT Function

Used within another function to provide the opposite of a logical expression

Syntax

NOT(logical_expression)
  • logical_expression
    An expression that evaluates to either true or false (boolean)

Sample usage

IF(NOT(Status1 = "Complete"), "Task Not Complete", "Task Complete")

Examples

This example references the following sheet information:

 Clothing ItemTransaction TotalIn Stock?Sold Date
1T-Shirt1,170.00true02/12/23
2Pants1,491.00false02/15/23
3Jacket812.00true02/20/23

Based on the table above, here are some examples of using NOT in a sheet:

FormulaDescriptionResult
=IF(NOT([In Stock?]1 = true), "Out Of Stock", "In Stock")Returns the string Out Of Stock if the value in row 1 of the In Stock column doesn't equal true. Otherwise, the function returns the string In Stock.In Stock
=COUNTIF([Clothing Item]:[Clothing Item], NOT(@cell = "Jacket"))Counts values that aren't equal to the string Jacket in the Clothing Item column. Rows 1 and 2 apply.2
=IF(NOT(YEAR(TODAY())= YEAR([Sold Date]3)), "Sale did not occur this year", "Sale occurred this year")Returns the string Sale did not occur this year if the year in row 3 of the Sold Date column isn't equal to the current year. (In this example, the current year is 2023.) Otherwise, the function returns the string Sale occurred this year.Sale occurred this year

Still need help?

Use the Formula Handbook template to find more support, resources, view 100+ formulas, a glossary of every function that you can practice working with in real time, and examples of commonly used and advanced formulas.

Find examples of how other Smartsheet customers use this function or ask about your specific use case in the Smartsheet online Community.

Ask the Community