{"id":12604,"date":"2022-01-03T22:37:19","date_gmt":"2022-01-04T04:37:19","guid":{"rendered":"http:\/\/www.designandexecute.com\/designs\/?p=12604"},"modified":"2022-01-03T22:47:09","modified_gmt":"2022-01-04T04:47:09","slug":"nested-if-or-statements-in-excel","status":"publish","type":"post","link":"https:\/\/www.designandexecute.com\/designs\/nested-if-or-statements-in-excel\/","title":{"rendered":"Nested IF OR statements in Excel"},"content":{"rendered":"<h3 id=\"IF-with-multiple-OR-conditions\">IF with multiple OR conditions<\/h3>\n<p>=IF(OR(A2=&#8221;&#8221;,B2=&#8221;&#8221;, C2=&#8221;&#8221;),&#8221;Incomplete&#8221;,&#8221;&#8221;)<\/p>\n<h3 id=\"Nested-IF-OR-statements\">Nested IF OR statements<\/h3>\n<p>You want to test a few sets of OR criteria and return different values depending on the results of those test criteria, write an individual IF formula for each set of &#8220;this OR that&#8221; criteria, and nest those IF&#8217;s into each other.<\/p>\n<p><strong>Simple example<\/strong><\/p>\n<p>=IF(OR(A2=&#8221;apple&#8221;, A2=&#8221;orange&#8221;), &#8220;Fruit&#8221;, IF(OR(A2=&#8221;tomato&#8221;, A2=&#8221;cucumber&#8221;), &#8220;Vegetable&#8221;, &#8220;&#8221;))<\/p>\n<p><strong>Building on a more realistic case<\/strong><\/p>\n<p>Example you want to conform all version countries to USA and Trinidad &amp; Tobago<\/p>\n<p>=IF(OR(W3=&#8221;United States&#8221;,W3=&#8221;U.S.A&#8221;), &#8220;USA&#8221;, IF(OR(W3=&#8221;Trinidad&#8221;,W3=&#8221;Trinidad, W.I.&#8221;, W3=&#8221;Trinidad, WI&#8221;, W3=&#8221;Trinidad, West Indies&#8221;, W3=&#8221;Trinidad, W.I.&#8221;, W3=&#8221;Trinidad, WI&#8221;, W3=&#8221;Trinidad WI&#8221;, W3=&#8221;Trinidad, WI&#8221;, W3=&#8221;Trinidad and Tobago W.I.&#8221;, W3=&#8221;Trinidad &amp; Tobago&#8221;), &#8220;Trinidad &amp; Tobago&#8221;, W3))<\/p>\n<h3 id=\"IF-AND-OR-formula\">IF AND OR statement<\/h3>\n<p>example: You want buy MSFT or ABML if they are above $10<\/p>\n<p>=IF(AND(OR(A2=&#8221;MSFT&#8221;,A2=&#8221;ABML&#8221;), B2&gt;10), &#8220;Buy&#8221;, &#8220;&#8221;)<\/p>\n<h3 id=\"Case-sensitive-IF-OR-formula\">Case-sensitive IF OR formula<\/h3>\n<p>IF(OR(EXACT(<em>cell,<\/em>&#8220;<em>condition1<\/em>&#8220;), EXACT(<em>cell,<\/em>&#8220;<em>condition2<\/em>&#8220;)), value_if_true, value_if_false)<\/p>\n","protected":false},"excerpt":{"rendered":"<p>IF with multiple OR conditions =IF(OR(A2=&#8221;&#8221;,B2=&#8221;&#8221;, C2=&#8221;&#8221;),&#8221;Incomplete&#8221;,&#8221;&#8221;) Nested IF OR statements You want to test a few sets of OR criteria and return different values depending on the results of those test criteria, write an individual IF formula for each set of &#8220;this OR that&#8221; criteria, and nest those IF&#8217;s into each other. Simple example [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":3831,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[43],"tags":[],"class_list":["post-12604","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-bi-excel"],"jetpack_featured_media_url":"https:\/\/www.designandexecute.com\/designs\/wp-content\/uploads\/2018\/04\/1200px-Microsoft_Excel_2013_logo.svg_.png","_links":{"self":[{"href":"https:\/\/www.designandexecute.com\/designs\/wp-json\/wp\/v2\/posts\/12604","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.designandexecute.com\/designs\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.designandexecute.com\/designs\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.designandexecute.com\/designs\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.designandexecute.com\/designs\/wp-json\/wp\/v2\/comments?post=12604"}],"version-history":[{"count":4,"href":"https:\/\/www.designandexecute.com\/designs\/wp-json\/wp\/v2\/posts\/12604\/revisions"}],"predecessor-version":[{"id":12608,"href":"https:\/\/www.designandexecute.com\/designs\/wp-json\/wp\/v2\/posts\/12604\/revisions\/12608"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.designandexecute.com\/designs\/wp-json\/wp\/v2\/media\/3831"}],"wp:attachment":[{"href":"https:\/\/www.designandexecute.com\/designs\/wp-json\/wp\/v2\/media?parent=12604"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.designandexecute.com\/designs\/wp-json\/wp\/v2\/categories?post=12604"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.designandexecute.com\/designs\/wp-json\/wp\/v2\/tags?post=12604"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}