This number is then subtracted from the length of the text with o’s.

SUMPRODUCT then sums the numbers in this list and returns a total for all cells in the range.

SUBSTITUTE is a case-sensitive function, so it will match case when performing a substitution.

Excel formula: Count specific characters in text string

Then supply an uppercase character for the text that’s being counted.

LEN will also count characters in numbers, but number formatting is not included.

SUBSTITUTE Function

The Excel SUBSTITUTE function replaces text in a given string by matching.

Excel formula: Count specific words in a cell

Numbers, punctuation, and spaces are not affected.

SUMPRODUCT Function

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

Excel formula: Cell contains specific text

Excel formula: Count specific words in a range

Excel LEN function

Excel SUBSTITUTE function

Excel UPPER function

Excel SUMPRODUCT function