+ Reply to Thread
Results 1 to 4 of 4

How to identify duplicates using another column

  1. #1
    Registered User
    Join Date
    01-11-2007
    Posts
    94

    How to identify duplicates using another column

    I have a excel sheet with many rows and in one of the column i have text. ( Text is almost like paragraph style).

    Many of these text are duplicates.

    I want create a indicator in another column indicating it is duplicate or unique identifies

    sample attached.

    Thnx
    NKRA
    Attached Files Attached Files
    Last edited by NKRA; 07-23-2010 at 10:15 AM.

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Unique Identifier

    Because of the size of text strings in the cells, we can't use COUNTIF()

    as =IF(COUNTIF(A:A,A2)>1,"DUPLICATE","NOT DUPLICATE")

    so we have to use an alternative:

    =IF(SUMPRODUCT(--($A$1:$A$100=A2))>1,"Duplicate","Not Duplicate")

    which needs fixed ranges (in pre XL2007)... copied down.
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Registered User
    Join Date
    01-11-2007
    Posts
    94

    Re: Unique Identifier

    Thnx for solution and explanation. Now i understand why i got value error on countif formula.

    Further to above i have enhancement required on solution (excel attached) I need to get field 3 in which if there is Duplicate in subsequent finding bring blank.

    Thnx
    NKRA
    Attached Files Attached Files

  4. #4
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    re: How to identify duplicates using another column

    Try:

    =IF(SUMPRODUCT(--(A$2:A2=A2))>1,"",IF(SUMPRODUCT(--($A$1:$A$100=A2))>1,A2,""))

    note that A4 and A5 are not duplicates.. something about them is not exact.

    Note: Is the space after Linda Fisher-Lewis, It appears as though one uses CHAR(160) and the other CHAR(32)... where they copied from different sources... there could be other spaces like that in those strings.
    Last edited by NBVC; 07-20-2010 at 04:42 PM.

+ 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