More COUNTIF

P

Phil

I have the formula =COUNTIF(G46:G64,"*Smith*") but sometimes Smith
occurs twice or more in the same cell and i would like all occurrences
to be counted. As it stands it is only counted once. How can I count
all occurrences in the same cell.
thanks
 
D

Domenic

Hi Phil,

Try the following:

=SUMPRODUCT((LEN(G46:G64)-LEN(SUBSTITUTE(G46:G64,"Smith",""))))/5

Hope this helps!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top