+ Reply to Thread
Results 1 to 4 of 4

Deleting Duplicates

  1. #1
    Forum Contributor
    Join Date
    12-30-2008
    Location
    Woking, England
    MS-Off Ver
    Excel 2007
    Posts
    197

    Deleting Duplicates

    Hi there,

    Please could you help me by writing a formula that will highlight duplicates. I want to use the supplier code (column D) as the search criteria.

    Please can the formula identify these duplicates by entering the word 'duplicate' in column L.

    Thanks in advance

    Sam
    Attached Files Attached Files
    Last edited by 3smees23; 05-07-2009 at 10:48 AM.

  2. #2
    Forum Contributor
    Join Date
    04-16-2009
    Location
    Stellenbosch, South Africa
    MS-Off Ver
    Excel 2003; Excel 2007; Excel 2010; Excel 2013
    Posts
    136

    re: Deleting Duplicates

    Hello Sam

    Column D appears to be a description, not a supplier code. That said the following in L2 and copied to end of range:

    =IF(COUNTIF($D$2:D2,D2)>1,"Duplicate","Unique")

    This will flag duplicates in column D as 'Duplicate', otherwise will return 'Unique'.
    Regards

    Jon (Excel 2003, 2007, 2010, 2013)

  3. #3
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    re: Deleting Duplicates

    depends on what you want to do, delete duplicates leaving 1 unique or delete all duplicates
    =IF(COUNTIF($C$2:C2,C2)>1,"Duplicate","Unique") will flag for duplicates leaving first one found not flagged
    =IF(COUNTIF(C:C,C2)>1,"Duplicate","Unique") will show all duplicates
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  4. #4
    Forum Contributor
    Join Date
    12-30-2008
    Location
    Woking, England
    MS-Off Ver
    Excel 2007
    Posts
    197

    re: Deleting Duplicates

    Thanks Jon/Martin

    Jon - Yeah I meant C ! Sorry if I wasn't clear

    Martin - The second formula was top stuff as I need to delete just the duplicates.

    Regards

    Sam

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1