{"id":3816,"date":"2019-01-02T17:01:15","date_gmt":"2019-01-02T17:01:15","guid":{"rendered":"http:\/\/officetuts.net\/excel\/?p=3816"},"modified":"2024-03-26T12:32:51","modified_gmt":"2024-03-26T12:32:51","slug":"display-or-hide-zero-values","status":"publish","type":"post","link":"https:\/\/officetuts.net\/excel\/examples\/display-or-hide-zero-values\/","title":{"rendered":"Display or Hide Zero Values in Excel"},"content":{"rendered":"\n
Display-or-Hide-Zero-Values<\/a>Download File<\/a><\/div>\n\n\n\n

When you work in Excel, there are situations when you want to either show zero in some cases or hide zero in others.<\/p>\n\n\n\n

This tutorial will teach you how you can achieve this using two different methods.<\/p>\n\n\n\n

Format cells to display blank instead of zero<\/h2>\n\n\n\n

In the first example, we are going to use the SUM function, to sum up, a few numbers.<\/p>\n\n\n\n

\"\"<\/figure>\n\n\n\n

The result in some cells (B7<\/strong>, C7<\/strong>) is zero. There is a way to display these numbers as blanks by using number formatting.<\/p>\n\n\n\n

In order to format the cells, select cells from A7<\/strong> to E7<\/strong> and use the right mouse click. From the contextual menu select Format Cells<\/strong>.<\/p>\n\n\n\n

\"\"<\/figure>\n\n\n\n

A new window will appear. Select the Number<\/strong> tab and click Custom Category<\/strong>.<\/p>\n\n\n\n

\"\"<\/figure>\n\n\n\n

Inside the Type field, you have General<\/strong>. It\u2019s the default formatting for numbers and text.<\/p>\n\n\n\n

You can change it by using your own formatting. Here\u2019s how it works.<\/p>\n\n\n\n

\"\"<\/figure>\n\n\n\n

This format is divided into a maximum of 4 parts:<\/p>\n\n\n\n

    \n
  1. Positive numbers<\/li>\n\n\n\n
  2. Negative numbers<\/li>\n\n\n\n
  3. Zero<\/li>\n\n\n\n
  4. Text<\/li>\n<\/ol>\n\n\n\n

    We are going to use the following format:<\/p>\n\n\n\n

    #;\"-\"#;<\/pre>\n\n\n\n

    It will keep positive numbers as positive, and negative numbers as negative, but avoid zeros and text. In practice, this means that zeros will be displayed as blanks.<\/p>\n\n\n\n

    \"\"<\/figure>\n\n\n\n

    You can easily modify this format to display dashes (-) instead of zeros.<\/p>\n\n\n\n

    #;\"-\"#;-<\/pre>\n\n\n\n

    This will give the following result.<\/p>\n\n\n\n

    \"\"<\/figure>\n\n\n\n

    The other way to display blanks or dashes, instead of zeros, is by using the IF function.<\/p>\n\n\n\n

    So far we used this formula for cell A7<\/strong>.<\/p>\n\n\n\n

    =SUM(A1:A5)<\/pre>\n\n\n\n

    Let\u2019s modify this cell, so it\u2019s going to display blank if the result is 0.<\/p>\n\n\n\n

    =IF(SUM(A1:A5)=0,\"\",SUM(A1:A5))<\/pre>\n\n\n\n

    Modify the remaining cells. It will give you the following result.<\/p>\n\n\n\n

    \"\"<\/figure>\n\n\n\n

    Of course, the slight modification will result in dashes instead of blanks.<\/p>\n\n\n\n

    =IF(SUM(A1:A5)=0,\"-\",SUM(A1:A5))<\/pre>\n\n\n\n

    Hide all zeros inside a worksheet<\/h2>\n\n\n\n

    So far, we replaced zeros in the selected range. If you want to hide zeros for the entire worksheet you can do it inside Excel options.<\/p>\n\n\n\n

    Go to File >> Options<\/strong>. Inside the Excel Options<\/strong> window click Advanced<\/strong> and find an area called Display options for this worksheet<\/strong> and find a position called Show a zero in cells that have zero value<\/strong>.<\/p>\n\n\n\n

    \"\"<\/figure>\n\n\n\n

    Now, you can see that not only the cells that are in row 7 are blank, but also those inside the table. These cells are treated as zeros and displayed as blanks.<\/p>\n\n\n\n

    \"\"<\/figure>\n","protected":false},"excerpt":{"rendered":"

    When you work in Excel, there are situations when you want to either show zero in some cases or hide zero in others….<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[21],"tags":[170,190],"yoast_head":"\nDisplay or Hide Zero Values in Excel<\/title>\n<meta name=\"description\" content=\"Learn how to show or hide zero values in Excel with 2 different methods. Format cells to display blank instead of zero with this easy-to-follow tutorial.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/officetuts.net\/excel\/examples\/display-or-hide-zero-values\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Display or Hide Zero Values in Excel\" \/>\n<meta property=\"og:description\" content=\"Learn how to show or hide zero values in Excel with 2 different methods. Format cells to display blank instead of zero with this easy-to-follow tutorial.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/officetuts.net\/excel\/examples\/display-or-hide-zero-values\/\" \/>\n<meta property=\"article:published_time\" content=\"2019-01-02T17:01:15+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-03-26T12:32:51+00:00\" \/>\n<meta property=\"og:image\" content=\"http:\/\/officetuts.net\/excel\/wp-content\/uploads\/sites\/2\/2019\/01\/summing-example.png\" \/>\n<meta name=\"author\" content=\"Tomasz Decker\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Tomasz Decker\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/officetuts.net\/excel\/examples\/display-or-hide-zero-values\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/officetuts.net\/excel\/examples\/display-or-hide-zero-values\/\"},\"author\":{\"name\":\"Tomasz Decker\",\"@id\":\"https:\/\/officetuts.net\/excel\/#\/schema\/person\/41b0b6996aaa4c4127f86f3d24452d42\"},\"headline\":\"Display or Hide Zero Values in Excel\",\"datePublished\":\"2019-01-02T17:01:15+00:00\",\"dateModified\":\"2024-03-26T12:32:51+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/officetuts.net\/excel\/examples\/display-or-hide-zero-values\/\"},\"wordCount\":399,\"publisher\":{\"@id\":\"https:\/\/officetuts.net\/excel\/#\/schema\/person\/41b0b6996aaa4c4127f86f3d24452d42\"},\"image\":{\"@id\":\"https:\/\/officetuts.net\/excel\/examples\/display-or-hide-zero-values\/#primaryimage\"},\"thumbnailUrl\":\"http:\/\/officetuts.net\/excel\/wp-content\/uploads\/sites\/2\/2019\/01\/summing-example.png\",\"keywords\":[\"file\",\"pinterest\"],\"articleSection\":[\"examples\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/officetuts.net\/excel\/examples\/display-or-hide-zero-values\/\",\"url\":\"https:\/\/officetuts.net\/excel\/examples\/display-or-hide-zero-values\/\",\"name\":\"Display or Hide Zero Values in Excel\",\"isPartOf\":{\"@id\":\"https:\/\/officetuts.net\/excel\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/officetuts.net\/excel\/examples\/display-or-hide-zero-values\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/officetuts.net\/excel\/examples\/display-or-hide-zero-values\/#primaryimage\"},\"thumbnailUrl\":\"http:\/\/officetuts.net\/excel\/wp-content\/uploads\/sites\/2\/2019\/01\/summing-example.png\",\"datePublished\":\"2019-01-02T17:01:15+00:00\",\"dateModified\":\"2024-03-26T12:32:51+00:00\",\"description\":\"Learn how to show or hide zero values in Excel with 2 different methods. Format cells to display blank instead of zero with this easy-to-follow tutorial.\",\"breadcrumb\":{\"@id\":\"https:\/\/officetuts.net\/excel\/examples\/display-or-hide-zero-values\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/officetuts.net\/excel\/examples\/display-or-hide-zero-values\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/officetuts.net\/excel\/examples\/display-or-hide-zero-values\/#primaryimage\",\"url\":\"http:\/\/officetuts.net\/excel\/wp-content\/uploads\/sites\/2\/2019\/01\/summing-example.png\",\"contentUrl\":\"http:\/\/officetuts.net\/excel\/wp-content\/uploads\/sites\/2\/2019\/01\/summing-example.png\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/officetuts.net\/excel\/examples\/display-or-hide-zero-values\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/officetuts.net\/excel\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Display or Hide Zero Values in Excel\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/officetuts.net\/excel\/#website\",\"url\":\"https:\/\/officetuts.net\/excel\/\",\"name\":\"\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/officetuts.net\/excel\/#\/schema\/person\/41b0b6996aaa4c4127f86f3d24452d42\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/officetuts.net\/excel\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\/\/officetuts.net\/excel\/#\/schema\/person\/41b0b6996aaa4c4127f86f3d24452d42\",\"name\":\"Tomasz Decker\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/officetuts.net\/excel\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/18cbe22837193574870ae40ba56bf712?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/18cbe22837193574870ae40ba56bf712?s=96&d=mm&r=g\",\"caption\":\"Tomasz Decker\"},\"logo\":{\"@id\":\"https:\/\/officetuts.net\/excel\/#\/schema\/person\/image\/\"},\"description\":\"Spreadsheet and Python enthusiast.\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Display or Hide Zero Values in Excel","description":"Learn how to show or hide zero values in Excel with 2 different methods. Format cells to display blank instead of zero with this easy-to-follow tutorial.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/officetuts.net\/excel\/examples\/display-or-hide-zero-values\/","og_locale":"en_US","og_type":"article","og_title":"Display or Hide Zero Values in Excel","og_description":"Learn how to show or hide zero values in Excel with 2 different methods. Format cells to display blank instead of zero with this easy-to-follow tutorial.","og_url":"https:\/\/officetuts.net\/excel\/examples\/display-or-hide-zero-values\/","article_published_time":"2019-01-02T17:01:15+00:00","article_modified_time":"2024-03-26T12:32:51+00:00","og_image":[{"url":"http:\/\/officetuts.net\/excel\/wp-content\/uploads\/sites\/2\/2019\/01\/summing-example.png"}],"author":"Tomasz Decker","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Tomasz Decker","Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/officetuts.net\/excel\/examples\/display-or-hide-zero-values\/#article","isPartOf":{"@id":"https:\/\/officetuts.net\/excel\/examples\/display-or-hide-zero-values\/"},"author":{"name":"Tomasz Decker","@id":"https:\/\/officetuts.net\/excel\/#\/schema\/person\/41b0b6996aaa4c4127f86f3d24452d42"},"headline":"Display or Hide Zero Values in Excel","datePublished":"2019-01-02T17:01:15+00:00","dateModified":"2024-03-26T12:32:51+00:00","mainEntityOfPage":{"@id":"https:\/\/officetuts.net\/excel\/examples\/display-or-hide-zero-values\/"},"wordCount":399,"publisher":{"@id":"https:\/\/officetuts.net\/excel\/#\/schema\/person\/41b0b6996aaa4c4127f86f3d24452d42"},"image":{"@id":"https:\/\/officetuts.net\/excel\/examples\/display-or-hide-zero-values\/#primaryimage"},"thumbnailUrl":"http:\/\/officetuts.net\/excel\/wp-content\/uploads\/sites\/2\/2019\/01\/summing-example.png","keywords":["file","pinterest"],"articleSection":["examples"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/officetuts.net\/excel\/examples\/display-or-hide-zero-values\/","url":"https:\/\/officetuts.net\/excel\/examples\/display-or-hide-zero-values\/","name":"Display or Hide Zero Values in Excel","isPartOf":{"@id":"https:\/\/officetuts.net\/excel\/#website"},"primaryImageOfPage":{"@id":"https:\/\/officetuts.net\/excel\/examples\/display-or-hide-zero-values\/#primaryimage"},"image":{"@id":"https:\/\/officetuts.net\/excel\/examples\/display-or-hide-zero-values\/#primaryimage"},"thumbnailUrl":"http:\/\/officetuts.net\/excel\/wp-content\/uploads\/sites\/2\/2019\/01\/summing-example.png","datePublished":"2019-01-02T17:01:15+00:00","dateModified":"2024-03-26T12:32:51+00:00","description":"Learn how to show or hide zero values in Excel with 2 different methods. Format cells to display blank instead of zero with this easy-to-follow tutorial.","breadcrumb":{"@id":"https:\/\/officetuts.net\/excel\/examples\/display-or-hide-zero-values\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/officetuts.net\/excel\/examples\/display-or-hide-zero-values\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/officetuts.net\/excel\/examples\/display-or-hide-zero-values\/#primaryimage","url":"http:\/\/officetuts.net\/excel\/wp-content\/uploads\/sites\/2\/2019\/01\/summing-example.png","contentUrl":"http:\/\/officetuts.net\/excel\/wp-content\/uploads\/sites\/2\/2019\/01\/summing-example.png"},{"@type":"BreadcrumbList","@id":"https:\/\/officetuts.net\/excel\/examples\/display-or-hide-zero-values\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/officetuts.net\/excel\/"},{"@type":"ListItem","position":2,"name":"Display or Hide Zero Values in Excel"}]},{"@type":"WebSite","@id":"https:\/\/officetuts.net\/excel\/#website","url":"https:\/\/officetuts.net\/excel\/","name":"","description":"","publisher":{"@id":"https:\/\/officetuts.net\/excel\/#\/schema\/person\/41b0b6996aaa4c4127f86f3d24452d42"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/officetuts.net\/excel\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":["Person","Organization"],"@id":"https:\/\/officetuts.net\/excel\/#\/schema\/person\/41b0b6996aaa4c4127f86f3d24452d42","name":"Tomasz Decker","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/officetuts.net\/excel\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/18cbe22837193574870ae40ba56bf712?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/18cbe22837193574870ae40ba56bf712?s=96&d=mm&r=g","caption":"Tomasz Decker"},"logo":{"@id":"https:\/\/officetuts.net\/excel\/#\/schema\/person\/image\/"},"description":"Spreadsheet and Python enthusiast."}]}},"_links":{"self":[{"href":"https:\/\/officetuts.net\/excel\/wp-json\/wp\/v2\/posts\/3816"}],"collection":[{"href":"https:\/\/officetuts.net\/excel\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/officetuts.net\/excel\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/officetuts.net\/excel\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/officetuts.net\/excel\/wp-json\/wp\/v2\/comments?post=3816"}],"version-history":[{"count":4,"href":"https:\/\/officetuts.net\/excel\/wp-json\/wp\/v2\/posts\/3816\/revisions"}],"predecessor-version":[{"id":15486,"href":"https:\/\/officetuts.net\/excel\/wp-json\/wp\/v2\/posts\/3816\/revisions\/15486"}],"wp:attachment":[{"href":"https:\/\/officetuts.net\/excel\/wp-json\/wp\/v2\/media?parent=3816"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/officetuts.net\/excel\/wp-json\/wp\/v2\/categories?post=3816"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/officetuts.net\/excel\/wp-json\/wp\/v2\/tags?post=3816"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}