I am trying to achieve the countifs here for the following combination item and code.
Column A&B has Item and code and column C my status.
1.if same item has "YP" after the code and there is no "YP" after the code then my status is "NotOKay".
Example;
2.There is no "YP" after the code for the same item then my status is "Okay".