Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Character Occurence 1

Status
Not open for further replies.

Adnane

Technical User
Apr 22, 2003
88
EU
Hi,

please, i need to have a formula that counts within a cell the number of occurences of a specified character. for example if A1 contains Value1, Value2, Value3 and the specific character is "," the result cell B1 should contain 2

Thanks
 
Suppose that you are counting "a" in text in A1:
=LEN(A1)-LEN(SUBSTITUTE(A1,"a",""))

combo
 
Hi combo,

That's pretty neat!

I think its definitely worth a STAR!

Peter Moran
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top