{"id":3008,"date":"2021-11-02T16:59:00","date_gmt":"2021-11-02T15:59:00","guid":{"rendered":"https:\/\/www.sheetgo.com\/?p=3008"},"modified":"2021-11-02T16:59:00","modified_gmt":"2021-11-02T15:59:00","slug":"nao-formula-google-sheets","status":"publish","type":"post","link":"https:\/\/www.sheetgo.com\/pt\/blog\/google-sheets-formulas\/not-formula-google-sheets\/","title":{"rendered":"Como usar a fun\u00e7\u00e3o NOT no Planilhas Google"},"content":{"rendered":"<p>[et_pb_section fb_built=&#8221;1&#8243; admin_label=&#8221;section&#8221; module_class=&#8221;sheetgo-post&#8221; _builder_version=&#8221;4.16&#8243; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;][et_pb_row admin_label=&#8221;row&#8221; _builder_version=&#8221;4.16&#8243; background_size=&#8221;initial&#8221; background_position=&#8221;top_left&#8221; background_repeat=&#8221;repeat&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;][et_pb_column type=&#8221;4_4&#8243; _builder_version=&#8221;4.16&#8243; custom_padding=&#8221;|||&#8221; global_colors_info=&#8221;{}&#8221; custom_padding__hover=&#8221;|||&#8221; theme_builder_area=&#8221;post_content&#8221;][et_pb_text _builder_version=&#8221;4.16&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<p>There are scenarios when using Google Sheets where we may need a tool to negate a logical value or expression. The <a href=\"https:\/\/support.google.com\/docs\/answer\/3093305?hl=en&#038;ref_topic=3105413\" target=\"_blank\" rel=\"noopener\">NOT function<\/a> does exactly that. It returns FALSE if the input argument evaluates to TRUE and returns TRUE if the input argument evaluates to FALSE.<\/p>\n<p>Usually, the NOT function is used in conjunction with other formulas such as IF, OR, or AND to build a comprehensive formula that can answer multiple conditions at the same time. This makes it a valuable formula to use in situations where you need to compare more than two conditions at once. For example, let\u2019s say we\u2019re calculating whether the sales team members are viable for a commission and bonus. We can use the NOT function to test whether they negate a certain income level or a certain number of accounts &#8211; if they provide a FALSE result for either one of the two, they can receive their commission. If they provide a FALSE result for both, they\u2019re entitled to the bonus too.<\/p>\n<p>Let\u2019s explore the NOT function further and how you can use it in Google Sheets.<\/p>\n<p>[\/et_pb_text][et_pb_text _builder_version=&#8221;4.16&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<h2>What is the NOT function?<\/h2>\n<p>The NOT function is quite a simple formula as there are only two possible variations.<\/p>\n<p>Either it takes a logical TRUE as input and returns a FALSE, or it consumes a logical FALSE for input and returns a TRUE.<\/p>\n<p>[\/et_pb_text][et_pb_image src=&#8221;https:\/\/static.sheetgo.com\/wp-content\/uploads\/2021\/11\/NOT-formula.png&#8221; alt=&#8221;NOT function 0&#8243; title_text=&#8221;NOT formula&#8221; align=&#8221;center&#8221; _builder_version=&#8221;4.16&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;][\/et_pb_image][et_pb_text _builder_version=&#8221;4.16&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<p>The formula also provides a response when we provide numbers as the input argument. It still returns a logical TRUE or FALSE regardless.<\/p>\n<p>A zero is converted to logical FALSE and a non-zero a logical TRUE.<\/p>\n<p>[\/et_pb_text][et_pb_image src=&#8221;https:\/\/static.sheetgo.com\/wp-content\/uploads\/2021\/11\/NOT-formula-\u2013-1.png&#8221; alt=&#8221;NOT function 1&#8243; title_text=&#8221;NOT formula \u2013 1&#8243; align=&#8221;center&#8221; _builder_version=&#8221;4.16&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;][\/et_pb_image][et_pb_text _builder_version=&#8221;4.16&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<h3>Syntax<\/h3>\n<p>The syntax for the NOT function is as follows:<\/p>\n<p>[\/et_pb_text][et_pb_text module_class=&#8221;spreadsheet-function&#8221; _builder_version=&#8221;4.16&#8243; border_width_left=&#8221;4px&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]=NOT(logical_expression)[\/et_pb_text][et_pb_text _builder_version=&#8221;4.16&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<ul>\n<li><b>logical_expression:<\/b> is an expression that evaluates to a logical TRUE or FALSE. This can be a direct expression or a reference to the cell that represents a logical expression<\/li>\n<p>[\/et_pb_text][et_pb_text _builder_version=&#8221;4.16&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<p><b>Please note:<\/b> When using the NOT function on its own, it will only accept one input argument. This is because there is no way of negating two or more logical values together. They must be separated by something else.<\/p>\n<p>[\/et_pb_text][et_pb_text _builder_version=&#8221;4.16&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<h3>How to use the NOT function in Google Sheets<\/h3>\n<h4>On its own<\/h4>\n<p>Although the NOT function may not be that helpful in most situations when used on its own, it\u2019s a good formula to use when determining a negative action.<\/p>\n<p>For example, let\u2019s say we\u2019ve added a promotion to a product but users must have had an account for more than 1 year to be eligible. We can negate users with accounts less than a year old by obtaining a logical FALSE result with the following formula:<\/p>\n<p><b>=NOT(B2<12)<\/b><\/p>\n<p>[\/et_pb_text][et_pb_image src=&#8221;https:\/\/static.sheetgo.com\/wp-content\/uploads\/2021\/11\/NOT-formula-\u2013-2.png&#8221; alt=&#8221;NOT function 2&#8243; title_text=&#8221;NOT formula \u2013 2&#8243; align=&#8221;center&#8221; _builder_version=&#8221;4.16&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;][\/et_pb_image][et_pb_text _builder_version=&#8221;4.16&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<p>As you can see, those who have had an account for more than 12 months are eligible for the promotion!<\/p>\n<p>[\/et_pb_text][et_pb_text _builder_version=&#8221;4.16&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<h4>In conjunction with other formulas<\/h4>\n<p>The NOT function can also be used in conjunction with other formulas, such as OR, AND or IF. This allows us to compare multiple conditions at the same time in just one formula. If you\u2019re not familiar with these other formulas, take a look at our other articles on spreadsheet functions such as How to use the <a href=\"https:\/\/www.sheetgo.com\/blog\/excel-functions\/nested-if-function-excel\/\" target=\"_blank\" rel=\"noopener\">nested IF statement<\/a>.<\/p>\n<p>Let\u2019s take the example mentioned earlier and create a formula using the AND, OR, IF and NOT functions at the same time. If a salesperson exceeds the sales goal OR the account goal, they receive a commission. If a salesperson exceeds the sales goal AND the account goal, they get the bonus. The NOT function can be used to actually calculate the answers themselves, rather than just providing either a TRUE or FALSE return.<\/p>\n<p>Firstly let\u2019s determine which of the sales team members are eligible for commission using a formula containing IF,OR and NOT.<\/p>\n<p>[\/et_pb_text][et_pb_image src=&#8221;https:\/\/static.sheetgo.com\/wp-content\/uploads\/2021\/11\/NOT-formula-\u2013-3.png&#8221; alt=&#8221;NOT function 3&#8243; title_text=&#8221;NOT formula \u2013 3&#8243; align=&#8221;center&#8221; _builder_version=&#8221;4.16&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;][\/et_pb_image][et_pb_text _builder_version=&#8221;4.16&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<p>To determine which salespeople receives a commission, I must use the following formula:<\/p>\n<p><b>=IF(OR(NOT(B11<$B$2),NOT(C11<$B$5)),B11*$B$3,0)<\/b><\/p>\n<p>[\/et_pb_text][et_pb_text _builder_version=&#8221;4.16&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<ul>\n<li>If a salesperson has more than $12,500 in sales, they receive a 1.5% commission<\/li>\n<li>OR, if a salesperson has more than 10 accounts, they receive a 1.5% commission<\/li>\n<li>If they have neither, the value returns as 0.<\/li>\n<\/ul>\n<p>[\/et_pb_text][et_pb_text _builder_version=&#8221;4.16&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<p>Here are the results:<\/p>\n<p>[\/et_pb_text][et_pb_image src=&#8221;https:\/\/static.sheetgo.com\/wp-content\/uploads\/2021\/11\/NOT-formula-\u2013-4.png&#8221; alt=&#8221;NOT function 4&#8243; title_text=&#8221;NOT formula \u2013 4&#8243; align=&#8221;center&#8221; _builder_version=&#8221;4.16&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;][\/et_pb_image][et_pb_text _builder_version=&#8221;4.16&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]As you can see, the salespeople that have either exceeded the sales goal or the accounts goal have received their commission.<\/p>\n<p>Now let\u2019s determine which salespeople can receive a bonus. To do this, we need to incorporate the AND formula:<\/p>\n<p><strong>=IF(AND(NOT(B11<$B$2),NOT(C11< B5)),B6,0)<\/strong><\/p>\n<p>[\/et_pb_text][et_pb_text _builder_version=&#8221;4.16&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<ul>\n<li>If a salesperson has more than $12,500 in sales AND they have more than 10 accounts, they receive the $750 bonus<\/li>\n<li>If they do not fulfill both, the value returns as 0.<\/li>\n<\/ul>\n<p>[\/et_pb_text][et_pb_text _builder_version=&#8221;4.16&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<p>Here are the results:<\/p>\n<p>[\/et_pb_text][et_pb_image src=&#8221;https:\/\/static.sheetgo.com\/wp-content\/uploads\/2021\/11\/NOT-formula-\u2013-5.png&#8221; alt=&#8221;NOT function 5&#8243; title_text=&#8221;NOT formula \u2013 5&#8243; align=&#8221;center&#8221; _builder_version=&#8221;4.16&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;][\/et_pb_image][et_pb_text _builder_version=&#8221;4.16&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<p>As you can see here, only those who have both exceeded the sales AND account goals will receive their bonus.<\/p>\n<p>[\/et_pb_text][et_pb_text _builder_version=&#8221;4.16&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<h3>NOT function in Google Sheets<\/h3>\n<p>And there you have it! The NOT function can be extremely helpful in negating logical values or expressions, especially when combined with other spreadsheet formulas.<\/p>\n<p>If you would like to learn more about different <a href=\"https:\/\/www.sheetgo.com\/blog\/google-sheets-formulas\/\">formulas and functions in Google Sheets<\/a> and also in Excel, take a look at our related blog posts below!<\/p>\n<p>[\/et_pb_text][et_pb_text _builder_version=&#8221;4.4.8&#8243; background_color=&#8221;#f9f9ff&#8221; custom_padding=&#8221;15px|25px|15px|25px|true|true&#8221; border_width_left=&#8221;3px&#8221; border_color_left=&#8221;#808e95&#8243; global_module=&#8221;26540&#8243; saved_tabs=&#8221;all&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<p style=\"font-size: 0.9em; padding-bottom: 0px;\"><em style=\"color: #808e95; \"><strong>Editor\u2019s note<\/strong>: This is a revised version of a previous post that has been updated for accuracy and comprehensiveness.<\/em><\/p>\n<p>\n[\/et_pb_text][\/et_pb_column][\/et_pb_row][\/et_pb_section]<\/p>\n","protected":false},"excerpt":{"rendered":"<p>There are scenarios when using Google Sheets where we may need a tool to negate a logical value or expression. The NOT function does exactly that. It returns FALSE if the input argument evaluates to TRUE and returns TRUE if the input argument evaluates to FALSE. Usually, the NOT function is used in conjunction with [&hellip;]<\/p>\n","protected":false},"author":41,"featured_media":37736,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"_et_pb_use_builder":"on","_et_pb_old_content":"At times in Google Sheets we may need a tool to negate a logical value or expression. The <a href=\"https:\/\/support.google.com\/docs\/answer\/3093305?hl=en&ref_topic=3105413\">NOT<\/a> formula does exactly that. It returns FALSE if the input argument evaluates to TRUE and returns TRUE if the input argument evaluates to FALSE.\n<h3>Syntax<\/h3>\n<span style=\"font-family: courier new,courier,monospace; font-size: 14pt;\"><strong>NOT(logical_expression)<\/strong><\/span>\n\n<span style=\"font-family: courier new,courier,monospace; font-size: 12pt;\"><strong>logical_expression<\/strong><\/span> - is an expression that evaluates to a logical TRUE or FALSE. This can be a direct expression, or a reference to the cell that represents a logical expression\n\nPlease note that the NOT formula accepts only one input argument, and rightly so. Because, there is no logical way of negating two or more logical values together.\n<h3>Usage: NOT Formula<\/h3>\nBy and large, there are only two possible variations of the NOT formula. Either it takes in a logical TRUE as input and returns a FALSE, or it consumes a logical FALSE for input and returns a TRUE.\n\n<img class=\"aligncenter size-full wp-image-3009\" src=\"https:\/\/static.sheetgo.com\/wp-content\/uploads\/2017\/11\/not1.png\" alt=\"NOT Formula - Illustration 1\" width=\"263\" height=\"124\" \/>\n\nIt is interesting to note that the NOT formula works even when we provide numbers as the input arguments. What happens when the Google Sheets application encounters a number when it is expecting a logical TRUE or FALSE? It simply converts them to a logical TRUE or FALSE. A zero is converted to FALSE and a non-zero to TRUE. Doesn't really matter if the numbers contain decimals. Please see the examples in the snapshot below.\n\n<img class=\"aligncenter size-full wp-image-3010\" src=\"https:\/\/static.sheetgo.com\/wp-content\/uploads\/2017\/11\/not2.png\" alt=\"NOT Formula - Illustration 2\" width=\"261\" height=\"124\" \/>\n\nIt can not only take singular logical values as input arguments, but it also accepts logical expressions as shown in the snapshot below.\n\n<img class=\"aligncenter size-full wp-image-3011\" src=\"https:\/\/static.sheetgo.com\/wp-content\/uploads\/2017\/11\/not3.png\" alt=\"NOT Formula - Illustration 3\" width=\"343\" height=\"184\" \/>\n\nWhile it is hard to deny the utility of the NOT formula in the real world, probably it has a limited application as a standalone formula. However, it can get very handy if we use it in conjunction with other formulas like OR, AND and IF etc. Please consider the examples in the following snapshot - using NOT formula will flip the output of the IF formula as it is inverting the logical value.\n\n<img class=\"aligncenter size-full wp-image-3012\" src=\"https:\/\/static.sheetgo.com\/wp-content\/uploads\/2017\/11\/not4.png\" alt=\"NOT Formula - Illustration 4\" width=\"513\" height=\"195\" \/>","_et_gb_content_width":"","footnotes":""},"categories":[54],"tags":[39,28],"class_list":["post-3008","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-google-sheets-formulas","tag-connections-t","tag-spreadsheets"],"acf":[],"_links":{"self":[{"href":"https:\/\/www.sheetgo.com\/pt\/wp-json\/wp\/v2\/posts\/3008","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.sheetgo.com\/pt\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.sheetgo.com\/pt\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.sheetgo.com\/pt\/wp-json\/wp\/v2\/users\/41"}],"replies":[{"embeddable":true,"href":"https:\/\/www.sheetgo.com\/pt\/wp-json\/wp\/v2\/comments?post=3008"}],"version-history":[{"count":0,"href":"https:\/\/www.sheetgo.com\/pt\/wp-json\/wp\/v2\/posts\/3008\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.sheetgo.com\/pt\/wp-json\/wp\/v2\/media\/37736"}],"wp:attachment":[{"href":"https:\/\/www.sheetgo.com\/pt\/wp-json\/wp\/v2\/media?parent=3008"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.sheetgo.com\/pt\/wp-json\/wp\/v2\/categories?post=3008"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.sheetgo.com\/pt\/wp-json\/wp\/v2\/tags?post=3008"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}