{"id":3165,"date":"2020-12-03T12:04:01","date_gmt":"2020-12-03T11:04:01","guid":{"rendered":"https:\/\/www.sheetgo.com\/?p=3165"},"modified":"2020-12-03T12:04:01","modified_gmt":"2020-12-03T11:04:01","slug":"formula-ifs-google-sheets","status":"publish","type":"post","link":"https:\/\/www.sheetgo.com\/es\/blog\/google-sheets-formulas\/ifs-formula-google-sheets\/","title":{"rendered":"C\u00f3mo utilizar la funci\u00f3n IFS en Google Sheets"},"content":{"rendered":"\n[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 _builder_version=&#8221;4.24.1&#8243; _module_preset=&#8221;default&#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.24.1&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;][et_pb_text _builder_version=&#8221;4.24.1&#8243; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<p><span style=\"font-weight: 400;\">The IF function in Google Sheets enables logical decision making with a simple if-else structure. It checks whether a condition in a cell is true or false. IFS supercharges this function and lets you check against multiple conditions at once.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">You could achieve the same result by nesting IF functions but it can result in a very long formula. And this can be difficult to work with and lead to errors in your spreadsheet.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">This is where IFS comes in handy. This formula takes a set of expression and value pairs, evaluates them, and returns the first value of an expression that\u2019s TRUE.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">This works exactly the same as the Excel IFS function, so if that\u2019s your preferred software you can still follow along.<\/span><\/p>\n<p><span style=\"font-weight: 400;\"><\/span><\/p>\n<p><span style=\"font-weight: 400;\"><\/span><\/p>[\/et_pb_text][et_pb_text admin_label=&#8221;Connections T &#8211; Automate beyond importrange &#8211; Horizontal&#8221; module_class=&#8221;sheetgo-post-no-shadow-img md2-contained-button-light vertical-banner-container&#8221; _builder_version=&#8221;4.27.2&#8243; _module_preset=&#8221;default&#8221; background_color=&#8221;#f2f7ff&#8221; max_width=&#8221;700px&#8221; module_alignment=&#8221;center&#8221; max_height=&#8221;300px&#8221; custom_margin=&#8221;20px|0px|20px|0px|true|true&#8221; custom_padding=&#8221;25px|25px|25px|25px|true|true&#8221; sticky_limit_bottom=&#8221;section&#8221; border_radii=&#8221;on|20px|20px|20px|20px&#8221; border_width_all=&#8221;1px&#8221; border_color_all=&#8221;#d9e7ff&#8221; saved_tabs=&#8221;all&#8221; global_colors_info=&#8221;{}&#8221; global_module=&#8221;50462&#8243; theme_builder_area=&#8221;post_content&#8221;]<img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/static.sheetgo.com\/wp-content\/uploads\/2024\/09\/Add-on-sm_sheets-connected-new-connection.webp\" width=\"250\" height=\"168\" alt=\"\" \/>\n\n<img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/static.sheetgo.com\/wp-content\/uploads\/2024\/09\/Recommended-for-Google-Workspace-badge.webp\" width=\"150\" height=\"180\" alt=\"39\" \/>\n\n<span style=\"font-size: 22px; font-weight: 600;\">Automate data transfers beyond Importrange<\/span>\n\n<a href=\"https:\/\/www.sheetgo.com\/connections\/\" target=\"_blank\" rel=\"noopener\">Find out how<\/a>[\/et_pb_text][\/et_pb_column][\/et_pb_row][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;]<h3>Syntax<\/h3>[\/et_pb_text][et_pb_text module_class=&#8221;spreadsheet-function&#8221; _builder_version=&#8221;4.24.1&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<p><span style=\"font-weight: 400;\">=IFS(expression1, value1, [expression2, value2], \u2026)<\/span><\/p>[\/et_pb_text][et_pb_text _builder_version=&#8221;4.24.1&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<ul>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><b>expression1<\/b><span style=\"font-weight: 400;\"> \u2013 the first logical expression to be evaluated as TRUE or FALSE.<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><b>value1<\/b><span style=\"font-weight: 400;\"> \u2013 the value to be returned if <\/span><b>expression1<\/b><span style=\"font-weight: 400;\"> is TRUE<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><b>expression2<\/b><span style=\"font-weight: 400;\"> \u2013 the next logical expression to be evaluated as TRUE or FALSE only if <\/span><b>expression1<\/b><span style=\"font-weight: 400;\"> evaluates as FALSE<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><b>value2<\/b><span style=\"font-weight: 400;\"> \u2013 the value to be returned if <\/span><b>expression2<\/b><span style=\"font-weight: 400;\"> is TRUE<\/span><\/li>\n<\/ul>\n<p><span style=\"font-weight: 400;\">Only the first expression and value pair is mandatory, while subsequent pairs are optional. Also, the result of the function will depend on the first TRUE expression and all subsequent expressions will be overlooked.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">The flowchart below illustrates the logic of the IFS function.<\/span><\/p>[\/et_pb_text][et_pb_image src=&#8221;https:\/\/static.sheetgo.com\/wp-content\/uploads\/2022\/05\/IFS-formula-flow-chart-1.png&#8221; alt=&#8221;IFS formula flow chart&#8221; title_text=&#8221;IFS formula flow chart&#8221; align=&#8221;center&#8221; module_class=&#8221;sheetgo-post-no-shadow-img&#8221; _builder_version=&#8221;4.23.1&#8243; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;][\/et_pb_image][et_pb_text _builder_version=&#8221;4.24.1&#8243; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<ul><\/ul>\n<h3>How to use the IFS function<\/h3>\n<p><span style=\"font-weight: 400;\">Let&#8217;s start with the simplest form of the function to make it easy to understand.<\/span><\/p>[\/et_pb_text][et_pb_text module_class=&#8221;spreadsheet-function&#8221; _builder_version=&#8221;4.24.1&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<p><span style=\"font-weight: 400;\">=IFS(<\/span><span style=\"font-weight: 400;\">A2<\/span><span style=\"font-weight: 400;\">&gt;<\/span><span style=\"font-weight: 400;\">100<\/span><span style=\"font-weight: 400;\">, <\/span><span style=\"font-weight: 400;\">A2<\/span><span style=\"font-weight: 400;\"> &amp; <\/span><span style=\"font-weight: 400;\">&#8221; is greater than 100&#8243;<\/span><span style=\"font-weight: 400;\">, <\/span><span style=\"font-weight: 400;\">A2<\/span><span style=\"font-weight: 400;\">&lt;<\/span><span style=\"font-weight: 400;\">100<\/span><span style=\"font-weight: 400;\">, <\/span><span style=\"font-weight: 400;\">A2<\/span><span style=\"font-weight: 400;\"> &amp; <\/span><span style=\"font-weight: 400;\">&#8221; is less than 100&#8243;<\/span><span style=\"font-weight: 400;\">)<\/span><\/p>[\/et_pb_text][et_pb_text _builder_version=&#8221;4.24.1&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<p><span style=\"font-weight: 400;\">The function evaluates the numbers 50 and 150 and returns whether they are less than or greater than 100.<\/span><\/p>[\/et_pb_text][et_pb_image src=&#8221;https:\/\/static.sheetgo.com\/wp-content\/uploads\/2021\/05\/IFS-FUNCTION-GOOGLE-SHEETS-1.png&#8221; alt=&#8221;IFS FUNCTION GOOGLE SHEETS 1&#8243; title_text=&#8221;IFS FUNCTION GOOGLE SHEETS 1&#8243; align=&#8221;center&#8221; module_class=&#8221;sheetgo-post-no-shadow-img&#8221; _builder_version=&#8221;4.16&#8243; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;][\/et_pb_image][et_pb_text _builder_version=&#8221;4.24.1&#8243; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<p><span style=\"font-weight: 400;\">First, the function evaluates the first expression (50&gt;100) which is obviously FALSE. So it moves on to the next expression (50&lt;100) which is TRUE. Therefore it returns the value \u201c50 is less than 100\u201d.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">In row 3, it is doing the same thing, but the value is now 150. So when the function evaluates the first expression, it finds 150&gt;100 to be TRUE. It then outputs the value \u201c150 is greater than 100\u201d, and does not evaluate the second expression.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">What happens if all the expressions in the IFS function evaluate to FALSE? Let\u2019s take a look at this scenario with a different example. I have used the IFS function to create a formula for age in Google Sheets.<\/span><\/p>[\/et_pb_text][et_pb_text module_class=&#8221;spreadsheet-function&#8221; _builder_version=&#8221;4.24.1&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<p><span style=\"font-weight: 400;\">=IFS(B2&lt;10, &#8220;Kid&#8221;, B2&lt;20, &#8220;Adolescent&#8221;, B2&lt;30, &#8220;Young adult&#8221;, B2&lt;60, &#8220;Middle aged&#8221;)<\/span><\/p>[\/et_pb_text][et_pb_image src=&#8221;https:\/\/static.sheetgo.com\/wp-content\/uploads\/2021\/05\/IFS-FUNCTION-GOOGLE-SHEETS-2.png&#8221; alt=&#8221;IFS FUNCTION GOOGLE SHEETS 2&#8243; title_text=&#8221;IFS FUNCTION GOOGLE SHEETS 2&#8243; align=&#8221;center&#8221; module_class=&#8221;sheetgo-post-no-shadow-img&#8221; _builder_version=&#8221;4.16&#8243; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;][\/et_pb_image][et_pb_text _builder_version=&#8221;4.24.1&#8243; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<p><span style=\"font-weight: 400;\">The spreadsheet goes through each expression one by one and evaluates it to be TRUE or FALSE. If an expression is TRUE, it will output the value associated with that expression; if it is FALSE, the function moves on to the next expression.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">As you can observe, the age group for ages beyond 60 is not defined. And f<\/span><span style=\"font-weight: 400;\">or Elliot, aged 65, Google Sheets has evaluated all the expressions as FALSE and has no value to return. Hence you see the #N\/A! error.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">To avoid the error, you can add an expression that will evaluate as TRUE for Elliot.<\/span><\/p>[\/et_pb_text][et_pb_image src=&#8221;https:\/\/static.sheetgo.com\/wp-content\/uploads\/2022\/11\/IFS-edit.png&#8221; alt=&#8221;IFS-FUNCTION-GOOGLE-SHEETS-3&#8243; title_text=&#8221;IFS edit&#8221; align=&#8221;center&#8221; module_class=&#8221;sheetgo-post-no-shadow-img&#8221; _builder_version=&#8221;4.17.4&#8243; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;][\/et_pb_image][et_pb_text _builder_version=&#8221;4.24.1&#8243; custom_padding=&#8221;1px|||||&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<p><span style=\"font-weight: 400;\">Here, I\u2019ve added a \u201cSenior citizen\u201d category that applies to Elliot. As you can see, the #N\/A! error has been resolved.<\/span><\/p>\n<p><span style=\"font-weight: 400;\"><\/span><\/p>\n<p><span style=\"font-weight: 400;\"><\/span><\/p>\n<p><span style=\"font-weight: 400;\"><\/span><\/p>[\/et_pb_text][et_pb_text admin_label=&#8221;Connections T &#8211; One tool &#8211; Horizontal&#8221; module_class=&#8221;sheetgo-post-no-shadow-img md2-contained-button vertical-banner-container&#8221; _builder_version=&#8221;4.27.2&#8243; _module_preset=&#8221;default&#8221; background_color=&#8221;#f2f7ff&#8221; max_width=&#8221;700px&#8221; module_alignment=&#8221;center&#8221; max_height=&#8221;300px&#8221; custom_margin=&#8221;20px|0px|20px|0px|true|true&#8221; custom_padding=&#8221;25px|25px|25px|25px|true|true&#8221; sticky_limit_bottom=&#8221;section&#8221; border_radii=&#8221;on|20px|20px|20px|20px&#8221; border_width_all=&#8221;1px&#8221; border_color_all=&#8221;#d9e7ff&#8221; global_colors_info=&#8221;{}&#8221; global_module=&#8221;50458&#8243; theme_builder_area=&#8221;post_content&#8221;]<img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/static.sheetgo.com\/wp-content\/uploads\/2024\/09\/connections-top-processors-main.webp\" width=\"250\" height=\"168\" alt=\"\" \/>\n\n<img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/static.sheetgo.com\/wp-content\/uploads\/2024\/09\/Recommended-for-Google-Workspace-badge.webp\" width=\"150\" height=\"180\" alt=\"39\" \/>\n\n<span style=\"font-size: 22px; font-weight: 600;\">One tool to merge, split, and filter all your spreadsheet data<\/span>\n\n<a href=\"https:\/\/www.sheetgo.com\/connections\/\" target=\"_blank\" rel=\"noopener\">Find out how<\/a>[\/et_pb_text][et_pb_text _builder_version=&#8221;4.24.1&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<h4><b><\/b><\/h4>\n<h4><b><\/b><\/h4>\n<h4><b>Comparison with nested IFS<\/b><\/h4>\n<p><span style=\"font-weight: 400;\">In the image below, there\u2019s another column where the last function is built using nested IFS. This still works, but you can see the function is longer and involves more brackets making it confusing. This only gets worse if this is part of a larger formula.<\/span><\/p>[\/et_pb_text][et_pb_text module_class=&#8221;spreadsheet-function&#8221; _builder_version=&#8221;4.24.1&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<p><span style=\"font-weight: 400;\">=IF(B2&lt;10, &#8220;Kid&#8221;, IF(B2&lt;20, &#8220;Adolescent&#8221;, IF(B2&lt;30, &#8220;Young adult&#8221;, IF(B2&lt;60, &#8220;Middle aged&#8221;,\u00a0 IF(B2&gt;=65, &#8220;Senior citizen&#8221;, &#8220;Adult&#8221;)))))<\/span><\/p>[\/et_pb_text][et_pb_text _builder_version=&#8221;4.24.1&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<p><span style=\"font-weight: 400;\">So, needless to say, the IFS function is a great alternative to otherwise complex nested IF statements.<\/span><\/p>[\/et_pb_text][et_pb_image src=&#8221;https:\/\/static.sheetgo.com\/wp-content\/uploads\/2021\/05\/IFS-FUNCTION-GOOGLE-SHEETS-4.png&#8221; alt=&#8221;IFS FUNCTION GOOGLE SHEETS 4&#8243; title_text=&#8221;IFS FUNCTION GOOGLE SHEETS 4&#8243; module_class=&#8221;sheetgo-post-no-shadow-img&#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.24.1&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<p><span style=\"font-weight: 400;\">Let\u2019s look at another application of the IFS function that follows the same logic.<\/span><\/p>[\/et_pb_text][et_pb_image src=&#8221;https:\/\/static.sheetgo.com\/wp-content\/uploads\/2021\/05\/IFS-FUNCTION-GOOGLE-SHEETS-5.png&#8221; alt=&#8221;IFS FUNCTION GOOGLE SHEETS 5&#8243; title_text=&#8221;IFS FUNCTION GOOGLE SHEETS 5&#8243; module_class=&#8221;sheetgo-post-no-shadow-img&#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.24.1&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<p><span style=\"font-weight: 400;\">This formula assigns students a letter grade based on a test score. The table on the right shows how letter grades correspond to test scores. While in the left table you can see the IFS function was used to assign the grades based on these ranges.<\/span><\/p>[\/et_pb_text][et_pb_text module_class=&#8221;spreadsheet-function&#8221; _builder_version=&#8221;4.24.1&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<p><b>=IFS(C3&lt;50, $G$7, C3&lt;65, $G$6, C3&lt;75, $G$5, C3&lt;85, $G$4, C3&gt;84, $G$3)<\/b><\/p>[\/et_pb_text][et_pb_text _builder_version=&#8221;4.24.1&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<h4>Thanks for reading!<\/h4>\n<p><span style=\"font-weight: 400;\">That\u2019s how to get started with the IFS function. If you like this post, please share it with your network via the social media buttons on the left.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">If you\u2019re looking for more Google Sheets tips and tricks, check out our post on how to use the <\/span><a href=\"https:\/\/www.sheetgo.com\/blog\/google-sheets-formulas\/averageifs-formula-google-sheets\/\"><span style=\"font-weight: 400;\">AVERAGEIFS function <\/span><\/a><span style=\"font-weight: 400;\">and <\/span><a href=\"https:\/\/www.sheetgo.com\/blog\/google-sheets-formulas\/averageif-formula-google-sheets\/\"><span style=\"font-weight: 400;\">AVERAGEIF function<\/span><\/a><span style=\"font-weight: 400;\"> or our other articles below.<\/span><\/p>[\/et_pb_text][et_pb_text _builder_version=&#8221;4.22.2&#8243; background_color=&#8221;#f9f9ff&#8221; custom_margin=&#8221;40px||40px||false|false&#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><em><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[\/et_pb_text][\/et_pb_column][\/et_pb_row][\/et_pb_section]\n","protected":false},"excerpt":{"rendered":"<p>The IF function in Google Sheets enables logical decision making with a simple if-else structure. It checks whether a condition in a cell is true or false. IFS supercharges this function and lets you check against multiple conditions at once. You could achieve the same result by nesting IF functions but it can result in [&hellip;]<\/p>\n","protected":false},"author":40,"featured_media":27673,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"_et_pb_use_builder":"on","_et_pb_old_content":"<p>The <a href=\"https:\/\/www.sheetgo.com\/if-formula-google-sheets\/\">IF<\/a> formula in Google Sheets helps us make a decision using a simple if-then-else construct. But, what if we need to go over multiple sets of criteria? Nesting IF formulas, you might think. Not wrong! Fortunately, we have a less cumbersome function to deal with that - the IFS formula. This takes in a set of expression and value pairs, evaluates them in sequence, and returns the first value whose corresponding expression is TRUE. If no expression evaluates to TRUE, it returns #N\/A! error. The following flow chart explains the process.<\/p>\n<p><img class=\"aligncenter wp-image-3172\" src=\"https:\/\/static.sheetgo.com\/wp-content\/uploads\/2017\/03\/IFS-Formula-Illustration-1.png\" alt=\"IFS Formula - Illustration 1\" width=\"768\" height=\"384\" \/><\/p>\n<h3>Syntax<\/h3>\n<p><strong><span style=\"font-family: courier new,courier,monospace; font-size: 14pt;\">IFS(expression1, value1, [expression2, value2], ...)<\/span><\/strong><\/p>\n<ul>\n<li><strong><span style=\"font-family: courier new,courier,monospace; font-size: 12pt;\">expression1<\/span><\/strong> - the first logical expression which Google Sheets evaluates to either TRUE or FALSE<\/li>\n<li><span style=\"font-family: courier new,courier,monospace; font-size: 12pt;\"><strong>value1<\/strong><\/span> - the value that IFS formula returns if the corresponding <span style=\"font-family: courier new,courier,monospace; font-size: 12pt;\"><strong>expression1<\/strong><\/span> evaluates to TRUE<\/li>\n<li><span style=\"font-family: courier new,courier,monospace; font-size: 12pt;\"><strong>expression2<\/strong><\/span> - the next logical expression that evaluates to either TRUE or FALSE if the <span style=\"font-family: courier new,courier,monospace; font-size: 12pt;\"><strong>expression1<\/strong><\/span> evaluates to FALSE<\/li>\n<li><span style=\"font-family: courier new,courier,monospace; font-size: 12pt;\"><strong>value2<\/strong><\/span> - the value to return if <span style=\"font-family: courier new,courier,monospace; font-size: 12pt;\"><strong>expression2<\/strong><\/span> evaluates to TRUE<\/li>\n<\/ul>\n<p>Please note that only the first expression and value pair is mandatory. The subsequent pairs are optional. Also, it is noteworthy that neither the Google Sheets shows any contextual help for IFS formula, nor there is any available documentation. Nevertheless, it works just fine as described in this article.<\/p>\n<h3>Usage: IFS formula<\/h3>\n<p>Let us start with the fundamental version of the formula, and understand its working.<\/p>\n<p><img class=\"aligncenter size-full wp-image-3175\" src=\"https:\/\/static.sheetgo.com\/wp-content\/uploads\/2017\/11\/ifs1.png\" alt=\"IFS Formula - Illustration 2\" width=\"568\" height=\"117\" \/><\/p>\n<p>The formula starts evaluating the first expression, in this case, 1&gt;100, which is obviously FALSE. So, it moves on to the next expression, 1&lt;100, which is TRUE. Hence it returns the value \"1 is less than 100\". What happens, if all the expressions in the IFS formula evaluate to FALSE? Let's see. <img class=\"aligncenter size-full wp-image-3176\" src=\"https:\/\/static.sheetgo.com\/wp-content\/uploads\/2017\/11\/ifs2.png\" alt=\"IFS Formula - Illustration 3\" width=\"753\" height=\"261\" \/><\/p>\n<p>As we can observe, the age group for ages beyond 60 is not defined. And since Google Sheets has evaluated all the expressions to FALSE, it has no value to return. Hence we see the #N\/A! error. It has no placeholder for a default value, but we can work around it by including an additional expression at the end and hard coding it to TRUE. This example is shown in the snapshot below.<\/p>\n<p><img class=\"aligncenter size-full wp-image-3177\" src=\"https:\/\/static.sheetgo.com\/wp-content\/uploads\/2017\/11\/ifs3.png\" alt=\"IFS Formula - Illustration 4\" width=\"958\" height=\"245\" \/><\/p>\n<p>If we were to execute the above-mentioned logic using only IF formulas, that would entail creating 5th level nested IF statements, which can get really long and complex. So, needless to say, the IFS formula is a great alternative to the otherwise complex nested IF statements.\u00a0<\/p>\n<p>Check our blog post \"<strong><a href=\"https:\/\/www.sheetgo.com\/blog\/google-sheets-formulas\/averageifs-formula-google-sheets\/\">How to use the AVERAGEIFS formula in Google Sheets<\/a><\/strong>\" to learn about other relevant formulas.\u00a0<\/p>\n\n<!-- wp:paragraph -->\n<p><\/p>\n<!-- \/wp:paragraph -->","_et_gb_content_width":"","footnotes":""},"categories":[54],"tags":[55,39,28],"class_list":["post-3165","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-google-sheets-formulas","tag-ben-collins","tag-connections-t","tag-spreadsheets"],"acf":[],"_links":{"self":[{"href":"https:\/\/www.sheetgo.com\/es\/wp-json\/wp\/v2\/posts\/3165","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.sheetgo.com\/es\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.sheetgo.com\/es\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.sheetgo.com\/es\/wp-json\/wp\/v2\/users\/40"}],"replies":[{"embeddable":true,"href":"https:\/\/www.sheetgo.com\/es\/wp-json\/wp\/v2\/comments?post=3165"}],"version-history":[{"count":0,"href":"https:\/\/www.sheetgo.com\/es\/wp-json\/wp\/v2\/posts\/3165\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.sheetgo.com\/es\/wp-json\/wp\/v2\/media\/27673"}],"wp:attachment":[{"href":"https:\/\/www.sheetgo.com\/es\/wp-json\/wp\/v2\/media?parent=3165"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.sheetgo.com\/es\/wp-json\/wp\/v2\/categories?post=3165"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.sheetgo.com\/es\/wp-json\/wp\/v2\/tags?post=3165"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}