Hi everyone. I am stuck. I have tried various ways to get a simple dataset to pivot with product IDs across the top (which I can do), but target two products that are related to each other to get the numerator number I need. That is, if product ID 9617 is "Yes" in the Comments, then it looks to product ID 7717 for it being done within 7 days. I cannot get the formula to work:

I need all the product IDs (except 7717) to see if the salesperson had contact within 7 days and if so, to give me 1. For 7177, I am first seeing if I have to contact the customer by looking at product 9617 and if the response is "Yes" then it goes to the 7717 team to call within 7 days. I can't get that formula to work and then I can't get to 8 rows (one per customer).
The workflow attached. I am trying to get records 5 & 6 and 7 & 8 to be on one line. Any suggestions?