{"id":237,"date":"2014-09-24T00:50:51","date_gmt":"2014-09-23T22:50:51","guid":{"rendered":"https:\/\/www.myexcelonline.com\/?p=237"},"modified":"2024-06-03T03:55:40","modified_gmt":"2024-06-03T01:55:40","slug":"if-function-combined-with-the-and-function","status":"publish","type":"post","link":"https:\/\/www.myexcelonline.com\/meo-staging\/blog\/if-function-combined-with-the-and-function\/","title":{"rendered":"IF Function Combined With The AND Function"},"content":{"rendered":"<p><em><strong>What does it do? <\/strong><\/em><\/p>\n<p>It returns a value that you set if a condition is met, and a value if it is not met<\/p>\n<p><em><strong>Formula breakdown: <\/strong><\/em><\/p>\n<p>=IF(AND(<span style=\"color: #0000ff;\">Logical Test<\/span>),<span style=\"color: #ff6600;\">Value if True<\/span>,<span style=\"color: #008000;\">Value if False<\/span>)<\/p>\n<p><em><strong>What it means: <\/strong><\/em><\/p>\n<p>=IF((<span style=\"color: #0000ff;\">Sales are bigger than $3000 &amp; in the North region<\/span>),<span style=\"color: #ff6600;\">&#8220;Bonus&#8221;<\/span>,<span style=\"color: #008000;\">&#8220;No Bonus&#8221;<\/span>)<\/p>\n<hr \/>\n<p>When combining (or nesting) the AND function with the <strong><a title=\"IF Function: Introduction\" href=\"https:\/\/www.myexcelonline.com\/meo-staging\/if-function-introduction\/\" target=\"_blank\" rel=\"noopener noreferrer\">IF function<\/a><\/strong>, it allows you to add more than one condition to your formula, something that is not possible with the IF function by itself.<\/p>\n<p>So you can show the results of Sales Reps that have made more than $3,000 of sales AND who are part of the North region, as explained below&#8230;<\/p>\n<div class=\"after-post-box\">\n<p class=\"line-two\"><a class=\"IRPP_minimalist icon-download button small\" href=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2014\/09\/If_And.xlsx\" target=\"_blank\" rel=\"noopener noreferrer\" data-leadbox=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2014\/09\/If_And.xlsx\" data-leadbox-id=\"147284833f72a2:12f08263ab46dc\"><span class=\"ctaText px-3 text-capitalize\">Download excel workbook<i class=\"fa fa-download\"><\/i><\/span><span class=\"postTitle px-3\">If_And.xlsx<\/span><\/a><\/p>\n<\/div>\n<p>We want to show a Bonus value if sales are bigger than $3000 and comes from the North region, and No Bonus is shown if this condition is not met.<\/p>\n<p><span style=\"color: #ff0000;\"><strong>STEP 1:<\/strong><\/span> We need to enter the<strong> IF function<\/strong> in a blank cell:<br \/>\n<code><span style=\"color: #0000ff;\">=IF(<\/span><\/code><br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-9907\" title=\"IF Function Combined With The AND Function\" src=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2014\/09\/If-And1.png\" alt=\"IF Function Combined With The AND Function\" width=\"821\" height=\"406\" srcset=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2014\/09\/If-And1.png 821w, https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2014\/09\/If-And1-300x148.png 300w, https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2014\/09\/If-And1-768x380.png 768w\" sizes=\"(max-width: 821px) 100vw, 821px\" \/><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"color: #ff0000;\"><strong>STEP 2:<\/strong><\/span> The <strong>IF<\/strong> arguments:<\/p>\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_57_1 counter-flat ez-toc-counter ez-toc-transparent ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\">\n<p class=\"ez-toc-title \" >Table of Contents<\/p>\n<span class=\"ez-toc-title-toggle\"><\/span><\/div>\n<nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li><a href=\"#\" class=\"scroll-to-download\">Free Practice Workbook<\/a><\/li><li class='ez-toc-page-1'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/www.myexcelonline.com\/meo-staging\/blog\/if-function-combined-with-the-and-function\/#Logical_test\" title=\"Logical_test\">Logical_test<\/a><\/li><li class='ez-toc-page-1'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/www.myexcelonline.com\/meo-staging\/blog\/if-function-combined-with-the-and-function\/#Value_if_true\" title=\"Value_if_true\">Value_if_true<\/a><\/li><li class='ez-toc-page-1'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/www.myexcelonline.com\/meo-staging\/blog\/if-function-combined-with-the-and-function\/#Value_if_false\" title=\"Value_if_false\">Value_if_false<\/a><\/li><\/ul><\/nav><\/div>\n<h2><span class=\"ez-toc-section\" id=\"Logical_test\"><\/span><em>Logical_test<\/em><span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p><strong>What is your condition? <\/strong><\/p>\n<p>Sales Rep has sold <strong>more than 3000 dollars<\/strong> and comes from the <strong>North Region<\/strong>. Let us use the <strong>AND function<\/strong> to accomplish this.<br \/>\n<code>=IF(<span style=\"color: #0000ff;\">AND(D15&gt;3000, C15=\"North\"),<\/span><\/code><br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-9908\" title=\"IF Function Combined With The AND Function\" src=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2014\/09\/If-And2.png\" alt=\"IF Function Combined With The AND Function\" width=\"614\" height=\"287\" srcset=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2014\/09\/If-And2.png 614w, https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2014\/09\/If-And2-300x140.png 300w\" sizes=\"(max-width: 614px) 100vw, 614px\" \/><\/p>\n<h2><span class=\"ez-toc-section\" id=\"Value_if_true\"><\/span><em>Value_if_true<\/em><span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p><strong>What value should be displayed if the condition is true?<\/strong><\/p>\n<p>We want &#8220;Bonus&#8221; to be displayed<br \/>\n<code>=IF(AND(D15&gt;3000, C15=\"North\"), <span style=\"color: #0000ff;\">\"Bonus\",<\/span><\/code><br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-9909\" title=\"IF Function Combined With The AND Function\" src=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2014\/09\/If-And3.png\" alt=\"IF Function Combined With The AND Function\" width=\"609\" height=\"283\" srcset=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2014\/09\/If-And3.png 609w, https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2014\/09\/If-And3-300x139.png 300w\" sizes=\"(max-width: 609px) 100vw, 609px\" \/><\/p>\n<h2><span class=\"ez-toc-section\" id=\"Value_if_false\"><\/span><em>Value_if_false<\/em><span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p><strong>What value should be displayed if the condition is not met?<\/strong><\/p>\n<p>We want &#8220;No Bonus&#8221; to be displayed<br \/>\n<code>=IF(AND(D15&gt;3000, C15=\"North\"), \"Bonus\", <span style=\"color: #0000ff;\">\"No Bonus\")<\/span><\/code><br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-9910\" title=\"IF Function Combined With The AND Function\" src=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2014\/09\/If-And4.png\" alt=\"IF Function Combined With The AND Function\" width=\"634\" height=\"283\" srcset=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2014\/09\/If-And4.png 634w, https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2014\/09\/If-And4-300x134.png 300w\" sizes=\"(max-width: 634px) 100vw, 634px\" \/><\/p>\n<p>Apply the same formula to the rest of the cells by dragging the lower right corner downwards.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-9911\" title=\"IF Function Combined With The AND Function\" src=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2014\/09\/If-And5b.png\" alt=\"IF Function Combined With The AND Function\" width=\"470\" height=\"298\" srcset=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2014\/09\/If-And5b.png 470w, https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2014\/09\/If-And5b-300x190.png 300w\" sizes=\"(max-width: 470px) 100vw, 470px\" \/><\/p>\n<p>You now have all of results!<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-9912\" title=\"IF Function Combined With The AND Function\" src=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2014\/09\/If-And6.png\" alt=\"IF Function Combined With The AND Function\" width=\"484\" height=\"300\" srcset=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2014\/09\/If-And6.png 484w, https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2014\/09\/If-And6-300x186.png 300w\" sizes=\"(max-width: 484px) 100vw, 484px\" \/><\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>What does it do? It returns a value that you set if a condition is met, and a value if it is not met Formula breakdown: =IF(AND(Logical Test),Value if True,Value if False) What it means: =IF((Sales are bigger than $3000 &amp; in the North region),&#8220;Bonus&#8221;,&#8220;No Bonus&#8221;) When combining (or nesting) the AND function with the [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":17379,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"cos_headline_score":0,"cos_seo_score":0,"cos_headline_text":"IF Function Combined With The AND Function","cos_headline_has_been_analyzed":false,"cos_last_analyzed_headline":[],"om_disable_all_campaigns":false},"categories":[12,511,3,283],"tags":[48,43,47],"acf":[],"_links":{"self":[{"href":"https:\/\/www.myexcelonline.com\/meo-staging\/wp-json\/wp\/v2\/posts\/237"}],"collection":[{"href":"https:\/\/www.myexcelonline.com\/meo-staging\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.myexcelonline.com\/meo-staging\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.myexcelonline.com\/meo-staging\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.myexcelonline.com\/meo-staging\/wp-json\/wp\/v2\/comments?post=237"}],"version-history":[{"count":0,"href":"https:\/\/www.myexcelonline.com\/meo-staging\/wp-json\/wp\/v2\/posts\/237\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.myexcelonline.com\/meo-staging\/wp-json\/wp\/v2\/media\/17379"}],"wp:attachment":[{"href":"https:\/\/www.myexcelonline.com\/meo-staging\/wp-json\/wp\/v2\/media?parent=237"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.myexcelonline.com\/meo-staging\/wp-json\/wp\/v2\/categories?post=237"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.myexcelonline.com\/meo-staging\/wp-json\/wp\/v2\/tags?post=237"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}