+ Reply to Thread
Results 1 to 4 of 4

Formula to find duplicate entries based on certain specific conditions

  1. #1
    Forum Contributor
    Join Date
    05-09-2013
    Location
    Mauritius
    MS-Off Ver
    Excel 2010
    Posts
    116

    Formula to find duplicate entries based on certain specific conditions

    Hi all,

    I'm using Excel 2010. I am creating a central list of transactions by appending data to it from different worksheets. My problem is that certain transactions (rows of data) are duplicates located in the source worksheets. Once the whole exercise is completed, I will then need to remove those duplicate entries. Since this removal will be a tedious task, I want to automate a few of the steps involved.

    I an thinking of sorting the final list by "Name" and "Date of Arrival" (which are 2 variables in the list). Now, I want to insert a new column where I will run a formula that will check the columns of "Name" and "Date of Arrival" and ouput something like "DUP" if it find the cells just after it as having the same "Name" and "Date of Arrival".

    To make it clearer, let's put it this way: Column D is the newly created Column that will run the formula. Let's say Column B and C are Columns "Names" and "Date of Arrival" respectively. So, Cell D1 will output "DUP" only if cells B1 AND C1 are SAME as Cells B2 and C2. In other words, the conditions that need to be met are that B1 and C1 values must be same as B2 and C2 values for that row to be considered as a Duplicate.

    What is the formula to use to achieve this?

  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,704

    Re: Formula to find duplicate entries based on certain specific conditions

    Put the formula in D2:

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    then copy down.

    Hope this helps.

    Pete

  3. #3
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Formula to find duplicate entries based on certain specific conditions

    =IF(AND(B1=B2,C1=C2),"dup","") ??
    Regards

    Fotis.

    -This is my Greek whisper to Europe.

    --Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

    Advanced Excel Techniques: http://excelxor.com/

    --KISS(Keep it simple Stupid)

    --Bring them back.

    ---See about Acropolis of Athens.

    --Visit Greece.

  4. #4
    Forum Contributor
    Join Date
    05-09-2013
    Location
    Mauritius
    MS-Off Ver
    Excel 2010
    Posts
    116

    Re: Formula to find duplicate entries based on certain specific conditions

    Thanks guys! Works nice!

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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