+ Reply to Thread
Results 1 to 5 of 5

Deleting duplicate references with certain criteria

  1. #1
    Registered User
    Join Date
    04-15-2014
    Location
    Birmingham,England
    MS-Off Ver
    Excel 2013
    Posts
    42

    Deleting duplicate references with certain criteria

    Hi

    Please can someone advise. I have a spreadsheet with consecutive references. Some of those references are duplicates. I have already got a formula to identify those duplicates. However, in a separate column named 'CERTIFICATE', there is an entry on some of the duplicate records. I would like to remove the duplicate record without the entry in the 'CERTIFICATE' column if that makes sense, and leave the record with the entry in intact. Can someone provide me with a formula which will identify the duplicate column without an entry in the 'CERTIFICATE' column so I can remove it please.

    I have attached a copy of the spreadsheet.

    Thank you.
    Attached Files Attached Files

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,728

    Re: Deleting duplicate references with certain criteria

    Put this formula in B2:

    =IF(AND(COUNTIF(A:A,A2)>1,D2=""),"remove","")

    and copy down.

    Hope this helps.

    Pete

  3. #3
    Registered User
    Join Date
    04-15-2014
    Location
    Birmingham,England
    MS-Off Ver
    Excel 2013
    Posts
    42

    Re: Deleting duplicate references with certain criteria

    Hi Pete UK.Thank you. This is exactly what I need. Much appreciated. Can you also explain how your formula works so I can understand it better. Cheers.

  4. #4
    Registered User
    Join Date
    09-09-2014
    Location
    Pune, India
    MS-Off Ver
    2010
    Posts
    18

    Re: Deleting duplicate references with certain criteria

    Hello

    Please I am new to excel programming and would like to get started.

    Can anyone help me with basic study materials for a beginner.

  5. #5
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,728

    Re: Deleting duplicate references with certain criteria

    Quote Originally Posted by AlexnL12 View Post
    Hi Pete UK.Thank you. This is exactly what I need. Much appreciated. Can you also explain how your formula works so I can understand it better. Cheers.
    The COUNTIF bit checks for duplicates, but the entry in D2 should also be empty for the message to be displayed.

    Hope this helps.

    Pete

    If that takes care of your original question, please select Thread Tools from the menu above your first post and mark this thread as SOLVED.

    Also, since you are relatively new to the forum, you may like to know that you can directly thank those who have helped you by clicking on the small "star" icon located in the lower left corner of a post that you have found to be helpful (not just in this thread - for any post that has helped you). This also adds to the reputation of the poster (the small green bars in the poster's profile).

    Pete

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Deleting rows w/out losing references
    By \/\/avefor/\/\ in forum Excel General
    Replies: 8
    Last Post: 09-25-2008, 12:28 AM
  2. hiding or deleting duplicate based on criteria...
    By tfleming421 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-30-2007, 11:24 PM
  3. deleting duplicate rows based on 2 criteria
    By Zygoid in forum Excel General
    Replies: 1
    Last Post: 04-25-2007, 01:17 PM
  4. finding references before deleting a sheet
    By carsto in forum Excel General
    Replies: 4
    Last Post: 11-10-2006, 03:20 PM
  5. [SOLVED] deleting worksheet and associated references
    By Match in forum Excel General
    Replies: 0
    Last Post: 06-05-2006, 07:35 PM

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