View Single Post
  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
SteveG
 
Posts: n/a
Default How can I count the number of times a letter repeats in a string?


Wiley,

If your string is in A1 and you are trying to count the occurences of
the letter "a" then:

=LEN(A1)-LEN(SUBSTITUTE(A1,"a",""))

HTH

Steve


--
SteveG
------------------------------------------------------------------------
SteveG's Profile: http://www.excelforum.com/member.php...fo&userid=7571
View this thread: http://www.excelforum.com/showthread...hreadid=541202