Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Finding duplicate rows in excel

Tags:

excel

I have an excel spreadsheet with two rows. One is for name, and the other is for id. Is there any way i can find the rows that have the exact same id and allow me to easily see those? For example i have the rows:

Name:     Id
Hello     1
World     5
Mylo      1
Jack      6
Jil       9
Frank     5

So in the above example data, excel should somehow mark the rows with hello and mylo and world and frank to indicate that there are duplicate id's for those

like image 419
John Baum Avatar asked Apr 13 '12 15:04

John Baum


2 Answers

In the third column you could add this formula (cell B3 example) :

=IF(COUNTIF(B$2:B$7,"="&B2)>1,"<--Dup!","") 

You will have to adjust the range B$2:B$7 to reflect the actual data range...

like image 89
DJ. Avatar answered Oct 26 '22 16:10

DJ.


The absolute fastest and easiest way. Conditional formatting, highlight duplicates (on the ID column). Then filter the column (presumably in a table) by the coloring (above the check boxes).

like image 29
Ross Larson Avatar answered Oct 26 '22 15:10

Ross Larson