+ Reply to Thread
Results 1 to 8 of 8

Highlight duplicates across two sheets or tables

  1. #1
    Registered User
    Join Date
    12-07-2012
    Location
    WA, USA
    MS-Off Ver
    Excel 2010
    Posts
    8

    Highlight duplicates across two sheets or tables

    I have two lists of ID's generated from First and Last Name and a Unique Identifier. Sheet 2 contains a list of known good data, Sheet 1 contains a list of data which may or may not be accurate. I want to automatically highlight in green (using formulas rather then VBA) any value that appears on both lists.

    Note: I am only concerned about 1 column on each sheet (I'm also okay with placing them in tables on the same sheet)

    How would I go about doing this? I tried placing the good data at the bottom of the column containing the unknown data and checking for duplicates, but that leaves to much room for error if a faulty ID appears multiple times within the unknown data and none in the 'good' data.

    Thanks in advance!!

    EDIT: And it be even awesomer if I could highlight the entire row....
    Last edited by Usta; 12-14-2012 at 12:12 PM.

  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: Highlight duplicates across two sheets or tables

    you have excel 2012 so you should be able to conditional format based on whats on another sheet
    http://www.techrepublic.com/blog/mso...eferences/3727
    "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
    12-07-2012
    Location
    WA, USA
    MS-Off Ver
    Excel 2010
    Posts
    8

    Re: Highlight duplicates across two sheets or tables

    Which command would be best to compare the two? Still fairly new to using excel, but I gotta say I've been missing out.

    Would something like =Match(myDataGood[IDs]) work on the column to be highlighted in the conditional formatting formula?

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

    Re: Highlight duplicates across two sheets or tables

    cant say without seeing an example

  5. #5
    Registered User
    Join Date
    12-07-2012
    Location
    WA, USA
    MS-Off Ver
    Excel 2010
    Posts
    8

    Re: Highlight duplicates across two sheets or tables

    Of the data?
    It is two columns of data on two worksheets that look something like this where col. C is where I want to check for matches on both sheets and highlight on the first sheet
    ___A_______B__________C__________________D____
    1_Smith___John_____SmithJoh0000000001___0000000001
    Last edited by Usta; 12-14-2012 at 08:15 PM.

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

    Re: Highlight duplicates across two sheets or tables

    =countif(sheet2!$c:$c,$c1)

  7. #7
    Registered User
    Join Date
    12-07-2012
    Location
    WA, USA
    MS-Off Ver
    Excel 2010
    Posts
    8

    Re: Highlight duplicates across two sheets or tables

    Thanks! Is there a way to highlight entire row?

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

    Re: Highlight duplicates across two sheets or tables

    copy the format across the row as far as you need

+ 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