In a decision matrix, I want to change the colour of the cells in column range I3:I216 based on a comparison between two strings in D3:D216 and L3:L216. The values in column D and column L can only be either "B MAJOR" or "B MINOR". The comparison is done between two cells containing Text across the same row.
For example I want I3 to be green if both D3 and L3 contain the same string or red if they both contain different strings. These string values are coming from If statements and VLookups.
I tried a helper column Y where I used if(EXACT(D3,L3)=TRUE,1,0) to populate the column with 1's and 0's. But I cannot get I3 to change colour depending on Y3 values of 1 or a 0 by conditional formatting.
Formula tried was
Condtional 1: formula is Y3=1..Green pattern
Conditional 2: formula is Y3=0...Red Pattern
I tried a lot of other combinations, but cannot get the column formatted and change colour depending on the conditions, I want.
It probably needs a programmatic solution, but I am have no idea how to go about writing VB code. I am at my wits end and would be grateful for any help.
For example I want I3 to be green if both D3 and L3 contain the same string or red if they both contain different strings. These string values are coming from If statements and VLookups.
I tried a helper column Y where I used if(EXACT(D3,L3)=TRUE,1,0) to populate the column with 1's and 0's. But I cannot get I3 to change colour depending on Y3 values of 1 or a 0 by conditional formatting.
Formula tried was
Condtional 1: formula is Y3=1..Green pattern
Conditional 2: formula is Y3=0...Red Pattern
I tried a lot of other combinations, but cannot get the column formatted and change colour depending on the conditions, I want.
It probably needs a programmatic solution, but I am have no idea how to go about writing VB code. I am at my wits end and would be grateful for any help.