Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
CJ
 
Posts: n/a
Default counting instances of words in a worksheet cell

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
  #2   Report Post  
JulieD
 
Posts: n/a
Default

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

"CJ" wrote in message
om...
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



  #3   Report Post  
tjtjjtjt
 
Posts: n/a
Default

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

"CJ" wrote:

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

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Maintaining cell reference after sorting GRITS Excel Discussion (Misc queries) 2 April 30th 23 07:42 PM
how to change or set the last cell on a worksheet davesmith Excel Discussion (Misc queries) 2 December 16th 04 04:09 PM
Excel, how to reset the "last used cell on the worksheet " mcwhirter Excel Discussion (Misc queries) 2 December 15th 04 12:22 AM
Counting instances in a cell [email protected] Excel Discussion (Misc queries) 2 December 11th 04 03:14 PM
How can I activate cell shading in a protected worksheet? unprotect cell shading Excel Discussion (Misc queries) 1 December 8th 04 07:31 AM


All times are GMT +1. The time now is 11:50 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"