Thanks a lot David Biddulph.

Signature
Socrates said: I only know, I don''''''''t know nothing.
I say : I don''''''''t even know, I don''''''''t
know nothing.
Do you happen to have a formula to count WORDS in a cell ?

Signature
Socrates said: I only know, I don''''''''t know nothing.
I say : I don''''''''t even know, I don''''''''t
know nothing.
> Thanks a lot David Biddulph.
>
[quoted text clipped - 7 lines]
> > > without counting the spaces between words ?
> > > Thanks for the reply.
David Biddulph - 15 Mar 2008 17:51 GMT
Depends how you want to define words, but if you want to count spaces and
add one (unless the cell is empty), you could try:
=IF(LEN(A1)=0,0,LEN(A1)-LEN(SUBSTITUTE(A1," ",""))+1)
If you had multiple spaces in one place, that would get it confused, of
course.
--
David Biddulph
> Do you happen to have a formula to count WORDS in a cell ?
>> Thanks a lot David Biddulph.
>> > =LEN(SUBSTITUTE(A1," ",""))
>> > --
[quoted text clipped - 6 lines]
>> > > without counting the spaces between words ?
>> > > Thanks for the reply.
Dave Peterson - 15 Mar 2008 18:44 GMT
Another one that will count the number of "words" separated by spaces:
=LEN(TRIM(A1))-LEN(SUBSTITUTE(TRIM(A1)," ",""))+(TRIM(A1)<>"")
> Do you happen to have a formula to count WORDS in a cell ?
> --
[quoted text clipped - 21 lines]
> > > > I say : I don''''''''t even know, I don''''''''t
> > > > know nothing.

Signature
Dave Peterson
Learning Excel - 15 Mar 2008 21:11 GMT
Thanks David. Thanks Dave.
Both formulas work for me, appreciate your time.

Signature
Socrates said: I only know, I don''''''''t know nothing.
I say : I don''''''''t even know, I don''''''''t
know nothing.
> Another one that will count the number of "words" separated by spaces:
>
[quoted text clipped - 25 lines]
> > > > > I say : I don''''''''t even know, I don''''''''t
> > > > > know nothing.