Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / General Excel Questions / March 2008

Tip: Looking for answers? Try searching our database.

Counting letters in a cell

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Learning Excel - 15 Mar 2008 16:18 GMT
My formula is =LEN(A1) and copied down.
Is there a variation of this formula to count just the letters in each cell
without counting the spaces between words ?
Thanks for the reply.
Signature

Socrates said: I only know, I don''''''''t know nothing.
I say : I don''''''''t even know, I don''''''''t
know nothing.

David Biddulph - 15 Mar 2008 16:36 GMT
=LEN(SUBSTITUTE(A1," ",""))
--
David Biddulph

> My formula is =LEN(A1) and copied down.
> Is there a variation of this formula to count just the letters in each
> cell
> without counting the spaces between words ?
> Thanks for the reply.
Learning Excel - 15 Mar 2008 16:50 GMT
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.

> =LEN(SUBSTITUTE(A1," ",""))
> --
[quoted text clipped - 5 lines]
> > without counting the spaces between words ?
> > Thanks for the reply.
Learning Excel - 15 Mar 2008 17:12 GMT
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.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.