{"id":3066,"date":"2020-12-04T11:27:11","date_gmt":"2020-12-04T10:27:11","guid":{"rendered":"https:\/\/www.sheetgo.com\/?p=3066"},"modified":"2026-10-09T15:26:48","modified_gmt":"2026-10-09T13:26:48","slug":"formula-iferror-do-google-sheets","status":"publish","type":"post","link":"https:\/\/www.sheetgo.com\/pt\/blog\/google-sheets-formulas\/iferror-formula-google-sheets\/","title":{"rendered":"Como usar a fun\u00e7\u00e3o IFERROR no Google Sheets (com exemplos)"},"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; da_disable_devices=&#8221;off|off|off&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221; da_is_popup=&#8221;off&#8221; da_exit_intent=&#8221;off&#8221; da_has_close=&#8221;on&#8221; da_alt_close=&#8221;off&#8221; da_dark_close=&#8221;off&#8221; da_not_modal=&#8221;on&#8221; da_is_singular=&#8221;off&#8221; da_with_loader=&#8221;off&#8221; da_has_shadow=&#8221;on&#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.24.1&#8243; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<p>Instead of displaying ugly error messages, <b>IFERROR enables you to clean up your spreadsheet <\/b>and replace errors with other values. This could be a blank cell, a number, or a relevant message that you and your team can understand.<\/p>\n<p>Google Sheets is extremely user-friendly and reliable but if you use it regularly, <b>you will eventually run into an error<\/b>. This can happen for a variety of reasons, which we\u2019ll explore in this article.<\/p>\n<p><b>Google Sheets error handling is a fundamental concept<\/b> when creating spreadsheets. And the IFERROR formula is the best tool for the job.<\/p>\n<p>[\/et_pb_text][et_pb_text module_id=&#8221;common&#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>\n<h2>Common errors in Google Sheets<\/h2>\n<p>These errors show up whenever a formula breaks. Understanding them is the first step in choosing whether to fix them or to hide them with IFERROR.<\/p>\n<h3><strong>The #VALUE! error<\/strong><\/h3>\n<p>This is probably the most frequent type of error in Google Sheets. It occurs when you use an incorrect data type for the expected input arguments, as illustrated below.<\/p>\n<p>[\/et_pb_text][et_pb_image src=&#8221;https:\/\/static.sheetgo.com\/wp-content\/uploads\/2021\/05\/IFERROR-GOOGLE-SHEETS-1.png&#8221; alt=&#8221;Google Sheets #VALUE! error \u2014 =A2*B2 and an IF formula return #VALUE! because Operand B holds text&#8221; title_text=&#8221;=A2*B2 and an IF formula return #VALUE! because Operand B holds text&#8221; 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>\n<h3>#REF! error<\/h3>\n<p>Usually, this shows up when you intentionally or accidentally delete rows, columns, or sheets that are referenced in other cells.<\/p>\n<p>If I remove the <b>Operand A<\/b> column from the previous example, a #REF! error pops up as shown below.<\/p>\n<p>Notice that the #REF! error even appears inside the formula, indicating that it lost a reference in that placeholder. Learn more about this particular issue in <a href=\"https:\/\/www.sheetgo.com\/blog\/spreadsheets-tips\/ref-error-spreadsheets\/\">How to solve the #REF! Error in spreadsheets<\/a>.<\/p>\n<p>[\/et_pb_text][et_pb_image src=&#8221;https:\/\/static.sheetgo.com\/wp-content\/uploads\/2021\/05\/IFERROR-GOOGLE-SHEETS-2.png&#8221; alt=&#8221;Google Sheets #REF! error \u2014 the formulas show #REF! after the Operand A column was deleted&#8221; title_text=&#8221;The formulas show #REF! after the Operand A column was deleted&#8221; 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>\n<h3>#NAME? error<\/h3>\n<p>Google Sheets generates this error when it comes across a function that it doesn\u2019t recognize.<\/p>\n<p>To demonstrate that further, I\u2019ll try using WHATIF (which is not an actual function) instead of IF.<\/p>\n<p>[\/et_pb_text][et_pb_image src=&#8221;https:\/\/static.sheetgo.com\/wp-content\/uploads\/2021\/05\/IFERROR-GOOGLE-SHEETS-3.png&#8221; alt=&#8221;Google Sheets #NAME? error \u2014 a formula that calls WHATIF, which is not a function, returns #NAME?&#8221; title_text=&#8221;A formula that calls WHATIF, which is not a function, returns #NAME?&#8221; 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>\n<h3>#NUM! error<\/h3>\n<p>When the expected input arguments do not match with what you provide, the num error might show up. Take a look at the first example in the snapshot below.<\/p>\n<p>A negative number is not expected in the SQRT function, hence the error.<\/p>\n<p>This error can also appear when the number to display is out of range, as seen in the second example where the result is too large for the spreadsheet to compute.<\/p>\n<p>[\/et_pb_text][et_pb_image src=&#8221;https:\/\/static.sheetgo.com\/wp-content\/uploads\/2021\/05\/IFERROR-GOOGLE-SHEETS-4.png&#8221; alt=&#8221;Google Sheets #NUM! error \u2014 =sqrt(A2) of -25 and =POWER(A3,5555) both return #NUM!&#8221; title_text=&#8221;=sqrt(A2) of -25 and =POWER(A3,5555) both return #NUM!&#8221; 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>\n<h3>#N\/A error<\/h3>\n<p>This is another common error usually associated with lookup functions when they cannot find a match for the value they are asked to find.<\/p>\n<p>[\/et_pb_text][et_pb_image src=&#8221;https:\/\/static.sheetgo.com\/wp-content\/uploads\/2021\/05\/IFERROR-GOOGLE-SHEETS-5.png&#8221; alt=&#8221;Google Sheets #N\/A error \u2014 VLOOKUP did not find the value Stephen in the Name column&#8221; title_text=&#8221;VLOOKUP did not find the value Stephen in the Name column&#8221; 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.22.2&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<h3>#DIV\/0! error<\/h3>\n<p>You get this error when a formula divides by zero or by an empty cell. It often shows up when you copy a division formula down a column and some rows have no data yet.<\/p>\n<p>[\/et_pb_text][et_pb_text _builder_version=&#8221;4.22.2&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<h3>#ERROR! error<\/h3>\n<p>Google Sheets shows #ERROR! when it can&#8217;t parse a formula, usually because of a typo such as a missing comma, an extra parenthesis, or an unclosed quote. IFERROR can&#8217;t hide it, because the whole formula fails to parse, IFERROR included. You have to fix the formula itself. Learn how in <a href=\"https:\/\/www.sheetgo.com\/blog\/google-sheets-formulas\/how-to-solve-formula-parse-errors-in-google-sheets\/\">How to solve formula parse errors in Google Sheets<\/a>.<\/p>\n<p>[\/et_pb_text][et_pb_text module_id=&#8221;how&#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>\n<h2>How IFERROR works<\/h2>\n<h3>Handle Google Sheets errors with the IFERROR function<\/h3>\n<p>If you are using a function and it keeps returning errors, you can \u201cwrap\u201d the formula with IFERROR. This will give you a cleaner spreadsheet with data that\u2019s easier to read.<\/p>\n<p>It can be used with many common functions including <a href=\"https:\/\/www.sheetgo.com\/blog\/google-sheets-formulas\/query-formula-google-sheets\/\">Query<\/a> and <a href=\"https:\/\/www.sheetgo.com\/blog\/google-sheets-formulas\/vlookup-formula-google-sheets\/\">Vlookup<\/a>.<\/p>\n<p>IFERROR works by scanning a formula\u2019s output for errors. If it finds one, it replaces it with any value you specify. This function is usually used to hide errors following the logic \u201cif error return blank\u201d. If the formula has no error, it simply returns the intended output.<\/p>\n<h3>IFERROR syntax<\/h3>\n<p>[\/et_pb_text][et_pb_text module_class=&#8221;spreadsheet-function&#8221; _builder_version=&#8221;4.24.1&#8243; border_width_left=&#8221;4px&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<p>=IFERROR(value, [value_if_error])<\/p>\n<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>\n<ul>\n<li><strong>value<\/strong> \u2013 this is the argument that the function checks for errors. This can be any cell reference or a formula.<\/li>\n<li><strong>value_if_error<\/strong> \u2013 this is the value the function returns if there is an error. It can be a number, word, or a text string such as &#8220;Item sold out&#8221;. This is an optional parameter so if you don&#8217;t specify anything, the IFERROR function will return a blank cell when it encounters an error.<\/li>\n<\/ul>\n<p>[\/et_pb_text][et_pb_text module_id=&#8221;how_to&#8221; _builder_version=&#8221;4.24.1&#8243; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<h2><strong>How to use IFERROR<\/strong><\/h2>\n<h3>How to get rid of n\/a<\/h3>\n<p>In the first example below, you can see the effect of adding IFERROR to the beginning of the function.<\/p>\n<p>I\u2019m working with the #N\/A error that I showed previously. As you\u2019ll recall, this appears when a lookup function can\u2019t find the input it\u2019s searching for.<\/p>\n<p>Here, I\u2019ve added the IFERROR function before the VLOOKUP.<\/p>\n<p>If there is no error, the IFERROR function simply outputs the VLOOKUP output that it would normally generate.<\/p>\n<p>If there is an error, however, instead of simply displaying an error message, I ask it to display the text \u201cinvalid input\u201d. This enables you to avoid ugly and unexplained error messages in your spreadsheet.<\/p>\n<p>In the example below, I\u2019ve done this with the following formula:<\/p>\n<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>\n<p><strong>=Iferror(Vlookup(&#8220;Stephen&#8221;,A2:B8,2,False),&#8221;Invalid input&#8221;)<\/strong>.<\/p>\n<p>[\/et_pb_text][et_pb_image src=&#8221;https:\/\/static.sheetgo.com\/wp-content\/uploads\/2021\/05\/IFERROR-GOOGLE-SHEETS-6.png&#8221; alt=&#8221;IFERROR Google Sheets \u2014 IFERROR around VLOOKUP returns Invalid input instead of #N\/A&#8221; title_text=&#8221;IFERROR around VLOOKUP returns Invalid input instead of #N\/A&#8221; 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>\n<h3>How to get rid of div\/0<span id=\"docs-internal-guid-abd25059-7fff-768c-0093-d4635137aaac\"><\/span><\/h3>\n<p>In the following example, we\u2019ll see how to make #div\/0 show as blank.<\/p>\n<p>As you might have guessed, this occurs when you divide a number by 0.<\/p>\n<p>This is quite common when you have a function that you drag down to apply to a group of cells, and some of the cells are missing data or contain zeros.<\/p>\n<p>[\/et_pb_text][et_pb_image src=&#8221;https:\/\/static.sheetgo.com\/wp-content\/uploads\/2021\/05\/IFERROR-GOOGLE-SHEETS-7.png&#8221; alt=&#8221;Google Sheets #DIV\/0! error \u2014 =C6\/B6 returns #DIV\/0! for a sales quantity of 0&#8243; title_text=&#8221;=C6\/B6 returns #DIV\/0! for a sales quantity of 0&#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>\n<p>Now, I\u2019ll modify the formula to include the IFERROR function.<\/p>\n<p>As you can see below, this gets rid of the error message.<\/p>\n<p>By adding IFERROR to the front of the formula, it simply returns a blank cell.<\/p>\n<p>To show 0 instead of a blank, add 0 as the second argument, for example =IFERROR(A2\/B2, 0).<\/p>\n<p>[\/et_pb_text][et_pb_image src=&#8221;https:\/\/static.sheetgo.com\/wp-content\/uploads\/2021\/05\/IFERROR-GOOGLE-SHEETS-8.png&#8221; alt=&#8221;IFERROR Google Sheets \u2014 =IFERROR(C6\/B6) leaves the revenue per sale cell blank&#8221; title_text=&#8221;=IFERROR(C6\/B6) leaves the revenue per sale cell blank&#8221; 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>\n<h3>Can you use IFERROR with arrays?<\/h3>\n<p><b>Yes, you can use IFERROR with arrays <\/b>by using the <a href=\"https:\/\/www.sheetgo.com\/blog\/google-sheets-formulas\/arrayformula-google-sheets\/\">array formula function<\/a>. Wrap IFERROR inside ARRAYFORMULA, as in the formula below. It divides each value in column A by the value in the same row of column B and leaves a blank wherever the division fails.<\/p>\n<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>\n<p>=ARRAYFORMULA(IFERROR(A2:A\/B2:B, &#8220;&#8221;))<\/p>\n<p>[\/et_pb_text][et_pb_text module_id=&#8221;nest-iferror-to-try-a-second-lookup&#8221; _builder_version=&#8221;4.22.2&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<h2>Nest IFERROR to try a second lookup<\/h2>\n<p>Follow the steps below to nest multiple IFERROR functions to try different options if the value you want isn\u2019t found. For example, if you\u2019re unsure whether you have a first or last name, you can check both columns in turn.<\/p>\n<p><strong>1.<\/strong> Type the IFERROR function and add your lookup function to find the search key in the \u2018last_name\u2019 column. Close the parenthesis and add a comma.<\/p>\n<p>[\/et_pb_text][et_pb_image src=&#8221;https:\/\/static.sheetgo.com\/wp-content\/uploads\/2026\/10\/iferror-google-sheets-first-iferror-lookup.webp&#8221; alt=&#8221;IFERROR Google Sheets \u2014 first IFERROR wrapping a VLOOKUP on the last_name column&#8221; title_text=&#8221;First IFERROR wrapping a VLOOKUP on the last_name column&#8221; align=&#8221;center&#8221; _builder_version=&#8221;4.22.2&#8243; _module_preset=&#8221;default&#8221; width=&#8221;100%&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;][\/et_pb_image][et_pb_text _builder_version=&#8221;4.22.2&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<p><strong>2.<\/strong> For the second parameter, add another IFERROR function followed by the lookup function. In this case, you want to look for the search key in the \u2018first_name\u2019 column. Close the parenthesis and add another comma.<\/p>\n<p>[\/et_pb_text][et_pb_image src=&#8221;https:\/\/static.sheetgo.com\/wp-content\/uploads\/2026\/10\/iferror-google-sheets-second-iferror-lookup.webp&#8221; alt=&#8221;IFERROR Google Sheets \u2014 second IFERROR with a VLOOKUP on the first_name column&#8221; title_text=&#8221;Second IFERROR with a VLOOKUP on the first_name column&#8221; align=&#8221;center&#8221; _builder_version=&#8221;4.22.2&#8243; _module_preset=&#8221;default&#8221; width=&#8221;100%&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;][\/et_pb_image][et_pb_text _builder_version=&#8221;4.22.2&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<p><strong>3.<\/strong> Finally, add the message you want to return if neither lookup is successful.<\/p>\n<p>[\/et_pb_text][et_pb_image src=&#8221;https:\/\/static.sheetgo.com\/wp-content\/uploads\/2026\/10\/iferror-google-sheets-add-value-if-error-3.webp&#8221; alt=&#8221;IFERROR Google Sheets \u2014 nested formula ending with the No data found message&#8221; title_text=&#8221;Nested formula ending with the No data found message&#8221; align=&#8221;center&#8221; _builder_version=&#8221;4.22.2&#8243; _module_preset=&#8221;default&#8221; width=&#8221;100%&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;][\/et_pb_image][et_pb_text _builder_version=&#8221;4.22.2&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<p><strong>4.<\/strong> Close both parentheses and hit \u2018Enter\u2019 to see the result. Accept the Autofill suggestion or drag down the fill handle to copy the formula.<\/p>\n<p>[\/et_pb_text][et_pb_image src=&#8221;https:\/\/static.sheetgo.com\/wp-content\/uploads\/2026\/10\/iferror-google-sheets-nested-iferror-lookups-result.webp&#8221; alt=&#8221;Nested IFERROR in Google Sheets \u2014 amounts found by last or first name, No data found for Johnson&#8221; title_text=&#8221;Amounts found by last or first name, No data found for Johnson&#8221; align=&#8221;center&#8221; _builder_version=&#8221;4.22.2&#8243; _module_preset=&#8221;default&#8221; width=&#8221;100%&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;][\/et_pb_image][et_pb_text _builder_version=&#8221;4.22.2&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<p>Each IFERROR in the nested formula catches every error type. If #N\/A is the only error you expect, use IFNA instead: it replaces #N\/A and still shows other errors, such as a broken reference. This guide to <a href=\"https:\/\/www.sheetgo.com\/blog\/google-sheets-formulas\/ifna-in-google-sheets\/\">IFNA in Google Sheets<\/a> compares the two functions.<\/p>\n<p>[\/et_pb_text][et_pb_text module_id=&#8221;a&#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>\n<h2>A note about hiding errors<\/h2>\n<p>As you\u2019ve seen, the IFERROR function is great for masking error warnings and replacing them with clean, blank cells or a meaningful message or value.<\/p>\n<p>Be careful, however, with when and where you apply this function. <strong>Hiding all errors can make it difficult to troubleshoot<\/strong> a spreadsheet when the error is affecting functionality. For instance, it doesn\u2019t make sense to mask a #REF! error, because you need to know which cell reference is lost in order to fix the error and keep your spreadsheet working properly!<\/p>\n<h2>Did you like this post?<\/h2>\n<p>If you found this article helpful, please share it with your colleagues and fellow spreadsheet-users via the social media buttons on the left! For more Google Sheets tips, check out our other articles below.<\/p>\n<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; saved_tabs=&#8221;all&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<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<p>[\/et_pb_text][\/et_pb_column][\/et_pb_row][\/et_pb_section]<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Instead of displaying ugly error messages, IFERROR enables you to clean up your spreadsheet and replace errors with other values. This could be a blank cell, a number, or a relevant message that you and your team can understand. Google Sheets is extremely user-friendly and reliable but if you use it regularly, you will eventually [&hellip;]<\/p>\n","protected":false},"author":39,"featured_media":27679,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"_et_pb_use_builder":"on","_et_pb_old_content":"Google Sheets is built in such a way that the expressions return appropriate values in accordance with the given inputs. However, more often than not, we may encounter certain unpleasant errors. This happens due to one or more reasons as explained in this article. To handle such errors, we have the <a href=\"https:\/\/support.google.com\/docs\/answer\/3093304?hl=en\">IFERROR<\/a> formula.\n<h3>Errors? How do they look like?<\/h3>\n<h5>The #VALUE! error<\/h5>\nPerhaps, this is the most frequent error type. It occurs when we use an incorrect data type for the expected input arguments as illustrated below.\n\n<img class=\"aligncenter size-full wp-image-3088\" src=\"https:\/\/static.sheetgo.com\/wp-content\/uploads\/2017\/11\/iferror1.png\" alt=\"IFERROR Formula - Illustration 1\" width=\"763\" height=\"231\" \/>\n<h5>The #REF! error<\/h5>\nUsually, this springs up when we intentionally or accidentally delete rows, columns or worksheets, that are referenced in other cells. From the above examples, let's try removing the \"Operand A\" column, and this is what happens. Notice that even within the formula, the #REF! shows, indicating it lost a reference in that placeholder.\n\n<img class=\"aligncenter size-full wp-image-3090\" src=\"https:\/\/static.sheetgo.com\/wp-content\/uploads\/2017\/11\/iferror2.png\" alt=\"IFERROR Formula - Illustration 2\" width=\"663\" height=\"202\" \/>\n<h5>The #NAME! error<\/h5>\nGoogle Sheets throws this up when it sees any function that it doesn't recognize. To understand that further, let's try by using WHATIF, instead of IF in the third row.\n\n<img class=\"aligncenter size-full wp-image-3092\" src=\"https:\/\/static.sheetgo.com\/wp-content\/uploads\/2017\/11\/iferror3.png\" alt=\"IFERROR Formula - Illustration 3\" width=\"803\" height=\"202\" \/>\n<h5>The #NUM! error<\/h5>\nWhen the expected input arguments do not match with what we provide, this might show up. For instance, consider the first example in the snapshot below. A negative number is not expected in the SQRT function, hence the error. This can also surface when the number to display is out of range, as shown in the snapshot below.\n\n<img class=\"aligncenter size-full wp-image-3093\" src=\"https:\/\/static.sheetgo.com\/wp-content\/uploads\/2017\/11\/iferror4.png\" alt=\"IFERROR Formula - Illustration 4\" width=\"679\" height=\"217\" \/>\n<h5>The #N\/A! error<\/h5>\nThis is another common error usually associated with the lookup functions when they cannot find a match for the value they are asked to find.\n\n<img class=\"aligncenter size-full wp-image-3098\" src=\"https:\/\/static.sheetgo.com\/wp-content\/uploads\/2017\/11\/iferror5.png\" alt=\"IFERROR Formula - Illustration 5\" width=\"846\" height=\"242\" \/>\n\nWe can give these errors a meaningful facet, using the handy IFERROR formula.\n<h3>Syntax<\/h3>\n<span style=\"font-family: courier new,courier,monospace; font-size: 14pt;\"><strong>IFERROR(value, [value_if_error])<\/strong><\/span>\n<ul>\n \t<li><span style=\"font-family: courier new,courier,monospace; font-size: 12pt;\"><strong>value<\/strong><\/span> - this is the value that the formula returns if <strong><span style=\"font-family: courier new,courier,monospace; font-size: 12pt;\">value<\/span><\/strong> itself is not an error.<\/li>\n \t<li><span style=\"font-family: courier new,courier,monospace; font-size: 12pt;\"><strong>value_if_error<\/strong><\/span> - this is the value the function returns if <span style=\"font-family: courier new,courier,monospace; font-size: 12pt;\"><strong>value<\/strong><\/span> is an error. Since it is an optional parameter, the IFERROR formula returns blank when this argument is not specified<\/li>\n<\/ul>\n<h3>Examples: IFERROR formula<\/h3>\nGiven below are a few use cases where we put this formula to use.\n\n<img class=\"aligncenter size-full wp-image-3112\" src=\"https:\/\/static.sheetgo.com\/wp-content\/uploads\/2017\/11\/iferror6.png\" alt=\"IFERROR Formula - Illustration 6\" width=\"1035\" height=\"245\" \/>\n\nTherefore, as we can see, the IFERROR formula is used to mask errors with rather meaningful values. But it isn't ideal to mask every error - doing that will make it difficult to troubleshoot. For instance, it doesn't really make sense to mask #REF! error, because we need to be aware which cell reference is lost.\n\nRead the blog post below to learn more about a similar formula \"<strong><a href=\"https:\/\/www.sheetgo.com\/blog\/spreadsheets-tips\/ref-error-spreadsheets\/\">How to solve the #REF! Error on spreadsheets<\/a><\/strong>\"","_et_gb_content_width":"","footnotes":""},"categories":[54],"tags":[39,28],"class_list":["post-3066","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\/3066","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\/39"}],"replies":[{"embeddable":true,"href":"https:\/\/www.sheetgo.com\/pt\/wp-json\/wp\/v2\/comments?post=3066"}],"version-history":[{"count":0,"href":"https:\/\/www.sheetgo.com\/pt\/wp-json\/wp\/v2\/posts\/3066\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.sheetgo.com\/pt\/wp-json\/wp\/v2\/media\/27679"}],"wp:attachment":[{"href":"https:\/\/www.sheetgo.com\/pt\/wp-json\/wp\/v2\/media?parent=3066"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.sheetgo.com\/pt\/wp-json\/wp\/v2\/categories?post=3066"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.sheetgo.com\/pt\/wp-json\/wp\/v2\/tags?post=3066"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}