google-sheetsfilternotin

Find number of customer did not purchase any of the product in cell A4:A8 before or equal to year 2015


enter image description here

Hi all,

As mentioned in the screenshot above, I want to find number of customers who did not purchase any of the product in cell A4:A8 before or equal to year 2015.

In the screenshot above, we have 4 customers.

So the expected output will be 2. I have challenge on how to use formula to loop through each and every customer as all of them having different number of rows in the table. Any help or advise will be greatly appreciated!

Edit

enter image description here


Solution

  • You may try:

    =countunique(ifna(filter(C4:C,iserror(xmatch(C4:C,filter(C4:C,xmatch(D4:D,A4:A),E4:E<=G4))))))
    

    enter image description here