Hello
I am struggling to work out the logic to determine a match between 2 dates, 2 products and one customer?
What I am trying to do is run a macro or formula to determine from the list where the SAME customer name (col A), matches with a RED & BLUE product with the same delivery date.
In the table below, I would want rows 4 & 5 to be highlighted as a match! And all other rows to be ignored.
Is anyone able to help me solve this conundrum?
Kind regards
Mike
[TABLE="width: 500, align: center"]
<tbody>[TR]
[TD][/TD]
[TD]A[/TD]
[TD]B[/TD]
[TD]C[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]CUSTOMER NAME[/TD]
[TD]PRODUCT COLOUR[/TD]
[TD]DELIVERY DATE[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]Cust 1[/TD]
[TD]RED[/TD]
[TD]FEB[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]Cust 1[/TD]
[TD]RED[/TD]
[TD]FEB[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]Cust 2[/TD]
[TD]RED[/TD]
[TD]MAR[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]5[/TD]
[TD]Cust 2[/TD]
[TD]BLUE[/TD]
[TD]MAR[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]6[/TD]
[TD]Cust 2[/TD]
[TD]RED[/TD]
[TD]MAR[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]7[/TD]
[TD]Cust 3[/TD]
[TD]BLUE[/TD]
[TD]APR[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]8[/TD]
[TD]Cust 3[/TD]
[TD]RED[/TD]
[TD]MAY[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]9[/TD]
[TD]Cust 4[/TD]
[TD]BLUE[/TD]
[TD]AUG[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]10[/TD]
[TD]Cust 4[/TD]
[TD]BLUE[/TD]
[TD]AUG[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]11[/TD]
[TD]Cust 4[/TD]
[TD]BLUE[/TD]
[TD]SEP[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
I am struggling to work out the logic to determine a match between 2 dates, 2 products and one customer?
What I am trying to do is run a macro or formula to determine from the list where the SAME customer name (col A), matches with a RED & BLUE product with the same delivery date.
In the table below, I would want rows 4 & 5 to be highlighted as a match! And all other rows to be ignored.
Is anyone able to help me solve this conundrum?
Kind regards
Mike
[TABLE="width: 500, align: center"]
<tbody>[TR]
[TD][/TD]
[TD]A[/TD]
[TD]B[/TD]
[TD]C[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]CUSTOMER NAME[/TD]
[TD]PRODUCT COLOUR[/TD]
[TD]DELIVERY DATE[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]Cust 1[/TD]
[TD]RED[/TD]
[TD]FEB[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]Cust 1[/TD]
[TD]RED[/TD]
[TD]FEB[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]Cust 2[/TD]
[TD]RED[/TD]
[TD]MAR[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]5[/TD]
[TD]Cust 2[/TD]
[TD]BLUE[/TD]
[TD]MAR[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]6[/TD]
[TD]Cust 2[/TD]
[TD]RED[/TD]
[TD]MAR[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]7[/TD]
[TD]Cust 3[/TD]
[TD]BLUE[/TD]
[TD]APR[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]8[/TD]
[TD]Cust 3[/TD]
[TD]RED[/TD]
[TD]MAY[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]9[/TD]
[TD]Cust 4[/TD]
[TD]BLUE[/TD]
[TD]AUG[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]10[/TD]
[TD]Cust 4[/TD]
[TD]BLUE[/TD]
[TD]AUG[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]11[/TD]
[TD]Cust 4[/TD]
[TD]BLUE[/TD]
[TD]SEP[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]