{"id":1563,"date":"2019-08-09T10:28:22","date_gmt":"2019-08-09T15:28:22","guid":{"rendered":"http:\/\/xlfxs.com\/?p=1563"},"modified":"2019-08-09T10:28:22","modified_gmt":"2019-08-09T15:28:22","slug":"count-unique","status":"publish","type":"post","link":"https:\/\/xlfxs.com\/?p=1563","title":{"rendered":"Count Unique"},"content":{"rendered":"\n<p>A question by a colleague on how to count number of unique items in a column made me realize, I don&#8217;t have that here.<br><br>So here it is &#8230;<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>In new column, 1st cell or the range (Say E4 as in example) paste the formula<\/li><\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>=IF(CountIF($D$1:D3, D3)=1,\"Yes\", \"No\")<\/code><\/pre>\n\n\n\n<p>Then fill that E4 down to end of column<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Then in any cell, paste this<\/li><\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>=CountIF(E:E,\"Yes\")<\/code><\/pre>\n\n\n\n<p>This way, you get a column to indicate each value in D, if it is already found above or not, then you can count the ones that were not.<\/p>\n\n\n\n<ul class=\"wp-block-gallery columns-2 is-cropped wp-block-gallery-1 is-layout-flex wp-block-gallery-is-layout-flex\"><li class=\"blocks-gallery-item\"><figure><img decoding=\"async\" src=\"http:\/\/xlfxs.com\/wp-content\/uploads\/2019\/08\/IsUnique-8-8-2019-0017-2.png\" alt=\"\" data-id=\"1575\" data-link=\"http:\/\/xlfxs.com\/?attachment_id=1575\" class=\"wp-image-1575\"\/><\/figure><\/li><li class=\"blocks-gallery-item\"><figure><img decoding=\"async\" src=\"http:\/\/xlfxs.com\/wp-content\/uploads\/2019\/08\/IsUnique-8-8-2019-0018-2.png\" alt=\"\" data-id=\"1576\" data-link=\"http:\/\/xlfxs.com\/?attachment_id=1576\" class=\"wp-image-1576\"\/><\/figure><\/li><\/ul>\n\n\n\n<div class=\"row\">\n<div class=\"col-md-6 text-right\"><a class=\"btn btn-info btn-lg\" href=\"http:\/\/xlfxs.com\/wp-content\/uploads\/2019\/08\/CountUnique.xlsx\"><i class=\"fa fa-download\"><\/i> Download<\/a><\/div>\n<div class=\"col-md-6\"><a class=\"btn btn-info btn-lg\" href=\"https:\/\/1drv.ms\/x\/s!An4iomsT7EVO3J03_POB45sYyl6MLA?e=8LmT8A;\"><i class=\"fa fa-cloud\"><\/i> Online Excel version<\/a><\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>A question by a colleague on how to count number of unique items in a column made me realize, I don&#8217;t have that here.<\/p>\n<p>So here it is &#8230;<\/p>\n","protected":false},"author":1,"featured_media":1566,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[20,3,80,6,7,1],"tags":[118,147],"class_list":["post-1563","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-countif","category-formulas","category-if","category-standard_functions","category-statistical","category-uncategorized","tag-countif","tag-if"],"_links":{"self":[{"href":"https:\/\/xlfxs.com\/index.php?rest_route=\/wp\/v2\/posts\/1563","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/xlfxs.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/xlfxs.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/xlfxs.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/xlfxs.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1563"}],"version-history":[{"count":0,"href":"https:\/\/xlfxs.com\/index.php?rest_route=\/wp\/v2\/posts\/1563\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/xlfxs.com\/index.php?rest_route=\/wp\/v2\/media\/1566"}],"wp:attachment":[{"href":"https:\/\/xlfxs.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1563"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/xlfxs.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1563"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/xlfxs.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1563"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}