excel formula help (identifying letters)

Quote from stu:



Gordon,

Put this in any cell (other than A1 !!) and it will return the number of C's or c's (lower or upper case) you have in A1.

=LEN(A1)-LEN(SUBSTITUTE(SUBSTITUTE(A1,"C",""),"c",""))

Just alter the C and c to other stuff if you want to check for other events .

:)

stu

Slick and Clever!

Nice work Stu
 
This might be useful too if you want to look in more than a single cell for certain occurances.

=LEN(A1&F6)-LEN(SUBSTITUTE(SUBSTITUTE(A1&F6,"E",""),"e",""))

This formula looks for e or E in A1 and F6 and returns the total of each added together

That's it...
Good Hunting

slick stu
:)
 
Back
Top