Count the words in a cell
On Thu, 20 May 2010 10:22:01 -0700, Elton Law
wrote:
Dear exper
A cell contains a lot of information.
Is it possible to count certan word in a cell please?
Say A1 contains a series of text ....
1. Daily Swing even though Sto is hit high or low
2. Look at Chart pattern
3. Stop at dangerous level
How can I count number of "O" in the cell A1 please?
Thanks
Elton
Try the following formula:
=SUMPRODUCT(--(MID(A1,ROW(1:999),1)="o"))
The 999 in the formula should be any number not less than the number
of characters in the text.
With the given example text, the returned value is 8.
Hope this helps / Lars-Åke
|