+ Reply to Thread
Results 1 to 3 of 3

Highlight duplicates if col A and B are the same but not col C

  1. #1
    Registered User
    Join Date
    06-01-2004
    Posts
    11

    Highlight duplicates if col A and B are the same but not col C

    I have 3 columns:

    colA: city
    colB: street
    colC: name

    1 Amsterdam Rokin Jos
    2 Amsterdam Beursplein Jos
    3 Amsterdam Rokin Jos
    4 Amsterdam Rokin Erik
    5 Rotterdam Boompjes Erik

    What I want is that a formula goes through every row and highlights every city where colA and colB are the same AND where colC is different. So in this example the formula should NOT highlight row 3, but only row 1 (the first with the name Jos) and row 4.

    I have found a very neat formula from Techonthenet (http://www.techonthenet.com/excel/macros/test_dups2.php). But this one only looks at colA and colB. Any help is appreciated. I run Excel 2010, but if it works on Excel 2003, it will be better.

  2. #2
    Forum Expert tigeravatar's Avatar
    Join Date
    03-25-2011
    Location
    Colorado, USA
    MS-Off Ver
    Excel 2003 - 2013
    Posts
    5,361

    Re: Highlight duplicates if col A and B are the same but not col C

    Hond70,

    The link you provided shows a macro solution, so I'm hoping you're comfortable using macros. You can use the following to accomplish what you're looking for:
    Please Login or Register  to view this content.
    Last edited by tigeravatar; 10-11-2011 at 06:39 PM.
    Hope that helps,
    ~tigeravatar

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  3. #3
    Registered User
    Join Date
    06-01-2004
    Posts
    11

    Re: Highlight duplicates if col A and B are the same but not col C

    Hi Tigeravatar!

    It works perfectly! Thanks for the help.I watch and learn

    Thanks!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

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