Hello all.
Please see sample data below. This is cols A & B. In Col C I'd like to paste a formula which tells me if this contract is relevant or not.
A contract is relevant if it has both a positive amount and a negative amount associated with it. So Contract ABC is relevant because it has both a +5 and a -6 associated with it. The other 2 are not because they have either all negs or all positives.
Btw contracts could appear as many as 50 times. I only showed 2 instances here as an example.
This is the formula I have so far. It almost works but not exactly. With this formula it would show the first row with Contract ABC as not relevant and the second one as relevant. I need both to show up as relevant.
=IF(AND(COUNTIFS($A:$A,$A2,$b:$b,"<0"),COUNTIFS($A:$A,$A2,$b:$b,">0")),"Yes","No")
Would appreciate any help!
Please see sample data below. This is cols A & B. In Col C I'd like to paste a formula which tells me if this contract is relevant or not.
A contract is relevant if it has both a positive amount and a negative amount associated with it. So Contract ABC is relevant because it has both a +5 and a -6 associated with it. The other 2 are not because they have either all negs or all positives.
Btw contracts could appear as many as 50 times. I only showed 2 instances here as an example.
This is the formula I have so far. It almost works but not exactly. With this formula it would show the first row with Contract ABC as not relevant and the second one as relevant. I need both to show up as relevant.
=IF(AND(COUNTIFS($A:$A,$A2,$b:$b,"<0"),COUNTIFS($A:$A,$A2,$b:$b,">0")),"Yes","No")
Would appreciate any help!
|