More COUNTIF

  • Thread starter Thread starter Phil
  • Start date Start date
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
 
Hi Phil,

Try the following:

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

Hope this helps!
 
Back
Top