{"id":1900,"date":"2018-03-25T09:02:24","date_gmt":"2018-03-25T03:02:24","guid":{"rendered":"http:\/\/xlfxs.com\/?p=1282"},"modified":"2018-03-25T09:02:24","modified_gmt":"2018-03-25T03:02:24","slug":"ifs-and-ifna-to-avoid-nested-ifs","status":"publish","type":"post","link":"https:\/\/xlfxs.com\/?p=1900","title":{"rendered":"IFS (and IFNA) to avoid nested IFs"},"content":{"rendered":"<p>I tend to see more and more the usage of nested IF functions recently<\/p>\n<p>Now, do not get me wrong, IF is great, but come on, are you going to use it for more than 2 conditions? seriously?<\/p>\n<p>Excel 2013 comes with IFS, the perfect alternative to nested IFs<\/p>\n<p>As you can see, takes up to 127 conditions, neat, right?<\/p>\n<p><!--more--><\/p>\n<p><a href=\"http:\/\/xlfxs.com\/wp-content\/uploads\/2018\/03\/Screenshot_1-e1521946756404.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-1286 \" src=\"http:\/\/xlfxs.com\/wp-content\/uploads\/2018\/03\/Screenshot_1-e1521946756404-300x290.jpg\" alt=\"\" width=\"382\" height=\"369\" \/><\/a><\/p>\n<p>As you can see, it basically goes as &#8230;<\/p>\n<p>If condition1 from <em><strong>Logical_test1<\/strong><\/em> is true, then display value from <em><strong>Value_if_true1<\/strong><\/em><\/p>\n<p>If not&#8230;<\/p>\n<p>Then if condition from <em><strong>Logical_test2<\/strong><\/em> is true, then display value from <em><strong>Value_if_true2<\/strong><\/em><\/p>\n<p>if not&#8230;<\/p>\n<p>Then if condition from <em><strong>Logical_test3<\/strong><\/em> is true, then display value from <em><strong>Value_if_true3<\/strong><\/em><\/p>\n<p>and so on, until last condition.<\/p>\n<p>Please, make use of that if you know your spreadsheet will not be used in Excel 2010, which I understand is still in the market.<\/p>\n<p>Anyways, screenshots here are from my cell phone while i was playing with IFS<\/p>\n<p>Oh, and of course, if you want to catch the condition of none of these are true, just use IFNA, or you can use IF(ISERROR( too.<\/p>\n<p>give it a shot!<\/p>\n<div id='gallery-1' class='gallery galleryid-1900 gallery-columns-3 gallery-size-thumbnail'><figure class='gallery-item'>\n\t\t\t<div class='gallery-icon portrait'>\n\t\t\t\t<a href='https:\/\/xlfxs.com\/wp-content\/uploads\/2018\/03\/2018-03-22-02.29.56-4.png'><img loading=\"lazy\" decoding=\"async\" width=\"150\" height=\"150\" src=\"https:\/\/xlfxs.com\/wp-content\/uploads\/2018\/03\/2018-03-22-02.29.56-4-150x150.png\" class=\"attachment-thumbnail size-thumbnail\" alt=\"\" \/><\/a>\n\t\t\t<\/div><\/figure><figure class='gallery-item'>\n\t\t\t<div class='gallery-icon portrait'>\n\t\t\t\t<a href='https:\/\/xlfxs.com\/wp-content\/uploads\/2018\/03\/2018-03-22-02.29.55-2-2.png'><img loading=\"lazy\" decoding=\"async\" width=\"150\" height=\"150\" src=\"https:\/\/xlfxs.com\/wp-content\/uploads\/2018\/03\/2018-03-22-02.29.55-2-2-150x150.png\" class=\"attachment-thumbnail size-thumbnail\" alt=\"\" \/><\/a>\n\t\t\t<\/div><\/figure><figure class='gallery-item'>\n\t\t\t<div class='gallery-icon portrait'>\n\t\t\t\t<a href='https:\/\/xlfxs.com\/wp-content\/uploads\/2018\/03\/Capture_2018-03-20-17-43-52-2.png'><img loading=\"lazy\" decoding=\"async\" width=\"150\" height=\"150\" src=\"https:\/\/xlfxs.com\/wp-content\/uploads\/2018\/03\/Capture_2018-03-20-17-43-52-2-150x150.png\" class=\"attachment-thumbnail size-thumbnail\" alt=\"\" \/><\/a>\n\t\t\t<\/div><\/figure><figure class='gallery-item'>\n\t\t\t<div class='gallery-icon portrait'>\n\t\t\t\t<a href='https:\/\/xlfxs.com\/wp-content\/uploads\/2018\/03\/Capture_2018-03-20-17-39-40-2.png'><img loading=\"lazy\" decoding=\"async\" width=\"150\" height=\"150\" src=\"https:\/\/xlfxs.com\/wp-content\/uploads\/2018\/03\/Capture_2018-03-20-17-39-40-2-150x150.png\" class=\"attachment-thumbnail size-thumbnail\" alt=\"\" \/><\/a>\n\t\t\t<\/div><\/figure><figure class='gallery-item'>\n\t\t\t<div class='gallery-icon landscape'>\n\t\t\t\t<a href='https:\/\/xlfxs.com\/wp-content\/uploads\/2018\/03\/2018-03-22-02.29.55-1-e1521948040494-2.png'><img loading=\"lazy\" decoding=\"async\" width=\"150\" height=\"150\" src=\"https:\/\/xlfxs.com\/wp-content\/uploads\/2018\/03\/2018-03-22-02.29.55-1-e1521948040494-2-150x150.png\" class=\"attachment-thumbnail size-thumbnail\" alt=\"\" \/><\/a>\n\t\t\t<\/div><\/figure><figure class='gallery-item'>\n\t\t\t<div class='gallery-icon portrait'>\n\t\t\t\t<a href='https:\/\/xlfxs.com\/wp-content\/uploads\/2018\/03\/2018-03-22-02.29.56-1-2.png'><img loading=\"lazy\" decoding=\"async\" width=\"150\" height=\"150\" src=\"https:\/\/xlfxs.com\/wp-content\/uploads\/2018\/03\/2018-03-22-02.29.56-1-2-150x150.png\" class=\"attachment-thumbnail size-thumbnail\" alt=\"\" \/><\/a>\n\t\t\t<\/div><\/figure>\n\t\t<\/div>\n\n<p>&nbsp;<\/p>\n<div class=\"row\">\n<div class=\"col-lg-6 col-md-6 col-sm-6 text-right\"><a class=\"btn btn-primary btn-lg\" href=\"http:\/\/xlfxs.com\/wp-content\/uploads\/2018\/03\/Multiple-If-the-formula-IFS.xlsx\"><i class=\"fa fa-download\"><\/i> Download spreadsheet<\/a><\/div>\n<div class=\"col-lg-6 col-md-6 col-sm-6\"><a class=\"btn btn-primary btn-lg\" href=\"https:\/\/1drv.ms\/x\/s!An4iomsT7EVO180kDFnb1hMPi7qnTQ\" target=\"_blank\" rel=\"noopener\"><i class=\"fa fa-cloud\"><\/i> Excel Online version<\/a><\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>I tend to see more and more the usage of nested IF functions recently Now, do not get me wrong, IF is great, but come on, are you going to use it for more than 2 conditions? seriously? Excel 2013 comes with IFS, the perfect alternative to nested IFs As you can see, takes up&#8230;<\/p>\n<p class=\"more-link-wrap\"><a href=\"https:\/\/xlfxs.com\/?p=1900\" class=\"more-link\">Read More<span class=\"screen-reader-text\"> &ldquo;IFS (and IFNA) to avoid nested IFs&rdquo;<\/span> &raquo;<\/a><\/p>\n","protected":false},"author":1,"featured_media":1281,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3,82,83,35,6],"tags":[],"class_list":["post-1900","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-formulas","category-ifna","category-ifs","category-logical","category-standard_functions"],"_links":{"self":[{"href":"https:\/\/xlfxs.com\/index.php?rest_route=\/wp\/v2\/posts\/1900","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/xlfxs.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/xlfxs.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/xlfxs.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/xlfxs.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1900"}],"version-history":[{"count":0,"href":"https:\/\/xlfxs.com\/index.php?rest_route=\/wp\/v2\/posts\/1900\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/xlfxs.com\/index.php?rest_route=\/wp\/v2\/media\/1281"}],"wp:attachment":[{"href":"https:\/\/xlfxs.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1900"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/xlfxs.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1900"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/xlfxs.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1900"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}