{"id":4502,"date":"2019-01-31T17:51:29","date_gmt":"2019-01-31T22:51:29","guid":{"rendered":"http:\/\/lisa.rushworth.us\/?p=4502"},"modified":"2019-01-31T18:12:20","modified_gmt":"2019-01-31T23:12:20","slug":"did-you-know-you-can-remove-duplicates-in-excel","status":"publish","type":"post","link":"https:\/\/www.rushworth.us\/lisa\/?p=4502","title":{"rendered":"Did you know \u2026 you can remove duplicates in Excel?"},"content":{"rendered":"<p>I use Excel\u2019s <a href=\"https:\/\/support.office.com\/en-us\/article\/countif-function-e0de10c6-f885-4e71-abb4-1f464816df34\" target=\"_blank\" rel=\"noopener\">COUNTIF<\/a> function a LOT for reporting. When I want to count the number of transactions that occurred per day (or during a date range), it\u2019s easy enough to get the list of IF\u2019s to count. But when I need to find the occurrence of different text strings, I need a unique list <em>of<\/em> the strings first. \u201cRemove duplicates\u201d quickly exactly what I need.<\/p>\n<p>In this example, I have a list of all employees and contractor\u2019s departments and titles \u2013 I want to know how many people are in each department and how many people have each title. Removing duplicates modifies the data, so the first step is to make a copy of the spreadsheet. Highlight the data. Select \u201cData\u201d on the ribbon bar, then select \u201cRemove Duplicates\u201d<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"1917\" height=\"517\" class=\"wp-image-4503\" src=\"http:\/\/lisa.rushworth.us\/wp-content\/uploads\/2019\/01\/word-image-67.png\" srcset=\"https:\/\/www.rushworth.us\/lisa\/wp-content\/uploads\/2019\/01\/word-image-67.png 1917w, https:\/\/www.rushworth.us\/lisa\/wp-content\/uploads\/2019\/01\/word-image-67-300x81.png 300w, https:\/\/www.rushworth.us\/lisa\/wp-content\/uploads\/2019\/01\/word-image-67-768x207.png 768w, https:\/\/www.rushworth.us\/lisa\/wp-content\/uploads\/2019\/01\/word-image-67-1024x276.png 1024w\" sizes=\"auto, (max-width: 1917px) 100vw, 1917px\" \/><\/p>\n<p>Select the column(s) where you want to remove duplicate data. This could be exact duplicates across multiple columns (e.g. the unique \u201cCity, State\u201d combinations), or (in this case) I just want a unique list of departments. Click OK.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"434\" height=\"350\" class=\"wp-image-4504\" src=\"http:\/\/lisa.rushworth.us\/wp-content\/uploads\/2019\/01\/word-image-68.png\" srcset=\"https:\/\/www.rushworth.us\/lisa\/wp-content\/uploads\/2019\/01\/word-image-68.png 434w, https:\/\/www.rushworth.us\/lisa\/wp-content\/uploads\/2019\/01\/word-image-68-300x242.png 300w\" sizes=\"auto, (max-width: 434px) 100vw, 434px\" \/><\/p>\n<p>A summary will be displayed showing you how many records were removed and how many unique values remain.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"497\" height=\"145\" class=\"wp-image-4505\" src=\"http:\/\/lisa.rushworth.us\/wp-content\/uploads\/2019\/01\/word-image-69.png\" srcset=\"https:\/\/www.rushworth.us\/lisa\/wp-content\/uploads\/2019\/01\/word-image-69.png 497w, https:\/\/www.rushworth.us\/lisa\/wp-content\/uploads\/2019\/01\/word-image-69-300x88.png 300w\" sizes=\"auto, (max-width: 497px) 100vw, 497px\" \/><\/p>\n<p>Now that I have a complete listing of departments, I can use my COUNTIF function to show how many employees and contractors are in each department.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"1919\" height=\"695\" class=\"wp-image-4506\" src=\"http:\/\/lisa.rushworth.us\/wp-content\/uploads\/2019\/01\/word-image-70.png\" srcset=\"https:\/\/www.rushworth.us\/lisa\/wp-content\/uploads\/2019\/01\/word-image-70.png 1919w, https:\/\/www.rushworth.us\/lisa\/wp-content\/uploads\/2019\/01\/word-image-70-300x109.png 300w, https:\/\/www.rushworth.us\/lisa\/wp-content\/uploads\/2019\/01\/word-image-70-768x278.png 768w, https:\/\/www.rushworth.us\/lisa\/wp-content\/uploads\/2019\/01\/word-image-70-1024x371.png 1024w\" sizes=\"auto, (max-width: 1919px) 100vw, 1919px\" \/><\/p>\n<p>Remove duplicates only deletes records within the highlighted data. Here, I have a list of all employee titles next to the department and count info we just created. If I highlight <em>just<\/em> the \u2018Title\u2019 data and click \u201cRemove Duplicates\u201d, the department and count information is left unchanged.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"1919\" height=\"615\" class=\"wp-image-4507\" src=\"http:\/\/lisa.rushworth.us\/wp-content\/uploads\/2019\/01\/word-image-71.png\" srcset=\"https:\/\/www.rushworth.us\/lisa\/wp-content\/uploads\/2019\/01\/word-image-71.png 1919w, https:\/\/www.rushworth.us\/lisa\/wp-content\/uploads\/2019\/01\/word-image-71-300x96.png 300w, https:\/\/www.rushworth.us\/lisa\/wp-content\/uploads\/2019\/01\/word-image-71-768x246.png 768w, https:\/\/www.rushworth.us\/lisa\/wp-content\/uploads\/2019\/01\/word-image-71-1024x328.png 1024w\" sizes=\"auto, (max-width: 1919px) 100vw, 1919px\" \/><\/p>\n<p>Now I have a unique list of titles as well.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"1919\" height=\"567\" class=\"wp-image-4508\" src=\"http:\/\/lisa.rushworth.us\/wp-content\/uploads\/2019\/01\/word-image-72.png\" srcset=\"https:\/\/www.rushworth.us\/lisa\/wp-content\/uploads\/2019\/01\/word-image-72.png 1919w, https:\/\/www.rushworth.us\/lisa\/wp-content\/uploads\/2019\/01\/word-image-72-300x89.png 300w, https:\/\/www.rushworth.us\/lisa\/wp-content\/uploads\/2019\/01\/word-image-72-768x227.png 768w, https:\/\/www.rushworth.us\/lisa\/wp-content\/uploads\/2019\/01\/word-image-72-1024x303.png 1024w\" sizes=\"auto, (max-width: 1919px) 100vw, 1919px\" \/><\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I use Excel\u2019s COUNTIF function a LOT for reporting. When I want to count the number of transactions that occurred per day (or during a date range), it\u2019s easy enough to get the list of IF\u2019s to count. But when I need to find the occurrence of different text strings, I need a unique list &hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[677],"tags":[675,708,709,691,729,731],"class_list":["post-4502","post","type-post","status-publish","format-standard","hentry","category-office-365","tag-did-you-know","tag-excel","tag-microsoft-excel","tag-microsoft-office","tag-microsoft-office-365","tag-ms-excel"],"_links":{"self":[{"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=\/wp\/v2\/posts\/4502","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=4502"}],"version-history":[{"count":1,"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=\/wp\/v2\/posts\/4502\/revisions"}],"predecessor-version":[{"id":4509,"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=\/wp\/v2\/posts\/4502\/revisions\/4509"}],"wp:attachment":[{"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=4502"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=4502"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=4502"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}