{"id":11826,"date":"2022-09-27T16:22:48","date_gmt":"2022-09-27T16:22:48","guid":{"rendered":"https:\/\/officetuts.net\/excel\/?p=11826"},"modified":"2024-03-28T13:54:50","modified_gmt":"2024-03-28T13:54:50","slug":"show-yes-no-in-a-pivottable","status":"publish","type":"post","link":"https:\/\/officetuts.net\/excel\/examples\/show-yes-no-in-a-pivottable\/","title":{"rendered":"Show Yes No in a PivotTable"},"content":{"rendered":"\n
Show-Yes-No-in-a-PivotTable<\/a>Download File<\/a><\/div>\n\n\n\n

Sometimes we may want to show Yes<\/strong> or No<\/strong> in a PivotTable instead of other values. This tutorial shows you how to show Yes<\/strong> and No<\/strong> in a PivotTable.<\/p>\n\n\n\n

How to show Yes and No in a PivotTable<\/h2>\n\n\n\n

We use the following PivotTable<\/strong> in our illustration. We will show Yes<\/strong> in the cells that contain sale amounts and No<\/strong> in the cells that have no values. This is done in two steps.<\/p>\n\n\n\n

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

Step 1: Display zeroes in the empty cells<\/h3>\n\n\n\n

We first need to change the settings of the PivotTable such that zeroes are displayed in the empty cells.<\/p>\n\n\n\n

We use the steps below:<\/p>\n\n\n\n

    \n
  1. Click PivotTable Analyze >> PivotTable >> Options Arrow >> Options. <\/strong>This opens the PivotTable Options<\/strong> dialog box.<\/li>\n<\/ol>\n\n\n\n
    \"\"<\/figure>\n\n\n\n
      \n
    1. In the PivotTable Options<\/strong> dialog box that appears, ensure that the For empty cells show<\/strong> checkbox is checked. Then type 0 (zero) in the box next to it and click OK<\/strong>.<\/li>\n<\/ol>\n\n\n\n
      \"\"<\/figure>\n\n\n\n

      Zeros are displayed in the once empty cells:<\/p>\n\n\n\n

      \"Table\n\nDescription<\/figure>\n\n\n\n

      Step 2: Create a custom number format that displays Yes or No in the data cells<\/h3>\n\n\n\n

      We create a custom number format that displays Yes<\/strong> for positive sale amounts and No<\/strong> for 0 (zero) values.<\/p>\n\n\n\n

      We use the following steps:<\/p>\n\n\n\n

        \n
      1. Right-click any data cell in the PivotTable and choose Value Field Settings<\/strong> from the shortcut menu.<\/li>\n<\/ol>\n\n\n\n
        \"\"<\/figure>\n\n\n\n
          \n
        1. Click the Number Format<\/strong> button in the Value Field Settings<\/strong> dialog box.<\/li>\n<\/ol>\n\n\n\n
          \"Graphical<\/figure>\n\n\n\n
            \n
          1. In the Format Cells<\/strong> dialog box that appears, select Custom<\/strong> in the Category<\/strong> list box.<\/li>\n<\/ol>\n\n\n\n
            \"Graphical<\/figure>\n\n\n\n
              \n
            1. Select and delete the number format displayed in the Type<\/strong> box on the right. Then type in the following custom number format and click OK<\/strong>:<\/li>\n<\/ol>\n\n\n\n

              “Yes”;;”No”<\/p>\n\n\n\n

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

              Note<\/strong>: What this number format is telling Excel is, \u201cShow Yes for positive values, show nothing for negative values, and show No for zero values.\u201d<\/p>\n\n\n\n

                \n
              1. Click the OK<\/strong> button in the Value Field Settings<\/strong> dialog box.<\/li>\n<\/ol>\n\n\n\n
                \"\"<\/figure>\n\n\n\n

                Yes and No values are now displayed in the PivotTable.<\/p>\n\n\n\n

                Conclusion<\/h2>\n\n\n\n

                We can show Yes<\/strong> and No<\/strong> in a PivotTable by first displaying 0s (zeros) in empty data cells. We then create a custom number format that displays Yes <\/strong>for positive values and No<\/strong> for 0 (zero) values.<\/p>\n","protected":false},"excerpt":{"rendered":"

                Sometimes we may want to show Yes or No in a PivotTable instead of other values. This tutorial shows you how to show…<\/p>\n","protected":false},"author":5,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[21],"tags":[170,190],"yoast_head":"\nShow Yes No in a PivotTable<\/title>\n<meta name=\"description\" content=\"Display Yes and No in a PivotTable by changing settings and creating a custom number format. How to show Yes for positives and No for empty cells.\" \/>\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\/show-yes-no-in-a-pivottable\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Show Yes No in a PivotTable\" \/>\n<meta property=\"og:description\" content=\"Display Yes and No in a PivotTable by changing settings and creating a custom number format. How to show Yes for positives and No for empty cells.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/officetuts.net\/excel\/examples\/show-yes-no-in-a-pivottable\/\" \/>\n<meta property=\"article:published_time\" content=\"2022-09-27T16:22:48+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-03-28T13:54:50+00:00\" \/>\n<meta property=\"og:image\" content=\"http:\/\/officetuts.net\/excel\/wp-content\/uploads\/sites\/2\/2022\/09\/word-image-11826-1.png\" \/>\n<meta name=\"author\" content=\"Christopher Sirali\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Christopher Sirali\" \/>\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\/show-yes-no-in-a-pivottable\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/officetuts.net\/excel\/examples\/show-yes-no-in-a-pivottable\/\"},\"author\":{\"name\":\"Christopher Sirali\",\"@id\":\"https:\/\/officetuts.net\/excel\/#\/schema\/person\/b303a8b219a448ca09f1e9eed3903370\"},\"headline\":\"Show Yes No in a PivotTable\",\"datePublished\":\"2022-09-27T16:22:48+00:00\",\"dateModified\":\"2024-03-28T13:54:50+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/officetuts.net\/excel\/examples\/show-yes-no-in-a-pivottable\/\"},\"wordCount\":361,\"publisher\":{\"@id\":\"https:\/\/officetuts.net\/excel\/#\/schema\/person\/41b0b6996aaa4c4127f86f3d24452d42\"},\"image\":{\"@id\":\"https:\/\/officetuts.net\/excel\/examples\/show-yes-no-in-a-pivottable\/#primaryimage\"},\"thumbnailUrl\":\"http:\/\/officetuts.net\/excel\/wp-content\/uploads\/sites\/2\/2022\/09\/word-image-11826-1.png\",\"keywords\":[\"file\",\"pinterest\"],\"articleSection\":[\"examples\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/officetuts.net\/excel\/examples\/show-yes-no-in-a-pivottable\/\",\"url\":\"https:\/\/officetuts.net\/excel\/examples\/show-yes-no-in-a-pivottable\/\",\"name\":\"Show Yes No in a PivotTable\",\"isPartOf\":{\"@id\":\"https:\/\/officetuts.net\/excel\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/officetuts.net\/excel\/examples\/show-yes-no-in-a-pivottable\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/officetuts.net\/excel\/examples\/show-yes-no-in-a-pivottable\/#primaryimage\"},\"thumbnailUrl\":\"http:\/\/officetuts.net\/excel\/wp-content\/uploads\/sites\/2\/2022\/09\/word-image-11826-1.png\",\"datePublished\":\"2022-09-27T16:22:48+00:00\",\"dateModified\":\"2024-03-28T13:54:50+00:00\",\"description\":\"Display Yes and No in a PivotTable by changing settings and creating a custom number format. How to show Yes for positives and No for empty cells.\",\"breadcrumb\":{\"@id\":\"https:\/\/officetuts.net\/excel\/examples\/show-yes-no-in-a-pivottable\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/officetuts.net\/excel\/examples\/show-yes-no-in-a-pivottable\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/officetuts.net\/excel\/examples\/show-yes-no-in-a-pivottable\/#primaryimage\",\"url\":\"http:\/\/officetuts.net\/excel\/wp-content\/uploads\/sites\/2\/2022\/09\/word-image-11826-1.png\",\"contentUrl\":\"http:\/\/officetuts.net\/excel\/wp-content\/uploads\/sites\/2\/2022\/09\/word-image-11826-1.png\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/officetuts.net\/excel\/examples\/show-yes-no-in-a-pivottable\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/officetuts.net\/excel\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Show Yes No in a PivotTable\"}]},{\"@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.\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/officetuts.net\/excel\/#\/schema\/person\/b303a8b219a448ca09f1e9eed3903370\",\"name\":\"Christopher Sirali\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/officetuts.net\/excel\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/21aaff468311813001dc2723f1937cf0?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/21aaff468311813001dc2723f1937cf0?s=96&d=mm&r=g\",\"caption\":\"Christopher Sirali\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Show Yes No in a PivotTable","description":"Display Yes and No in a PivotTable by changing settings and creating a custom number format. How to show Yes for positives and No for empty cells.","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\/show-yes-no-in-a-pivottable\/","og_locale":"en_US","og_type":"article","og_title":"Show Yes No in a PivotTable","og_description":"Display Yes and No in a PivotTable by changing settings and creating a custom number format. How to show Yes for positives and No for empty cells.","og_url":"https:\/\/officetuts.net\/excel\/examples\/show-yes-no-in-a-pivottable\/","article_published_time":"2022-09-27T16:22:48+00:00","article_modified_time":"2024-03-28T13:54:50+00:00","og_image":[{"url":"http:\/\/officetuts.net\/excel\/wp-content\/uploads\/sites\/2\/2022\/09\/word-image-11826-1.png"}],"author":"Christopher Sirali","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Christopher Sirali","Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/officetuts.net\/excel\/examples\/show-yes-no-in-a-pivottable\/#article","isPartOf":{"@id":"https:\/\/officetuts.net\/excel\/examples\/show-yes-no-in-a-pivottable\/"},"author":{"name":"Christopher Sirali","@id":"https:\/\/officetuts.net\/excel\/#\/schema\/person\/b303a8b219a448ca09f1e9eed3903370"},"headline":"Show Yes No in a PivotTable","datePublished":"2022-09-27T16:22:48+00:00","dateModified":"2024-03-28T13:54:50+00:00","mainEntityOfPage":{"@id":"https:\/\/officetuts.net\/excel\/examples\/show-yes-no-in-a-pivottable\/"},"wordCount":361,"publisher":{"@id":"https:\/\/officetuts.net\/excel\/#\/schema\/person\/41b0b6996aaa4c4127f86f3d24452d42"},"image":{"@id":"https:\/\/officetuts.net\/excel\/examples\/show-yes-no-in-a-pivottable\/#primaryimage"},"thumbnailUrl":"http:\/\/officetuts.net\/excel\/wp-content\/uploads\/sites\/2\/2022\/09\/word-image-11826-1.png","keywords":["file","pinterest"],"articleSection":["examples"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/officetuts.net\/excel\/examples\/show-yes-no-in-a-pivottable\/","url":"https:\/\/officetuts.net\/excel\/examples\/show-yes-no-in-a-pivottable\/","name":"Show Yes No in a PivotTable","isPartOf":{"@id":"https:\/\/officetuts.net\/excel\/#website"},"primaryImageOfPage":{"@id":"https:\/\/officetuts.net\/excel\/examples\/show-yes-no-in-a-pivottable\/#primaryimage"},"image":{"@id":"https:\/\/officetuts.net\/excel\/examples\/show-yes-no-in-a-pivottable\/#primaryimage"},"thumbnailUrl":"http:\/\/officetuts.net\/excel\/wp-content\/uploads\/sites\/2\/2022\/09\/word-image-11826-1.png","datePublished":"2022-09-27T16:22:48+00:00","dateModified":"2024-03-28T13:54:50+00:00","description":"Display Yes and No in a PivotTable by changing settings and creating a custom number format. How to show Yes for positives and No for empty cells.","breadcrumb":{"@id":"https:\/\/officetuts.net\/excel\/examples\/show-yes-no-in-a-pivottable\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/officetuts.net\/excel\/examples\/show-yes-no-in-a-pivottable\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/officetuts.net\/excel\/examples\/show-yes-no-in-a-pivottable\/#primaryimage","url":"http:\/\/officetuts.net\/excel\/wp-content\/uploads\/sites\/2\/2022\/09\/word-image-11826-1.png","contentUrl":"http:\/\/officetuts.net\/excel\/wp-content\/uploads\/sites\/2\/2022\/09\/word-image-11826-1.png"},{"@type":"BreadcrumbList","@id":"https:\/\/officetuts.net\/excel\/examples\/show-yes-no-in-a-pivottable\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/officetuts.net\/excel\/"},{"@type":"ListItem","position":2,"name":"Show Yes No in a PivotTable"}]},{"@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."},{"@type":"Person","@id":"https:\/\/officetuts.net\/excel\/#\/schema\/person\/b303a8b219a448ca09f1e9eed3903370","name":"Christopher Sirali","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/officetuts.net\/excel\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/21aaff468311813001dc2723f1937cf0?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/21aaff468311813001dc2723f1937cf0?s=96&d=mm&r=g","caption":"Christopher Sirali"}}]}},"_links":{"self":[{"href":"https:\/\/officetuts.net\/excel\/wp-json\/wp\/v2\/posts\/11826"}],"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\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/officetuts.net\/excel\/wp-json\/wp\/v2\/comments?post=11826"}],"version-history":[{"count":3,"href":"https:\/\/officetuts.net\/excel\/wp-json\/wp\/v2\/posts\/11826\/revisions"}],"predecessor-version":[{"id":15404,"href":"https:\/\/officetuts.net\/excel\/wp-json\/wp\/v2\/posts\/11826\/revisions\/15404"}],"wp:attachment":[{"href":"https:\/\/officetuts.net\/excel\/wp-json\/wp\/v2\/media?parent=11826"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/officetuts.net\/excel\/wp-json\/wp\/v2\/categories?post=11826"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/officetuts.net\/excel\/wp-json\/wp\/v2\/tags?post=11826"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}