+ Reply to Thread
Results 1 to 3 of 3

Finding duplicates in one column against unique description in another column

Hybrid View

  1. #1
    Registered User
    Join Date
    08-08-2009
    Location
    Lancashire
    MS-Off Ver
    Excel 2003
    Posts
    1

    Finding duplicates in one column against unique description in another column

    Hello all,

    I am using using excel to track assets. I have two columns titled Description and Serial Number. I wish to only highlight duplicate serial numbers where the Description is the same. At present I am using CF to highlight duplicate serial numbers using =COUNTIF($B$2:$B$11,B2)>1. This highlights all duplicate serial numbers but I wish to refine it only to show duplicates against its description.

    Thanks

  2. #2
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Finding duplicates in one column against unique description in another column

    try
    =SUMPRODUCT(($A$2:$A$12=$A2)*($B$2:$B$12=$B2))>1
    you might want to include
    =SUMPRODUCT(($A$2:$A$12=$A2)*($B$2:$B$12=$B2)*($A$2:$A$12<>""))>1 so as not to highlight blanks
    Last edited by martindwilson; 08-08-2009 at 05:18 AM.
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  3. #3
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Finding duplicates in one column against unique description in another column

    An alternative given you're using CF (and CF formulae are processed as arrays by default):

    =AND(COUNTA(B2:C2)=2,ISNUMBER(MATCH($B2&$C2,$B$1:$B1&$C$1:$C1,0)))

    (assumes serials in B and Descriptions in C, and 2nd instance onwards of match to be highlighted - unclear)

+ 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