Used within another function to provide the opposite of a logical expression
Sample Usage
IF(NOT(Status1 = "Complete"), "Task Not Complete", "Task Complete")
Syntax
NOT(
-
logical_expression
-
logical_expression—An expression that evaluates to either true or false (boolean)
Examples
This example references the following sheet information:
Clothing Item | Transaction Total | 存货吗? | 销售日期 | |
---|---|---|---|---|
1 | t恤 | 1,170.00 | true | 02/12/19 |
2 | Pants | 1,491.00 | false | 02/15/19 |
3 | Jacket | 812.00 | true | 02/20/19 |
Given the table above, here are some examples of using NOT in a sheet:
Formula | Description | Result |
---|---|---|
如果在获得Stoc(不是([=k?]1 = true), "Out Of Stock", "In Stock") | Returns the stringOut Of Stockif the value in row 1 of theIn Stockcolumn doesnotequaltrue. Otherwise, the function returns the stringIn Stock. | In Stock |
=COUNTIF([Clothing Item]:[Clothing Item], NOT(@cell = "Jacket")) | Counts values that aren't equal to the stringJacketin theClothing Itemcolumn. 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 stringSale did not occur this yearif the year in row 3 of the销售日期column isn't equal to the current year. (In this example, the current year is 2019.) Otherwise, the function returns the stringSale occurred this year. | Sale occurred this year |
Still need help?
Use theFormula Handbook templateto find more support resources, and view 100+ formulas, including 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.