Explanation

In this example, the goal is to sum values in matching columns and rows.

In the latest version of Excel, theFILTER functionis another option.

Both approaches are explained below.

Boolean array multiplication inside SUMPRODUCT

Next, the two arrays are multiplied together.

This formula works in two steps.

The output from FILTER is dynamic.

Boolean array multiplication inside SUMPRODUCT

If source data or criteria change, FILTER will return a new set of results.

These values can be numbers, cell references, ranges, arrays, and constants, in any combination.

SUM can handle up to 255 individual arguments.

Boolean array multiplication inside SUMPRODUCT

FILTER function basic example

Boolean operations in array formulas

Boolean array multiplication inside SUMPRODUCT

Boolean array multiplication inside SUMPRODUCT

Excel formula: SUMPRODUCT count multiple OR criteria

Excel formula: SUMPRODUCT case-sensitive lookup

Excel formula: Sum matching columns

Excel SUMPRODUCT function

Excel FILTER function

Excel SUM function

Article image

Article image