Posts Tagged ‘count if’

MS Excel – Finding Repeated Values

 

Scenario

Sometimes it is required to verify a particular column for repeated values in MS Excel sheet. It would be similar to the use of distinct clause in SQL statement.

 

Solution

We can use CountIF function to determine repeated values as shown below:

 

The syntax is: =CountIF (Range, Value to search for) > 1

where Range >> Specified as $A$2:$A$20. It means all cells from Row: 2 to 20 and Column: A.

Value to search for >> Specified as A2. It means value in the cell – A2 should be looked for in above range.

 

Press Enter. Then drag the value of cell B2 to all other cells below it. System will automatically update the formula and value of the cell. All cells with value = TRUE signifies that corresponding column A values has repetitions in the list.