{"id":4835,"date":"2019-11-11T15:03:09","date_gmt":"2019-11-11T15:03:09","guid":{"rendered":"http:\/\/officetuts.net\/excel\/?p=4835"},"modified":"2024-03-30T11:08:50","modified_gmt":"2024-03-30T11:08:50","slug":"count-duplicate-values","status":"publish","type":"post","link":"https:\/\/officetuts.net\/excel\/formulas\/count-duplicate-values\/","title":{"rendered":"Count Duplicate Values in Excel"},"content":{"rendered":"\n
Count-Duplicate-Values<\/a>Download File<\/a><\/div>\n\n\n\n

In this lesson, I’ll show you a few ways you can use to count\nduplicate values in Excel. Some of these formulas are more complicated than\nothers.<\/p>\n\n\n\n

We are going to use the following example.<\/p>\n\n\n\n

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

Let’s make it more appealing visually go to HOME >> Styles >> Conditional\nFormatting >> Highlight Cells Rules<\/strong> and select Duplicate Values.<\/strong><\/p>\n\n\n\n

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

Count all duplicate values<\/h2>\n\n\n\n

The first formula is the most complicated one. It’ll count\nthe number o duplicates and sum them, so we will get a single result.<\/p>\n\n\n\n

Enter this formula, and press Ctrl + Shift + Enter<\/strong> to insert it as an array formula<\/a>.<\/p>\n\n\n\n

=ROWS($A$2:$A$10)-SUM(IF(COUNTIF($A$2:$A$10,$A$2:$A$10)=1,1,0))<\/code><\/pre>\n\n\n\n

Count duplicate instances<\/h2>\n\n\n\n

Now, instead of counting all duplicates at once, let’s\nseparate them into different names, and count how many times the same name\nappears.<\/p>\n\n\n\n

Enter the following formula into cell D2<\/strong> and AutoFill<\/a> them for other results.<\/p>\n\n\n\n

=COUNTIF($A$2:$A$10,C2)<\/code><\/pre>\n\n\n\n
\"\"<\/figure>\n\n\n\n

Count duplicate instances without the first occurrence<\/h2>\n\n\n\n

It’s very similar to the last method. Just subtract 1 if the\nvalue is at least one. We don’t want to subtract from values that don’t appear\ninside the column because we would get negative values.<\/p>\n\n\n\n

In this case, let’s use the IF<\/a> function.<\/p>\n\n\n\n

=IF(COUNTIF($A$2:$A$10,C2)>0,COUNTIF($A$2:$A$10,C2)-1,0)<\/code><\/pre>\n\n\n\n

The second argument of the IF<\/strong> function will be executed if the result of the COUNTIF<\/a> function is greater than 0, otherwise, it returns 0.<\/p>\n\n\n\n

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

You can count all duplicates by summing the occurrences.<\/p>\n\n\n\n

Count duplicates without using the function<\/h2>\n\n\n\n

There is a way to count the number of duplicates without\nusing the complicated formula.<\/p>\n\n\n\n

Select values you want to find duplicates and navigate to Data >> Sort & Filter >>\nAdvanced<\/strong>. Select Copy to another\nlocation<\/strong> and check Unique records\nonly<\/strong>.<\/p>\n\n\n\n

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

After you click OK<\/strong>,\nyou are going to have unique values next to your list. The difference is the\nnumber of duplicates.<\/p>\n\n\n\n

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

In this lesson, I’ll show you a few ways you can use to count duplicate values in Excel. Some of these formulas are…<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[23],"tags":[170,190],"yoast_head":"\nCount Duplicate Values in Excel<\/title>\n<meta name=\"description\" content=\"Learn how to count duplicate values in Excel with different formulas. Download the example file and follow the step-by-step guide. #ExcelTips #MicrosoftExcel\" \/>\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\/formulas\/count-duplicate-values\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Count Duplicate Values in Excel\" \/>\n<meta property=\"og:description\" content=\"Learn how to count duplicate values in Excel with different formulas. Download the example file and follow the step-by-step guide. #ExcelTips #MicrosoftExcel\" \/>\n<meta property=\"og:url\" content=\"https:\/\/officetuts.net\/excel\/formulas\/count-duplicate-values\/\" \/>\n<meta property=\"article:published_time\" content=\"2019-11-11T15:03:09+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-03-30T11:08:50+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/officetuts.net\/excel\/wp-content\/uploads\/sites\/2\/2019\/11\/example-count-duplicate-values.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=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/officetuts.net\/excel\/formulas\/count-duplicate-values\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/officetuts.net\/excel\/formulas\/count-duplicate-values\/\"},\"author\":{\"name\":\"Tomasz Decker\",\"@id\":\"https:\/\/officetuts.net\/excel\/#\/schema\/person\/41b0b6996aaa4c4127f86f3d24452d42\"},\"headline\":\"Count Duplicate Values in Excel\",\"datePublished\":\"2019-11-11T15:03:09+00:00\",\"dateModified\":\"2024-03-30T11:08:50+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/officetuts.net\/excel\/formulas\/count-duplicate-values\/\"},\"wordCount\":312,\"publisher\":{\"@id\":\"https:\/\/officetuts.net\/excel\/#\/schema\/person\/41b0b6996aaa4c4127f86f3d24452d42\"},\"image\":{\"@id\":\"https:\/\/officetuts.net\/excel\/formulas\/count-duplicate-values\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/officetuts.net\/excel\/wp-content\/uploads\/sites\/2\/2019\/11\/example-count-duplicate-values.png\",\"keywords\":[\"file\",\"pinterest\"],\"articleSection\":[\"formulas\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/officetuts.net\/excel\/formulas\/count-duplicate-values\/\",\"url\":\"https:\/\/officetuts.net\/excel\/formulas\/count-duplicate-values\/\",\"name\":\"Count Duplicate Values in Excel\",\"isPartOf\":{\"@id\":\"https:\/\/officetuts.net\/excel\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/officetuts.net\/excel\/formulas\/count-duplicate-values\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/officetuts.net\/excel\/formulas\/count-duplicate-values\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/officetuts.net\/excel\/wp-content\/uploads\/sites\/2\/2019\/11\/example-count-duplicate-values.png\",\"datePublished\":\"2019-11-11T15:03:09+00:00\",\"dateModified\":\"2024-03-30T11:08:50+00:00\",\"description\":\"Learn how to count duplicate values in Excel with different formulas. Download the example file and follow the step-by-step guide. #ExcelTips #MicrosoftExcel\",\"breadcrumb\":{\"@id\":\"https:\/\/officetuts.net\/excel\/formulas\/count-duplicate-values\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/officetuts.net\/excel\/formulas\/count-duplicate-values\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/officetuts.net\/excel\/formulas\/count-duplicate-values\/#primaryimage\",\"url\":\"https:\/\/officetuts.net\/excel\/wp-content\/uploads\/sites\/2\/2019\/11\/example-count-duplicate-values.png\",\"contentUrl\":\"https:\/\/officetuts.net\/excel\/wp-content\/uploads\/sites\/2\/2019\/11\/example-count-duplicate-values.png\",\"width\":154,\"height\":240},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/officetuts.net\/excel\/formulas\/count-duplicate-values\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/officetuts.net\/excel\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Count Duplicate 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":"Count Duplicate Values in Excel","description":"Learn how to count duplicate values in Excel with different formulas. Download the example file and follow the step-by-step guide. #ExcelTips #MicrosoftExcel","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\/formulas\/count-duplicate-values\/","og_locale":"en_US","og_type":"article","og_title":"Count Duplicate Values in Excel","og_description":"Learn how to count duplicate values in Excel with different formulas. Download the example file and follow the step-by-step guide. #ExcelTips #MicrosoftExcel","og_url":"https:\/\/officetuts.net\/excel\/formulas\/count-duplicate-values\/","article_published_time":"2019-11-11T15:03:09+00:00","article_modified_time":"2024-03-30T11:08:50+00:00","og_image":[{"url":"https:\/\/officetuts.net\/excel\/wp-content\/uploads\/sites\/2\/2019\/11\/example-count-duplicate-values.png"}],"author":"Tomasz Decker","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Tomasz Decker","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/officetuts.net\/excel\/formulas\/count-duplicate-values\/#article","isPartOf":{"@id":"https:\/\/officetuts.net\/excel\/formulas\/count-duplicate-values\/"},"author":{"name":"Tomasz Decker","@id":"https:\/\/officetuts.net\/excel\/#\/schema\/person\/41b0b6996aaa4c4127f86f3d24452d42"},"headline":"Count Duplicate Values in Excel","datePublished":"2019-11-11T15:03:09+00:00","dateModified":"2024-03-30T11:08:50+00:00","mainEntityOfPage":{"@id":"https:\/\/officetuts.net\/excel\/formulas\/count-duplicate-values\/"},"wordCount":312,"publisher":{"@id":"https:\/\/officetuts.net\/excel\/#\/schema\/person\/41b0b6996aaa4c4127f86f3d24452d42"},"image":{"@id":"https:\/\/officetuts.net\/excel\/formulas\/count-duplicate-values\/#primaryimage"},"thumbnailUrl":"https:\/\/officetuts.net\/excel\/wp-content\/uploads\/sites\/2\/2019\/11\/example-count-duplicate-values.png","keywords":["file","pinterest"],"articleSection":["formulas"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/officetuts.net\/excel\/formulas\/count-duplicate-values\/","url":"https:\/\/officetuts.net\/excel\/formulas\/count-duplicate-values\/","name":"Count Duplicate Values in Excel","isPartOf":{"@id":"https:\/\/officetuts.net\/excel\/#website"},"primaryImageOfPage":{"@id":"https:\/\/officetuts.net\/excel\/formulas\/count-duplicate-values\/#primaryimage"},"image":{"@id":"https:\/\/officetuts.net\/excel\/formulas\/count-duplicate-values\/#primaryimage"},"thumbnailUrl":"https:\/\/officetuts.net\/excel\/wp-content\/uploads\/sites\/2\/2019\/11\/example-count-duplicate-values.png","datePublished":"2019-11-11T15:03:09+00:00","dateModified":"2024-03-30T11:08:50+00:00","description":"Learn how to count duplicate values in Excel with different formulas. Download the example file and follow the step-by-step guide. #ExcelTips #MicrosoftExcel","breadcrumb":{"@id":"https:\/\/officetuts.net\/excel\/formulas\/count-duplicate-values\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/officetuts.net\/excel\/formulas\/count-duplicate-values\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/officetuts.net\/excel\/formulas\/count-duplicate-values\/#primaryimage","url":"https:\/\/officetuts.net\/excel\/wp-content\/uploads\/sites\/2\/2019\/11\/example-count-duplicate-values.png","contentUrl":"https:\/\/officetuts.net\/excel\/wp-content\/uploads\/sites\/2\/2019\/11\/example-count-duplicate-values.png","width":154,"height":240},{"@type":"BreadcrumbList","@id":"https:\/\/officetuts.net\/excel\/formulas\/count-duplicate-values\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/officetuts.net\/excel\/"},{"@type":"ListItem","position":2,"name":"Count Duplicate 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\/4835"}],"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=4835"}],"version-history":[{"count":3,"href":"https:\/\/officetuts.net\/excel\/wp-json\/wp\/v2\/posts\/4835\/revisions"}],"predecessor-version":[{"id":13650,"href":"https:\/\/officetuts.net\/excel\/wp-json\/wp\/v2\/posts\/4835\/revisions\/13650"}],"wp:attachment":[{"href":"https:\/\/officetuts.net\/excel\/wp-json\/wp\/v2\/media?parent=4835"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/officetuts.net\/excel\/wp-json\/wp\/v2\/categories?post=4835"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/officetuts.net\/excel\/wp-json\/wp\/v2\/tags?post=4835"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}