In order to remove duplicate rows from Microsoft Excel you must first identify which rows contain duplicates.

A
1 Names
2 Mark
3 Matt
4 Michelle
5 David
6 Daniel
7 Nick
8 Rob
9 Gina
10 Matt

To do this easily, follow the steps below:

  • Sort the data by the column you think contains the duplicates. (in this case, column A)
  • Insert a new column next to it (this is temporary. in this case, column B).
  • Add an 'If' formula that compares the value in the cell next to it to the value immediately above it in the list. For example in cell B3 we would put, =if(a3=a2,"Dup","")

    A B
    1 Names
    2 Daniel
    3 David =if(a3=a2,"Dup","")
    4 Gina
    5 Mark
    6 Matt
    7 Matt
    8 Michelle
    9 Nick
    10 Rob
    • Copy the formula down through the list.
    • In the example above, row 7 will display "Dup" in column B, the rest will be blank
    • Highlight the top row and select Data, Filter, AutoFilter.  This will create a dropdown list with choices that exist in that column.
    • For column B, filter on "Dup"
    • Highlight all the rows that remain visible (the non-duplicate rows will be hidden).
    • Delete them.
    • Take off the filter (select 'All' from the dropdown box).
    • Sort the entire data set again to remove the blank rows.

    And there you have it!  The easy way to remove duplicate rows from excel!

      [Slashdot] [Digg] [Reddit] [del.icio.us] [Facebook] [Technorati] [Google] [StumbleUpon]