View Single Post
  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Mike G Mike G is offline
external usenet poster
 
Posts: 26
Default Counting # of occurances of words in text

Thanks for the formulas.....If I wanted to check more that one cell i.e.
a1:a25 I thought I could replace the A1 with A1:A25, I get the #value
again... Thanks for your patience!


"PCLIVE" wrote in message
...
=(LEN(A1)-LEN(SUBSTITUTE(A1,"good","")))/4

If the word to serch is in a particular cell, say B1, then:
=(LEN(A1)-LEN(SUBSTITUTE(A1,B1,"")))/LEN(B1)


"Mike G" wrote in message
...
If I have a cell that contains "good things come in good packages" and
want to count the number of occurances of the word "good" how would I do
that? Have tried countif and sumproduct and both give me #name?