ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   How do I identify dulicate rows in a spreadsheet? (https://www.excelbanter.com/excel-discussion-misc-queries/23880-how-do-i-identify-dulicate-rows-spreadsheet.html)

Spyder

How do I identify dulicate rows in a spreadsheet?
 
I have a spreadsheet with over a thousand rows. That sheet contains five
columns. I am doing an average on column 5, but have some duplicates. I
want to identify those duplicates so that I can eliminate them. If columns
1, 2 and 3 are the same for any of the rows, the row(s) is a duplicate. Is
there an easy way to identify these duplicates quickly, using a function or
pivot table?

Thanks for any help!!
Jeff

roadkill

I suggest sorting the table by column 1, then 2, then 3 (but first add a
column somewhere with consecutive line numbers if you want to be able to get
things back in their original order). Once sorted, make up a column for
identifying duplicates and use an IF like the following in each cell of this
column to find the duplicates.

=if(and(A1=A2, B1=B2, C1=C2),"X","")

Then eliminate any row with an "X" in it. These are your duplicates. Then
you can re-sort back to the original order, if desired.
- Will

"Spyder" wrote:

I have a spreadsheet with over a thousand rows. That sheet contains five
columns. I am doing an average on column 5, but have some duplicates. I
want to identify those duplicates so that I can eliminate them. If columns
1, 2 and 3 are the same for any of the rows, the row(s) is a duplicate. Is
there an easy way to identify these duplicates quickly, using a function or
pivot table?

Thanks for any help!!
Jeff



All times are GMT +1. The time now is 12:43 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com