Prev: Totaling text cells
Next: Data Validation
From: Elton Law on 20 May 2010 13:22 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
From: T. Valko on 20 May 2010 13:30 Try this... =LEN(A1)-LEN(SUBSTITUTE(UPPER(A1),UPPER("O"),"")) Note that SUBSTITUTE is case sensitive. -- Biff Microsoft Excel MVP "Elton Law" <EltonLaw(a)discussions.microsoft.com> wrote in message news:43F1AAB9-8361-454C-821C-78917358F132(a)microsoft.com... > 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
From: Tom Hutchins on 20 May 2010 13:33 =LEN(A1)-LEN(SUBSTITUTE(A1,"o","")) It's case sensitive, so if you all "O" or "o", repeat the whole formula substituting the other case and add the two results: =(LEN(A1)-LEN(SUBSTITUTE(A1,"o","")))+(LEN(A1)-LEN(SUBSTITUTE(A1,"O",""))) Hope this helps, Hutch "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
From: Lars-�ke Aspelin on 20 May 2010 13:34 On Thu, 20 May 2010 10:22:01 -0700, Elton Law <EltonLaw(a)discussions.microsoft.com> 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
From: Bernd P on 20 May 2010 14:24
On 20 Mai, 18:30, "T. Valko" <biffinp...(a)comcast.net> wrote: > Try this... > > =LEN(A1)-LEN(SUBSTITUTE(UPPER(A1),UPPER("O"),"")) > > Note that SUBSTITUTE is case sensitive. > > -- > Biff > Microsoft Excel MVP > > "Elton Law" <Elton...(a)discussions.microsoft.com> wrote in message > > news:43F1AAB9-8361-454C-821C-78917358F132(a)microsoft.com... > > > 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 Hi Biff, I like that UPPER("O") part :-) Have fun, Bernd |