Site icon ExcelNotes

How to Sum Numbers Starting an Exact Text String

To sum the cells that start with an exact, case-sensitive text string, you can use the SUMPRODUCT and EXACT functions.

Example: You are working with a worksheet with the first name in column A, the last name in column B, the grade in column C, and the marks in column D.

Question: What is the sum of the marks for students' last names with case-sensitive "Jo"?

=SUMPRODUCT(–EXACT("Jo", LEFT(B2:B10, LEN("Jo"))),D2:D10)

The result returns 173.

Two people's last names start with "Jo": B3 and B7.

Explanation:

Exit mobile version