But what if we don’t want to (or can’t) add a helper column?

In that case, we can use the SUMPRODUCT function withBoolean logic.

SUMPRODUCT function

TheSUMPRODUCT functionis designed to work with arrays.

Excel formula: Count if row meets multiple criteria

It multiplies corresponding elements in two or more arrays and sums the resulting products.

This allows us to perform a comparison between current and previous sales directly inarray1.

Excel formula: Count rows with multiple OR criteria

Excel SUMPRODUCT function