to count the negative we count the whole and subtract:
=COUNTA(A6:INDEX(A:A,MATCH("zzz",A:A)))-SUMPRODUCT(COUNTIFS(A6:INDEX(A:A,MATCH("zzz",A:A)),{"Blue","Yellow"}))
If the {"Blue","Yellow"}
is are values in cells then:
=COUNTA(A6:INDEX(A:A,MATCH("zzz",A:A)))-SUMPRODUCT(COUNTIFS(A6:INDEX(A:A,MATCH("zzz",A:A)),Z1:Z2))
If the list of ignores can be expandable:
=COUNTA(A6:INDEX(A:A,MATCH("zzz",A:A)))-SUMPRODUCT(COUNTIFS(A6:INDEX(A:A,MATCH("zzz",A:A)),Z1:INDEX(Z:Z,MATCH("zzz",Z:Z))))
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…