View Single Post
  #5   Report Post  
Posted to microsoft.public.excel.misc
David Biddulph[_2_] David Biddulph[_2_] is offline
external usenet poster
 
Posts: 8,651
Default 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.