counting instances of words in a worksheet cell

  • Thread starter Thread starter CJ
  • Start date Start date
C

CJ

I would like to be able to count the instances of "apple" in the
following example, where each line is the value in one cell:

column 1

x apple
apple x
x x
x apple x

to get the answer = 4 instances of apple.

How can I do this in excel?

any help greatly appreciated

CJ
 
Hi CJ

getting the answer 4 from the given example would be difficult, however, if
you'ld settle for 3 then use the following formula

=COUNTIF(A1:A4,"*apple*")

Cheers
JulieD
 
The word apple is always on a cell by itself?
=COUNTIF(your_range,"apple")

If it isn't, then try:
=COUNTIF(your_range,"*"&"apple"&"*")

TJ
 

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

Back
Top