You could try this:
=COUNTIF(B16:B4000,"*OR*")
However, because it counts cells, if a cell has more than one "OR" in it, it will only count it as one.
Good But... Can it be case sensitive?
Scott, Thanks so much. This calculation is headed in the right direction. Like you said, though, it only counts it once and there are cells with it more than once. If you can think of something else to count all of them that would be great.
Also, is there a way to make it case sensitive?
Thanks,
Marianne
Re: Good But... Can it be case sensitive?
Try the following array formula
=(SUM(LEN(B16:B4000))-SUM(LEN(SUBSTITUTE(B16:B4000,"OR",))))/LEN("OR")
It should be case sensitive and count multiple instances in one cell.
Remember to Control+Shift+Enter it.
Gary
Wow, I would never have thought of that! It works great! Thanks. NTF
Equivalently... (Re: Good But... Can it be case sensitive?)
the non-array formula
=SUMPRODUCT((LEN(B16:B4000)-LEN(SUBSTITUTE(B16:B4000,C1,"")))/LEN(C1))
where B16:B4000 is the search range and c1 houses the search string.
Aladin
=========