=SUMPRODUCT(--(ISNUMBER(SEARCH("-",MID(A1,ROW(INDIRECT("1:"&LEN(A1))),1)))))
Hope this helps!
Gabriel Wrote:
Hello,
I want to count the number of "-" within a string like for instance
"abc-klm-xyz". There are two "-" characters. Is must be a function
that I don't know of.
Any suggestions?
Thanks in advance
Gabriel
--
Domenic
------------------------------------------------------------------------
Domenic's Profile:
http://www.excelforum.com/member.php...o&userid=10785
View this thread:
http://www.excelforum.com/showthread...hreadid=320408