{"id":240,"date":"2014-09-24T01:43:28","date_gmt":"2014-09-23T23:43:28","guid":{"rendered":"https:\/\/www.myexcelonline.com\/?p=240"},"modified":"2024-06-03T03:56:47","modified_gmt":"2024-06-03T01:56:47","slug":"iferror-introduction","status":"publish","type":"post","link":"https:\/\/www.myexcelonline.com\/meo-staging\/blog\/iferror-introduction\/","title":{"rendered":"IFERROR Function: Introduction"},"content":{"rendered":"<p><em><strong>What does it do? <\/strong><\/em><\/p>\n<p>It returns a value that you set if a <a class=\"wpil_keyword_link\" title=\"formula\" href=\"https:\/\/www.myexcelonline.com\/meo-staging\/blog\/top-excel-formulas-function-examples-to-get-better-at-microsoft-excel\/\" target=\"_blank\" rel=\"noopener\" data-wpil-keyword-link=\"linked\">formula<\/a> has an error<\/p>\n<p><em><strong>Formula breakdown: <\/strong><\/em><\/p>\n<p>=IFERROR(<span style=\"color: #0000ff;\">Value<\/span>,<span style=\"color: #ff6600;\">Value if Error<\/span>)<\/p>\n<p><em><strong>What it means: <\/strong><\/em><\/p>\n<p>=IFERROR(<span style=\"color: #0000ff;\">The Formula<\/span>,<span style=\"color: #ff6600;\">What do you want to show if The Formula has an error?<\/span>)<\/p>\n<hr \/>\n<p>If you have a calculation that results in an error like, #N\/A, #VALUE!, #REF!, #DIV\/0!, #NUM!, #NAME?, then you can clean it up by using the <strong>IFERROR<\/strong> function which allows you to replace the error it with a 0 or a blank cell.<\/p>\n<div class=\"after-post-box\">\n<p class=\"line-two\"><a class=\"IRPP_minimalist icon-download button small\" href=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2014\/09\/IfError.xlsx\" target=\"_blank\" rel=\"noopener noreferrer\" data-leadbox=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2014\/09\/IfError.xlsx\" data-leadbox-id=\"147284833f72a2:12f08263ab46dc\"><span class=\"ctaText px-3 text-capitalize\">Download excel workbook<i class=\"fa fa-download\"><\/i><\/span><span class=\"postTitle px-3\">IfError.xlsx<\/span><\/a><\/p>\n<\/div>\n<p>We want to get the <strong>average sale of each record<\/strong>. However we need to <strong>handle division by zero errors gracefully<\/strong>.<\/p>\n<p><strong><span style=\"color: #ff0000;\">STEP 1:<\/span><\/strong>\u00a0We need to enter the <strong>IFERROR<\/strong> function in a blank cell:<br \/>\n<code><span style=\"color: #0000ff;\">=IFERROR(<\/span><\/code><br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-9772\" title=\"IFERROR Function: Introduction\" src=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2014\/09\/Iferror1.png\" alt=\"IFERROR Function: Introduction\" width=\"711\" height=\"313\" srcset=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2014\/09\/Iferror1.png 711w, https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2014\/09\/Iferror1-300x132.png 300w\" sizes=\"(max-width: 711px) 100vw, 711px\" \/><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"color: #ff0000;\"><strong>STEP 2:<\/strong> <\/span>The <strong>IFERROR<\/strong> arguments:<\/p>\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_57_1 counter-flat ez-toc-counter ez-toc-transparent ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\">\n<p class=\"ez-toc-title \" >Table of Contents<\/p>\n<span class=\"ez-toc-title-toggle\"><\/span><\/div>\n<nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li><a href=\"#\" class=\"scroll-to-download\">Free Practice Workbook<\/a><\/li><li class='ez-toc-page-1'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/www.myexcelonline.com\/meo-staging\/blog\/iferror-introduction\/#Value\" title=\"Value\">Value<\/a><\/li><li class='ez-toc-page-1'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/www.myexcelonline.com\/meo-staging\/blog\/iferror-introduction\/#Value_if_error\" title=\"Value_if_error\">Value_if_error<\/a><\/li><\/ul><\/nav><\/div>\n<h2><span class=\"ez-toc-section\" id=\"Value\"><\/span><em>Value<\/em><span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p><strong>What is the formula? <\/strong><\/p>\n<p>We need to enter the formula first to calculate the average sale.<br \/>\n<code>=IFERROR(<span style=\"color: #0000ff;\">D15\/E15,<\/span><\/code><br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-9773\" title=\"IFERROR Function: Introduction\" src=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2014\/09\/Iferror2.png\" alt=\"IFERROR Function: Introduction\" width=\"609\" height=\"159\" srcset=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2014\/09\/Iferror2.png 609w, https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2014\/09\/Iferror2-300x78.png 300w\" sizes=\"(max-width: 609px) 100vw, 609px\" \/><\/p>\n<h2><span class=\"ez-toc-section\" id=\"Value_if_error\"><\/span><em>Value_if_error<\/em><span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p><strong>What value should be displayed if there is an error in the formula? <\/strong><\/p>\n<p>We want &#8220;0&#8221; to be displayed if there is an error<br \/>\n<code>=IFERROR(D15\/E15, <span style=\"color: #0000ff;\">0)<\/span><\/code><br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-9774\" title=\"IFERROR Function: Introduction\" src=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2014\/09\/Iferror3.png\" alt=\"IFERROR Function: Introduction\" width=\"610\" height=\"161\" srcset=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2014\/09\/Iferror3.png 610w, https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2014\/09\/Iferror3-300x79.png 300w\" sizes=\"(max-width: 610px) 100vw, 610px\" \/><\/p>\n<p>Apply the same formula to the rest of the cells by dragging the lower right corner downwards.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-9775\" title=\"IFERROR Function: Introduction\" src=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2014\/09\/Iferror4.png\" alt=\"IFERROR Function: Introduction\" width=\"545\" height=\"179\" srcset=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2014\/09\/Iferror4.png 545w, https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2014\/09\/Iferror4-300x99.png 300w\" sizes=\"(max-width: 545px) 100vw, 545px\" \/><\/p>\n<p>You now have all of results!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>What does it do? It returns a value that you set if a formula has an error Formula breakdown: =IFERROR(Value,Value if Error) What it means: =IFERROR(The Formula,What do you want to show if The Formula has an error?) If you have a calculation that results in an error like, #N\/A, #VALUE!, #REF!, #DIV\/0!, #NUM!, #NAME?, [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":17462,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"cos_headline_score":0,"cos_seo_score":0,"cos_headline_text":"IFERROR Function: Introduction","cos_headline_has_been_analyzed":false,"cos_last_analyzed_headline":[],"om_disable_all_campaigns":false},"categories":[12,3,284],"tags":[43,49],"acf":[],"_links":{"self":[{"href":"https:\/\/www.myexcelonline.com\/meo-staging\/wp-json\/wp\/v2\/posts\/240"}],"collection":[{"href":"https:\/\/www.myexcelonline.com\/meo-staging\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.myexcelonline.com\/meo-staging\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.myexcelonline.com\/meo-staging\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.myexcelonline.com\/meo-staging\/wp-json\/wp\/v2\/comments?post=240"}],"version-history":[{"count":0,"href":"https:\/\/www.myexcelonline.com\/meo-staging\/wp-json\/wp\/v2\/posts\/240\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.myexcelonline.com\/meo-staging\/wp-json\/wp\/v2\/media\/17462"}],"wp:attachment":[{"href":"https:\/\/www.myexcelonline.com\/meo-staging\/wp-json\/wp\/v2\/media?parent=240"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.myexcelonline.com\/meo-staging\/wp-json\/wp\/v2\/categories?post=240"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.myexcelonline.com\/meo-staging\/wp-json\/wp\/v2\/tags?post=240"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}