Excel.Tips.Net: Checking for Duplicate Rows in Microsoft Excel

By Allen Wyatt for Excel.Tips.Net

Checking for Duplicate Rows Based on a Range of Columns in Microsoft Excel

Jennifer has a lot of data in a worksheet, and she considers some of the rows to be duplicates. She determines whether a row is a duplicate based upon whether a range of columns in one row is identical to the same range of columns in the previous row. For instance, if all of the values in F7:AB7 are identical to the values in F6:AB6, the Jennifer would consider row 7 to be a duplicate of row 6. She wonders if there is a way that she can easily check for such duplicate rows and highlight the duplicates in some manner.

One approach to this problem is to utilize the conditional formatting capabilities of Excel. If your data is in rows A1:AZ100, then select the range You could then use the following as a formulaic test within your conditional format:

=IF(AND($F2:$AB2=$F1:$AB1),1,0)=1

If your conditional format applies a color to the cells, then you’ll see the color appear anytime the values in columns F through AB are equal to the values in the same columns of the row directly above the one that is colored.

Article Continued Here

(Visited 25 times, 1 visits today)

One thought on “Excel.Tips.Net: Checking for Duplicate Rows in Microsoft Excel

  1. This formula is only comparing one row with another. What if you have a table that has 100 rows and you want to identify all duplicate rows that exist within it over several columns, not just one?

    Thanks.

Leave a Reply

Your email address will not be published. Required fields are marked *