Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 98
Default Counting letters in a cell

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.
--
Socrates said: I only know, I don''''''''t know nothing.
I say : I don''''''''t even know, I don''''''''t
know nothing.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,651
Default Counting letters in a cell

=LEN(SUBSTITUTE(A1," ",""))
--
David Biddulph

"Learning Excel" wrote in message
...
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.
--
Socrates said: I only know, I don''''''''t know nothing.
I say : I don''''''''t even know, I don''''''''t
know nothing.



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 98
Default Counting letters in a cell

Thanks a lot David Biddulph.
--
Socrates said: I only know, I don''''''''t know nothing.
I say : I don''''''''t even know, I don''''''''t
know nothing.


"David Biddulph" wrote:

=LEN(SUBSTITUTE(A1," ",""))
--
David Biddulph

"Learning Excel" wrote in message
...
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.
--
Socrates said: I only know, I don''''''''t know nothing.
I say : I don''''''''t even know, I don''''''''t
know nothing.




  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 98
Default Counting letters in a cell

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


"Learning Excel" wrote:

Thanks a lot David Biddulph.
--
Socrates said: I only know, I don''''''''t know nothing.
I say : I don''''''''t even know, I don''''''''t
know nothing.


"David Biddulph" wrote:

=LEN(SUBSTITUTE(A1," ",""))
--
David Biddulph

"Learning Excel" wrote in message
...
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.
--
Socrates said: I only know, I don''''''''t know nothing.
I say : I don''''''''t even know, I don''''''''t
know nothing.




  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,651
Default Counting letters in a cell

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

"Learning Excel" wrote in message
...
Do you happen to have a formula to count WORDS in a cell ?


"Learning Excel" wrote:

Thanks a lot David Biddulph.


"David Biddulph" wrote:

=LEN(SUBSTITUTE(A1," ",""))
--
David Biddulph

"Learning Excel" wrote in
message
...
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.
--
Socrates said: I only know, I don''''''''t know nothing.
I say : I don''''''''t even know, I don''''''''t
know nothing.







  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default Counting letters in a cell

Another one that will count the number of "words" separated by spaces:

=LEN(TRIM(A1))-LEN(SUBSTITUTE(TRIM(A1)," ",""))+(TRIM(A1)<"")

Learning Excel wrote:

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

"Learning Excel" wrote:

Thanks a lot David Biddulph.
--
Socrates said: I only know, I don''''''''t know nothing.
I say : I don''''''''t even know, I don''''''''t
know nothing.


"David Biddulph" wrote:

=LEN(SUBSTITUTE(A1," ",""))
--
David Biddulph

"Learning Excel" wrote in message
...
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.
--
Socrates said: I only know, I don''''''''t know nothing.
I say : I don''''''''t even know, I don''''''''t
know nothing.




--

Dave Peterson
  #7   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 98
Default Counting letters in a cell

Thanks David. Thanks Dave.
Both formulas work for me, appreciate your time.
--
Socrates said: I only know, I don''''''''t know nothing.
I say : I don''''''''t even know, I don''''''''t
know nothing.


"Dave Peterson" wrote:

Another one that will count the number of "words" separated by spaces:

=LEN(TRIM(A1))-LEN(SUBSTITUTE(TRIM(A1)," ",""))+(TRIM(A1)<"")

Learning Excel wrote:

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

"Learning Excel" wrote:

Thanks a lot David Biddulph.
--
Socrates said: I only know, I don''''''''t know nothing.
I say : I don''''''''t even know, I don''''''''t
know nothing.


"David Biddulph" wrote:

=LEN(SUBSTITUTE(A1," ",""))
--
David Biddulph

"Learning Excel" wrote in message
...
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.
--
Socrates said: I only know, I don''''''''t know nothing.
I say : I don''''''''t even know, I don''''''''t
know nothing.




--

Dave Peterson

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
counting letters. pytelium Excel Worksheet Functions 2 August 13th 06 09:23 PM
Counting letters and symbols Zb Kornecki Excel Worksheet Functions 1 July 23rd 06 07:28 PM
Counting Letters Blink Excel Worksheet Functions 2 August 3rd 05 05:33 PM
Counting the number of letters in a cell beefycj5 Excel Discussion (Misc queries) 2 June 1st 05 08:28 PM
Counting Letters Gaute Hasti Excel Worksheet Functions 5 March 8th 05 09:09 PM


All times are GMT +1. The time now is 02:23 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"