+ Reply to Thread
Results 1 to 8 of 8

Duplicate Checking

  1. #1
    Registered User
    Join Date
    03-12-2012
    Location
    Manchester, England
    MS-Off Ver
    MS 365
    Posts
    52

    Duplicate Checking

    Hello Everyone,
    I need a formula to check for duplicate values in a data range.
    For example if a Value in Cell C2 exists in either Column A or Column B return the value "Duplicate" else return the value "Unique".
    Any ideas anyone
    Thanks

  2. #2
    Forum Expert Moo the Dog's Avatar
    Join Date
    09-28-2012
    Location
    Wisconsin
    MS-Off Ver
    Office 365 (PC & Mac)
    Posts
    1,845

    Re: Duplicate Checking

    Try this:

    =IF(COUNTIF(A:B,C2),"Duplicate","Unique")

    - Moo

  3. #3
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: Duplicate Checking

    Hi Chris,

    Try using below formula:-
    =SUMPRODUCT(--($A:$A=$C$1)+($B:$B=$C1))

    Regards,
    DILIPandey
    <click on below * if this helps>
    DILIPandey, Excel rMVP
    +919810929744 (India), +971528225509 (Dubai), [email protected]

  4. #4
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,933

    Re: Duplicate Checking

    I think Moo left a piece out of his formula...
    =IF(COUNTIF(C:D,C8)>1,"Duplicate","Unique")
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  5. #5
    Registered User
    Join Date
    03-12-2012
    Location
    Manchester, England
    MS-Off Ver
    MS 365
    Posts
    52

    Re: Duplicate Checking

    Many Thanks Moo
    worked fine.
    I've starred you!!

  6. #6
    Forum Expert Moo the Dog's Avatar
    Join Date
    09-28-2012
    Location
    Wisconsin
    MS-Off Ver
    Office 365 (PC & Mac)
    Posts
    1,845

    Re: Duplicate Checking

    Quote Originally Posted by FDibbins View Post
    I think Moo left a piece out of his formula...
    =IF(COUNTIF(C:D,C8)>1,"Duplicate","Unique")
    The OP said:
    if a Value in Cell C2 exists in either Column A or Column B
    I took that to mean that there is a value in C2, say "Red", and if the string "Red" is found in either column A or B, the COUNT is greater than 0, meaning it is a duplicate. The >0 part isn't necessary, so I left it out.

    - Moo

  7. #7
    Forum Expert Moo the Dog's Avatar
    Join Date
    09-28-2012
    Location
    Wisconsin
    MS-Off Ver
    Office 365 (PC & Mac)
    Posts
    1,845

    Re: Duplicate Checking

    Thanks, chris.slater. Much appreciated.

    - Moo

  8. #8
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: Duplicate Checking

    I also realized that I did'nt included Unique / Duplicate results in my above formula

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


    Regards,
    DILIPandey
    <click on below * if this helps>

+ 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