Site icon ExcelNotes

How to Sum Cells based on Multiple Text Strings

The SUMIFS function sums the cells that meet one or more criteria, and you can use the function to sum cells with the corresponding cells that are text strings in other columns.

Example: You are working with a worksheet with the product in column A, the amount in column B, and the profit/loss in column C.

Question: What is the sum of marks for students' first names starting with an E and "son" in the last name?

=SUMIFS(D26:D34, A26:A34, "E*", B26:B34, "*SON*")

The result returns 174.

Two students have E in their first names and "son" in their last names: row 3 and row 6. The wildcard asterisk (*) represents "all letters" before or after the text "son".

Notes: The SUMIFS Function

The SUMIF function sums the values in a range that meets the specified criteria.

Formula:

=SUMIFS(sum_range, criteria_range1, criteria1, [criteria_range2, criteria2], …)

Explanations:

Exit mobile version