{"id":49917,"date":"2024-06-12T16:43:31","date_gmt":"2024-06-12T14:43:31","guid":{"rendered":"https:\/\/blog.sheetgo.com\/?p=49917"},"modified":"2025-12-17T19:54:52","modified_gmt":"2025-12-17T18:54:52","slug":"ifna-no-google-sheets","status":"publish","type":"post","link":"https:\/\/www.sheetgo.com\/pt\/blog\/google-sheets-formulas\/ifna-in-google-sheets\/","title":{"rendered":"Como usar a IFNA no Planilhas Google para lidar com erros"},"content":{"rendered":"<p>[et_pb_section fb_built=&#8221;1&#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; 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; da_disable_devices=&#8221;off|off|off&#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; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<p><span style=\"font-weight: 400;\">IFNA in Google Sheets is a super simple function. It checks if a formula results in an error and returns a specific value if it does. This allows you to clear up errors from any spreadsheet making it easier to read.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">In this article we will explore how the IFNA formula works and a few use cases where this function is invaluable.<\/span><\/p>\n<p>[\/et_pb_text][et_pb_text module_id=&#8221;syntax&#8221; _builder_version=&#8221;4.27.2&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<h2><span style=\"font-weight: 400;\">Syntax of IFNA<\/span><\/h2>\n<p><span style=\"font-weight: 400;\">The inner workings of this function are straightforward and it has two possible outcomes:<\/span><\/p>\n<ol>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">The formula it evaluates doesn\u2019t return an #N\/A! error \u2192 the output of this formula is shown.<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">The formula it evaluates returns an #N\/A! error \u2192\u00a0 an alternative message is shown instead.<\/span><\/li>\n<\/ol>\n<p><span style=\"font-weight: 400;\">Its basic syntax looks like this:<\/span><\/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><span style=\"font-weight: 400;\">=IFNA(value, [value_if_na_error])<\/span><\/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 style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">value &#8211; the formula or expression to check for #N\/A! errors. If no error is found then this is returned.<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">[value_if_na_error] &#8211; The value to return if the formula or expression evaluates to #N\/A!<\/span><\/li>\n<\/ul>\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><span style=\"font-weight: 400;\">Common uses cases of IFNA in Google Sheets<\/span><\/h2>\n<p><span style=\"font-weight: 400;\">You could use this function any time a formula returns one of these errors. But there are some specific use cases that are especially common and useful.<\/span><\/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<h3><span style=\"font-weight: 400;\">IFNA and VLOOKUP<\/span><\/h3>\n<p><span style=\"font-weight: 400;\">VLOOKUP is a function that returns #N\/A! errors every time it doesn\u2019t find a value it is looking for. And depending on the dataset you are working with this can happen a lot.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">That\u2019s why it\u2019s a good idea to use both of these functions together. Just use IFNA to return blank values or a specific error message if VLOOKUP doesn\u2019t find anything.<\/span><\/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><span dir=\"auto\" class=\" default-formula-text-color\">=<\/span><span dir=\"auto\" class=\" default-formula-text-color\">IFNA<\/span><span dir=\"auto\" class=\" default-formula-text-color\">(<\/span><span dir=\"auto\" class=\" default-formula-text-color\">VLOOKUP<\/span><span dir=\"auto\" class=\" default-formula-text-color\">(<\/span><span dir=\"auto\">E3<\/span><span dir=\"auto\" class=\" default-formula-text-color\">,<\/span><span dir=\"auto\" class=\" default-formula-text-color\"> <\/span><span dir=\"auto\">$A$3:$C$11<\/span><span dir=\"auto\" class=\" default-formula-text-color\">,<\/span><span dir=\"auto\" class=\" default-formula-text-color\"> <\/span><span dir=\"auto\" class=\"number\">2<\/span><span dir=\"auto\" class=\" default-formula-text-color\">,<\/span><span dir=\"auto\" class=\" default-formula-text-color\"> <\/span><span dir=\"auto\" class=\"boolean\">FALSE<\/span><span dir=\"auto\" class=\" default-formula-text-color\">)<\/span><span dir=\"auto\" class=\" default-formula-text-color\">,<\/span><span dir=\"auto\" class=\" default-formula-text-color\"> <\/span><span dir=\"auto\" class=\" string \">&#8220;Employee not found&#8221;<\/span><span dir=\"auto\" class=\" default-formula-text-color\">)<\/span><\/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<p><span style=\"font-weight: 400;\">Customizing this error message will give better feedback to you or anyone who reads the spreadsheet.<\/span><\/p>\n<p>[\/et_pb_text][et_pb_image src=&#8221;https:\/\/static.sheetgo.com\/wp-content\/uploads\/2024\/06\/ifna-in-google-sheets_1.webp&#8221; alt=&#8221;ifna in google sheets 1&#8243; title_text=&#8221;ifna-in-google-sheets_1&#8243; align=&#8221;center&#8221; _builder_version=&#8221;4.24.1&#8243; _module_preset=&#8221;default&#8221; width=&#8221;100%&#8221; custom_margin=&#8221;30px||30px||true|false&#8221; border_radii=&#8221;on|12px|12px|12px|12px&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;][\/et_pb_image][et_pb_text module_id=&#8221;0&#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;]<\/p>\n<h3><span style=\"font-weight: 400;\">IFNA then 0<\/span><\/h3>\n<p><span style=\"font-weight: 400;\">MATCH is another function that returns #N\/A! errors every time the function doesn&#8217;t find the value it&#8217;s looking for.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Again, to handle this you can use <\/span><span style=\"font-weight: 400;\">IFNA<\/span><span style=\"font-weight: 400;\">. This way, if <\/span><span style=\"font-weight: 400;\">MATCH<\/span><span style=\"font-weight: 400;\"> doesn&#8217;t find the desired value, you can make it return 0 instead of an error.<\/span><\/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><span dir=\"auto\" class=\" default-formula-text-color\">=<\/span><span dir=\"auto\" class=\" default-formula-text-color\">IFNA<\/span><span dir=\"auto\" class=\" default-formula-text-color\">(<\/span><span dir=\"auto\" class=\" default-formula-text-color\">MATCH<\/span><span dir=\"auto\" class=\" default-formula-text-color\">(<\/span><span dir=\"auto\">E3<\/span><span dir=\"auto\" class=\" default-formula-text-color\">,<\/span><span dir=\"auto\" class=\" default-formula-text-color\"> <\/span><span dir=\"auto\">$A$3:$A$11<\/span><span dir=\"auto\" class=\" default-formula-text-color\">,<\/span><span dir=\"auto\" class=\" default-formula-text-color\"> <\/span><span dir=\"auto\" class=\"number\">0<\/span><span dir=\"auto\" class=\" default-formula-text-color\">)<\/span><span dir=\"auto\" class=\" default-formula-text-color\">,<\/span><span dir=\"auto\" class=\" default-formula-text-color\"> <\/span><span dir=\"auto\" class=\"number\">0<\/span><span dir=\"auto\" class=\" default-formula-text-color\">)<\/span><\/p>\n<p>[\/et_pb_text][et_pb_image src=&#8221;https:\/\/static.sheetgo.com\/wp-content\/uploads\/2024\/06\/ifna-in-google-sheets_2.webp&#8221; alt=&#8221;ifna in google sheets 2&#8243; title_text=&#8221;ifna-in-google-sheets_2&#8243; align=&#8221;center&#8221; _builder_version=&#8221;4.24.1&#8243; _module_preset=&#8221;default&#8221; width=&#8221;100%&#8221; custom_margin=&#8221;30px||30px||true|false&#8221; border_radii=&#8221;on|12px|12px|12px|12px&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;][\/et_pb_image][et_pb_text module_id=&#8221;iferror&#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><span style=\"font-weight: 400;\">IFNA vs IFERROR<\/span><\/h2>\n<p><span style=\"font-weight: 400;\">IFERROR is a lot like IFNA. The only difference is that it will detect any error, while IFNA will only look for one specific error. For the most part they are interchangeable, so the last formula we covered would work the same with IFERROR.<\/span><\/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><span style=\"font-weight: 400;\">=IFERROR(MATCH(<\/span><span style=\"font-weight: 400;\">A2<\/span><span style=\"font-weight: 400;\">, <\/span><span style=\"font-weight: 400;\">C2:C10<\/span><span style=\"font-weight: 400;\">, <\/span><span style=\"font-weight: 400;\">0<\/span><span style=\"font-weight: 400;\">), <\/span><span style=\"font-weight: 400;\">0<\/span><span style=\"font-weight: 400;\">)<\/span><\/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<p><span style=\"font-weight: 400;\">The only cases where these functions aren\u2019t the same is if you are trying to sniff out NA errors in particular.<\/span><\/p>\n<p><a href=\"https:\/\/www.sheetgo.com\/blog\/google-sheets-formulas\/iferror-formula-google-sheets\/\"><span style=\"font-weight: 400;\">Learn more about IFERROR<\/span><\/a><span style=\"font-weight: 400;\"> for other ways to handle errors in Google Sheets.<\/span><\/p>\n<p>[\/et_pb_text][et_pb_text module_id=&#8221;sheetgo&#8221; _builder_version=&#8221;4.27.2&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<h2><span style=\"font-weight: 400;\">Use Sheetgo, reduce errors<\/span><\/h2>\n<p><span style=\"font-weight: 400;\">Sheetgo offers many ways to connect your data streams. All of them will keep information moving without the usual errors. These features include:<\/span><\/p>\n<ul>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Connections to transfer and process data.<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\">Data processors to transform your data<\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\">Transfer formatting as the best alternative to IMPORTRANGE<\/li>\n<\/ul>\n<p><span style=\"font-weight: 400;\">Find out how <a href=\"https:\/\/www.sheetgo.com\/connections\/\" target=\"_blank\" rel=\"noopener\">Sheetgo<\/a> can get your initiatives moving in the right direction.<\/span><\/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<h2><span style=\"font-weight: 400;\">Conclusion<\/span><\/h2>\n<p><span style=\"font-weight: 400;\">Using <\/span><span style=\"font-weight: 400;\">IFNA<\/span><span style=\"font-weight: 400;\"> in Google Sheets is a powerful way to handle errors and maintain clean, readable spreadsheets.\u00a0<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Whether you\u2019re returning a custom error message, a blank value, or a zero, <\/span><span style=\"font-weight: 400;\">IFNA<\/span><span style=\"font-weight: 400;\"> provides a simple solution to improve your spreadsheet management.<\/span><\/p>\n<p>[\/et_pb_text][\/et_pb_column][\/et_pb_row][\/et_pb_section]<\/p>\n","protected":false},"excerpt":{"rendered":"<p>IFNA in Google Sheets is a super simple function. It checks if a formula results in an error and returns a specific value if it does. This allows you to clear up errors from any spreadsheet making it easier to read. In this article we will explore how the IFNA formula works and a few [&hellip;]<\/p>\n","protected":false},"author":33,"featured_media":44470,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"_et_pb_use_builder":"on","_et_pb_old_content":"","_et_gb_content_width":"","footnotes":""},"categories":[54],"tags":[39,28],"class_list":["post-49917","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\/49917","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\/33"}],"replies":[{"embeddable":true,"href":"https:\/\/www.sheetgo.com\/pt\/wp-json\/wp\/v2\/comments?post=49917"}],"version-history":[{"count":0,"href":"https:\/\/www.sheetgo.com\/pt\/wp-json\/wp\/v2\/posts\/49917\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.sheetgo.com\/pt\/wp-json\/wp\/v2\/media\/44470"}],"wp:attachment":[{"href":"https:\/\/www.sheetgo.com\/pt\/wp-json\/wp\/v2\/media?parent=49917"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.sheetgo.com\/pt\/wp-json\/wp\/v2\/categories?post=49917"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.sheetgo.com\/pt\/wp-json\/wp\/v2\/tags?post=49917"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}