Microsoft Excel - How to Quickly Find Repeated Values in a Column

Imagine you have an Excel spreadsheet that containsBB
a list of values that appear in a single column, and letsDD
say this column contains id numbers. It happens thatEE
the spreadsheet data was obtained from an invoicesGG
list of the previous month, and you are asked toGG
obtain the number of unique customers from that list.KK
If the list contains less than 20 or 30 rows that couldSS
be something you can easily do manually just bySS
looking and counting them, but what happens when4. Go to cell B1 and type the following formula
the list contains 200 or even 3000 rows?(including the left "=" sign) and press Enter:
That's when you have to find a method to let=IF(A1=A2, 1, 0)
Microsoft Excel do the hard work, and you can5. The value in B1 should be "1", because what the
achieve that by following the steps in this example:formula is doing is that when the value in cell A1 is
1. Lets say you have these simple values in column A,equal to value in cell A2 then it should write a "1", else
starting from row 1 to row 10:it should show a "0". Copy cell B1 (Ctrl+C), and paste
BBit in cells B2 to B10, right next to every value on the
DDlist we are using.
GG6. This is the result we should get:
EEAA 0
GGBB 1
SSBB 0
BBDD 0
AAEE 0
KKGG 1
SSGG 0
2. First we have to get our data sorted, so we clickKK 0
on the first value (that would be cell A1 in theSS 1
example), and then go up to the menu item calledSS 0
"Data" and select the option "Sort".Notice it? Using the IF formula we have found how
3. The Sort window should appear, and by default itmany repeated values exist in the list, which in this
will show the option "Sort by" and the value "Columncase would be the three cells that have a "1" value
A". Press the OK button. That should have changednext to them.
our list into this:This method will save you a lot of time and effort,
AAso practice it as much as you can!
BB