+ Reply to Thread
Results 1 to 2 of 2

Deleting, but only if data in B:B are duplicates AND data in C:C are duplicates

  1. #1
    Registered User
    Join Date
    02-11-2017
    Location
    Galway, Ireland
    MS-Off Ver
    2007
    Posts
    9

    Deleting, but only if data in B:B are duplicates AND data in C:C are duplicates

    Hello

    I'm having some bother trying to figure this out. I have a sample workbook attached.

    What I would like to do:

    If the persons board number (B:B) is a duplicate AND their admission date (C:C) is a duplicate, i would like to delete the SECOND value of their duplication (i.e. row 4 in attached example, because his referral time is later than that of the referral in row 3). Or if it were to say "Delete" or something so that i can filter it out and delete it manually.

    IF that does not make sense i can clarify further. I have a huge amount of data (and more will be coming regularily) so although i could do it manually, i would prefer to figure this out.
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    12-15-2009
    Location
    Chicago, IL
    MS-Off Ver
    Microsoft Office 365
    Posts
    3,177

    Re: Deleting, but only if data in B:B are duplicates AND data in C:C are duplicates

    I checked Excel official page and the page states Excel 2007 supports COUNTIFS, so use the COUNTIFS function to check the duplicates. In G2, enter this formula =COUNTIFS($A$2:$A2, $A2, $B$2:$B2,$B2) > 1 and fill the formula. Since you are using "Excel table", the formula should automatically be filled. The "duplicate" rows will return TRUE.

+ 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. Merging data, deleting unique and duplicates
    By Thomasray123 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-08-2019, 01:54 PM
  2. Deleting Data Outside of a Date Range W/ Duplicates
    By rehnwil in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-06-2016, 08:27 AM
  3. [SOLVED] Merging data while deleting duplicates?
    By kosmoscake in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 11-16-2012, 02:48 PM
  4. Deleting Duplicates-find out a way to delete duplicates
    By sighlent1 in forum Excel General
    Replies: 2
    Last Post: 04-19-2011, 10:17 AM
  5. Deleting duplicates but moving the data to another cell
    By DustersCreations in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-11-2009, 01:47 PM
  6. finding data in duplicate rows, revising row data and deleting duplicates
    By MF Xrx in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-16-2008, 06:49 PM
  7. Replies: 0
    Last Post: 08-11-2008, 11:04 AM

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