+ Reply to Thread
Results 1 to 4 of 4

How to compare and highlight a column based other columns matching without replacement?

  1. #1
    Registered User
    Join Date
    07-19-2012
    Location
    Pittsburgh, PA
    MS-Off Ver
    Excel 2007/2010
    Posts
    2

    How to compare and highlight a column based other columns matching without replacement?

    So I have a table...

    A B C D E F G
    54 8:45 Jane Paul 8:45 37
    37 1:12 Dave Chris 5:35 78
    78 5:35 Chris Jane 6:40 90
    90 6:40 Jane Liz 2:05 14
    37 8:45 Paul Sarah 7:30 54
    82 3:14 Matt Jane 8:45 54
    14 2:05 Liz Dave 1:12 37
    54 7:30 Sarah Mike 9:00 14
    14 9:00 Mike Matt 3:14 82


    Basically, what I need to happen is high light the values in Column A if they match those in Column G if the data in the corresponding columns (B and C) match those in F and E.

    I understand this may not be entirely clear.

    I need it to identify that for each row, columns A B and C match 1 row in columns E F and G.

    For example, it would see that B1 = "8:45" and C1 = "Jane". Then it would look for a row where E= "Jane" and F = "8:45". These would be E6 and F6. Once these two rows are determined, it would see what the corresponding values from columns A and G are. So A1="54" and G6="54". Therefore, both 54's would be highlighted.

    It should be noted that there are instances in which there could be multiple "Jane"'s or "8:45"'s or "54"'s in the columns. This is demonstrated in the table above. So the matching would need to be one-to-one or "without replacement". So once a row a cell or group of cells is used for a match, it is no longer used for future comparisons. This is incredibly important to the project because there will often be duplicates; some intentional and some by mistake.

    If any of this is still unclear, please let me know. I find myself struggling with the appropriate wording of the problem.

    If this can be done in conditional formatting as opposed to Macros, that would be ideal.

    Thank you very much.

  2. #2
    Forum Expert icestationzbra's Avatar
    Join Date
    01-07-2004
    MS-Off Ver
    2007, 2010
    Posts
    1,421

    Re: How to compare and highlight a column based other columns matching without replacement

    will this work for you?

    EDIT: formula updated - changed from SEARCH to MATCH.
    Last edited by icestationzbra; 07-20-2012 at 04:07 PM.
    - i.s.z -
    CSE, aka Array aka { }, formulae are confirmed with CONTROL+SHIFT+ENTER.
    Replace commas ( , ) with semicolons ( ; ) in formulae, if your locale setting demands.
    All good ideas are courtesy resources from this forum as well as others around the web.
    - e.o.m -

  3. #3
    Registered User
    Join Date
    07-19-2012
    Location
    Pittsburgh, PA
    MS-Off Ver
    Excel 2007/2010
    Posts
    2

    Re: How to compare and highlight a column based other columns matching without replacement

    Wow this is incredible! It works perfectly. Thank you very much!

  4. #4
    Forum Expert Cutter's Avatar
    Join Date
    05-24-2004
    Location
    Ontario,Canada
    MS-Off Ver
    Excel 2010
    Posts
    6,451

    Re: How to compare and highlight a column based other columns matching without replacement

    @ chrismarince

    Welcome to the forum.

    Based on your last post it seems that you are satisfied with the solution(s) you've received but you haven't marked your thread as SOLVED. I'll do that for you now but please keep in mind for your future threads that Rule #9 requires you to do that yourself.
    Thanks.

    Also, as a new member of the forum, you may not be aware that you can thank those who have helped you by clicking the small star icon located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of those who helped.

+ 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