{"id":1967,"date":"2015-11-18T19:03:29","date_gmt":"2015-11-18T18:03:29","guid":{"rendered":"https:\/\/www.myexcelonline.com\/?p=1967"},"modified":"2024-03-29T21:36:10","modified_gmt":"2024-03-29T20:36:10","slug":"distinct-or-unique-count-with-excel-pivot-tables","status":"publish","type":"post","link":"https:\/\/www.myexcelonline.com\/meo-staging\/blog\/distinct-or-unique-count-with-excel-pivot-tables\/","title":{"rendered":"Distinct or Unique Count with Excel Pivot Tables"},"content":{"rendered":"<p>Excel 2013 added some new features to its arsenal and one that has been well overdue\u00a0was the <a href=\"https:\/\/www.myexcelonline.com\/meo-staging\/blog\/find-unique-values-in-excel\/\" target=\"_blank\" rel=\"noopener\">distinct or<\/a> unique count.<\/p>\n<p>Previously when we created a <a class=\"wpil_keyword_link\" href=\"https:\/\/www.myexcelonline.com\/meo-staging\/blog\/101-excel-pivot-tables\/\" target=\"_blank\" rel=\"noopener\" title=\"Pivot Table\" data-wpil-keyword-link=\"linked\">Pivot Table<\/a> and dropped a <em>Customers<\/em> field in the Row Labels and then again in the Values area we got the<strong>\u00a0&#8220;total number of transactions&#8221; <\/strong>for each customer.<\/p>\n<p>But what about if we want to show the total unique customers?<\/p>\n<p>In Excel 2013 we can, by using the newly created Pivot Table\u00a0<strong>Data Model<\/strong>:<\/p>\n<p><span style=\"color: #ff0000\"><strong>STEP 1:<\/strong><\/span> Click in your data source and go to<strong><em> Insert &gt; Pivot Table<\/em><\/strong><\/p>\n<p><span style=\"color: #ff0000\"><strong>STEP 2:<\/strong><\/span> The important step here is to<strong> &#8220;check&#8221; <\/strong>the<strong> <span style=\"text-decoration: underline\">Add this to the Data Model<\/span> <\/strong>box and press <strong>OK<\/strong><\/p>\n<p><a href=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2015\/11\/2015-11-18_18-58-56.png\" target=\"_blank\"><img loading=\"lazy\" decoding=\"async\" title=\"Distinct or Unique Count with Excel Pivot Tables\" class=\"alignnone wp-image-1974 size-full\" src=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2015\/11\/2015-11-18_18-58-56.png\" alt=\"Distinct or Unique Count with Excel Pivot Tables\" width=\"387\" height=\"327\" srcset=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2015\/11\/2015-11-18_18-58-56.png 387w, https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2015\/11\/2015-11-18_18-58-56-300x253.png 300w\" sizes=\"(max-width: 387px) 100vw, 387px\" \/><\/a><\/p>\n<p><span style=\"color: #ff0000\"><strong>STEP 3:<\/strong><\/span> This will create a Pivot Table. \u00a0Now <strong>drop the <em>Customers<\/em> field in the Row and Values areas<\/strong> which will give you the &#8220;total transactions&#8221; for each customer<\/p>\n<p><span style=\"color: #ff0000\"><strong>STEP 4:<\/strong><\/span> To get a Distinct Count, you need to click on the<strong> Values drop down<\/strong> for the <em>Count of Customers<\/em> and select the<strong> Value Field Settings<\/strong><\/p>\n<p><span style=\"color: #ff0000\"><strong>STEP 5:<\/strong><\/span> Under <strong>Summarize Values By<\/strong> tab, select the last option, <strong>Distinct Count<\/strong> and press <strong>OK<\/strong><\/p>\n<p><a href=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2015\/11\/2015-11-18_19-01-46.png\" target=\"_blank\"><img loading=\"lazy\" decoding=\"async\" title=\"Distinct or Unique Count with Excel Pivot Tables\" class=\"alignnone wp-image-1975 size-full\" src=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2015\/11\/2015-11-18_19-01-46.png\" alt=\"Distinct or Unique Count with Excel Pivot Tables\" width=\"373\" height=\"319\" srcset=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2015\/11\/2015-11-18_19-01-46.png 373w, https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2015\/11\/2015-11-18_19-01-46-300x257.png 300w\" sizes=\"(max-width: 373px) 100vw, 373px\" \/><\/a><\/p>\n<p>See how this is done with the following animated tutorial plus you can download the workbook&#8230;<\/p>\n<div class=\"after-post-box\">\n<p><iframe src=\"https:\/\/www.youtube.com\/embed\/aP4m9oHZMc0?rel=0 \" width=\"800\" height=\"400\" frameborder=\"0\" allowfullscreen=\"allowfullscreen\"><span data-mce-type=\"bookmark\" style=\"width: 0px;overflow: hidden;line-height: 0\" class=\"mce_SELRES_start\">\ufeff<\/span><\/iframe><a href=\"https:\/\/www.youtube.com\/c\/MyExcelOnlinecomtutorials?sub_confirmation=1\" target=\"_blank\" rel=\"noopener noreferrer nofollow\"><img loading=\"lazy\" decoding=\"async\" class=\"alignmiddle wp-image-111468 size-full\" style=\"vertical-align: middle\" src=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2019\/04\/1.yt_.png\" alt=\"\" title=\"\"><\/a><\/p>\n<p class=\"line-two\"><a class=\"IRPP_minimalist icon-download button small\" href=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2015\/11\/Distinct-Count.xlsx\" target=\"_blank\" rel=\"noopener noreferrer\" data-leadbox=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2015\/11\/Distinct-Count.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\">Distinct-Count.xlsx<\/span><\/a><\/p>\n<\/div>\n<p>&nbsp;<\/p>\n<p><a href=\"https:\/\/www.myexcelonline.com\/meo-staging\/100-5.html\" target=\"_blank\" rel=\"noopener noreferrer\"><img loading=\"lazy\" decoding=\"async\" title=\"Adding Data Labels To An Excel Chart\" class=\"alignnone wp-image-1017 size-full\" src=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2014\/11\/728x90.jpg\" alt=\"Adding Data Labels To An Excel Chart\" width=\"728\" height=\"90\" srcset=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2014\/11\/728x90.jpg 728w, https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2014\/11\/728x90-300x37.jpg 300w\" sizes=\"(max-width: 728px) 100vw, 728px\" \/><\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Excel 2013 added some new features to its arsenal and one that has been well overdue\u00a0was the distinct or unique count. Previously when we created a Pivot Table and dropped a Customers field in the Row Labels and then again in the Values area we got the\u00a0&#8220;total number of transactions&#8221; for each customer. But what [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":17516,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"cos_headline_score":0,"cos_seo_score":0,"cos_headline_text":"","cos_headline_has_been_analyzed":false,"cos_last_analyzed_headline":[],"om_disable_all_campaigns":false},"categories":[18,4],"tags":[88,86],"acf":[],"_links":{"self":[{"href":"https:\/\/www.myexcelonline.com\/meo-staging\/wp-json\/wp\/v2\/posts\/1967"}],"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=1967"}],"version-history":[{"count":0,"href":"https:\/\/www.myexcelonline.com\/meo-staging\/wp-json\/wp\/v2\/posts\/1967\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.myexcelonline.com\/meo-staging\/wp-json\/wp\/v2\/media\/17516"}],"wp:attachment":[{"href":"https:\/\/www.myexcelonline.com\/meo-staging\/wp-json\/wp\/v2\/media?parent=1967"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.myexcelonline.com\/meo-staging\/wp-json\/wp\/v2\/categories?post=1967"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.myexcelonline.com\/meo-staging\/wp-json\/wp\/v2\/tags?post=1967"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}