count number of letters in a string

W

Wiley

How do I count the number of letters in a string? For example, the number
"W" in this string "WWWEEERRRWWDDR" is 5.
 
B

Bob Phillips

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

--
HTH

Bob Phillips

(remove xxx from email address if mailing direct)
 
R

Ron Coderre

Try this:

With A1 containing WWWEEERRRWWDDR

B1: =LEN(A1)-LEN(SUBSTITUTE(A1,"W",""))

Does that help?
***********
Regards,
Ron

XL2002, WinXP
 
Top