This problem can be easily solved with the SUMIF function or the SUMIFS function.

SUMIF function

TheSUMIF functionis designed to sum cells based on asinglecondition.

For more SUMIF examples,see this page.

Excel formula: Sum if less than

For more on concatenation,see this page.

The syntax for SUMIFS is similar, but the order of theargumentsis different.

For more SUMIFS examples,see this page.

Excel formula: Sum if between

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

How to use the SUMIF function

How to use the SUMIFS function

Excel formula: Sum if begins with

Excel formula: Sum if not blank

Excel formula: Sum if cells are not equal to

Excel formula: Sum if x or y

Excel formula: Sum if cells contain specific text

Excel SUMIF function

Excel SUMIFS function

Article image

Article image