+ Reply to Thread
Results 1 to 4 of 4

Match duplicate entries in diff columns

  1. #1
    Registered User
    Join Date
    06-04-2009
    Location
    ny
    MS-Off Ver
    Excel 2003
    Posts
    17

    Match duplicate entries in diff columns

    Hey guys.. I have 2 rows with dates. I want to see how many matches I have between these 2 rows. How can I go about doing this? I know it has something to do with conditional formatting.

    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: Match duplicate entries in diff columns

    assuming column a and b
    say a2:a100 and b2:b200
    select a2:a100
    go to conditional format
    chose formula is option and put
    =countif($b$2:$b$200,a2)
    chose a colour and apply
    repeat with column b2:b200
    =countif($a$2:$a$100,b2)
    "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
    Registered User
    Join Date
    06-04-2009
    Location
    ny
    MS-Off Ver
    Excel 2003
    Posts
    17

    Re: Match duplicate entries in diff columns

    I'm sorry.. I dont think I was that clear. I've attached a sample file for your convenience. I just want to find out how many times columns A and C match (and maybe place the total amount in column B). .. does ur answer still apply?
    Attached Files Attached Files

  4. #4
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,429

    Re: Match duplicate entries in diff columns

    Use CF with the condition:

    =COUNTIF(C:C,A1)>0

    Select all the cells in column A before applying CF.

    Just use the formula: =COUNTIF(C:C,A1) and drag down in column B for the actual count.


    Regards
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


+ 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