I am new to Excel and I have been trying to complete some work using Excel by googling formulas. I came across sumproduct
and I believe it will work for what I need but I may not be writing the formula correctly.
I need to count every nth cell in a column if it is "2" and the preceding cell in the same column is "0". From what I have seen online, it seems like a sumproduct
with 2 arrays should work. This is what I came up with but does not work:
=SUMPRODUCT(((MOD(ROW(C2:C111)-ROW(C2),5)=0)+0,ISNUMBER(SEARCH("0",C2:C111))+0)*((MOD(ROW(C3:C111)-ROW(C3),5)=0)+0,ISNUMBER(SEARCH("2",C3:C111))+0))
Any assistance will be appreciated!