Counting character occurrences (Excel)
Solved
identifiant-comment
Posted messages
351
Status
Member
-
toy -
toy -
Hello,
In Excel 2003, I want to count the number of occurrences of a string of characters in a given cell.
I tried to do it with SEARCH, but that’s clearly not the right solution.
Could someone please help me?
Thank you!
In Excel 2003, I want to count the number of occurrences of a string of characters in a given cell.
I tried to do it with SEARCH, but that’s clearly not the right solution.
Could someone please help me?
Thank you!
Configuration: Windows XP Internet Explorer 7.0
12 answers
-
Hello,
I’m not sure if I understood everything correctly,
If you want to count the number of characters in cell A1, the formula is
=LEN(A1)
To count the number of R’s for example, the formula is
=SUMPRODUCT((LEN(A1)-LEN(SUBSTITUTE(A1,"R",""))))
Or to count the characters different from R
=LEN(SUBSTITUTE(A1,"R",""))
A+