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

chrismarince

New Member
Joined
Jul 16, 2012
Messages
9
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

<tbody>
</tbody>

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.
 

Excel Facts

What is the fastest way to copy a formula?
If A2:A50000 contain data. Enter a formula in B2. Select B2. Double-click the Fill Handle and Excel will shoot the formula down to B50000.

Forum statistics

Threads
1,215,050
Messages
6,122,868
Members
449,097
Latest member
dbomb1414

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top