count no of times a letter occurs in a text string
=LEN(A1)-LEN(SUBSTITUTE(LOWER(A1),"m",""))
--
David Biddulph
"nishad" wrote in message
...
I would like to count the no of times a specific letter occurs in a text
string.
For eg if "My name is Amit" is in cell A1. I want to count the no of times
"m" occurs in A1, which is '3'. Plz help.
|