This number is then subtracted from the length of the original text.
The result is the number of characters that were removed by SUBSTITUTE.
Then, the number of characters removed is divided by the length of the substring.
These numbers represent the number of occurrences of the substring in each cell.
Ignoring case
SUBSTITUTE is a case-sensitive function, so it will match case when running a substitution.
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.
Numbers, punctuation, and spaces are not affected.
SUMPRODUCT Function
The Excel SUMPRODUCT function multipliesrangesorarraystogether and returns the sum of products.