Counting for a string in a single cell
Posted by Altug Bayram on October 23, 2001 8:15 AM
Hi,
I am trying to count a specific string in a SINGLE cell
for the number of occurences. So for instance if the cell
contains the following
"0-R-0, 1-R-0, 3-C-0" etc ...
and if I am trying to count number of occurences of "-R" within
that single cell (the answer for the above should be 2)
Once I know how to do that for a single cell, I would
then need to apply this for a range of cells that have
the same issue. It is a lot of data and I don't like
to use "Text to Columns" for this case. For one
reason, the data sometimes is not well separated (within
the same cell). I am really looking for almost like
SEARCH function but it should be able to count for
all occurences of a string within the same cell.
Any help will be greatly appreciated. Thanks a lot.