For convenience, all data is in anExcel Tablenameddata.

This is a tricky problem, because the solution is not obvious.

The go-to function for conditional sums is theSUMIFS function.

Excel formula: SUMIFS with multiple criteria and OR logic

However, when using SUMIFS with multiple criteria, all conditions must be TRUE.

One solution is to use an array constant with SUMIFS, then sum the results with the SUM function.

Another option is to use SUMIFS twice.

Excel formula: Sum if cells are equal to

InLegacy Excel, you will need to enter as anarray formulawith control + shift + enter.

This is a flexible approach that works nicely in situations where SUMIFS can’t be used.

Note: in the current version of Excel you might use the SUM function instead of SUMPRODUCT.

Excel formula: Sum if begins with

Criteria can be applied to dates, numbers, and text.

for partial matching….

SUMPRODUCT Function

The Excel SUMPRODUCT function multipliesrangesorarraystogether and returns the sum of products.

MATCH supports approximate and exact matching, andwildcards(* ?)

Excel formula: Sum if not blank

Often, MATCH is combined with the…

How to use the SUMIFS function

Excel formula: Sum if cells are not equal to

Excel formula: Sum if cells contain specific text

Excel SUMIF function

Excel SUMPRODUCT function

Excel ISNUMBER function

Excel MATCH function

Article image