PC Review


Reply
Thread Tools Rate Thread

Count the number of characters created by string text

 
 
mrlanier@hotmail.com
Guest
Posts: n/a
 
      19th Jan 2007
Is there a formula that will count the number of characters, and spaces
between characters, in a short paragraph created by a string text? It
is acceptible if spaces cannot be counted. Thanks.

Michael

 
Reply With Quote
 
 
 
 
Jason Lepack
Guest
Posts: n/a
 
      19th Jan 2007
You have to give an example, becuase your description is very cryptic.

Show a sample string of text, illustrate the characters that ou want
the space between, and the expected result.

Cheers,
Jason Lepack

mrlan...@hotmail.com wrote:
> Is there a formula that will count the number of characters, and spaces
> between characters, in a short paragraph created by a string text? It
> is acceptible if spaces cannot be counted. Thanks.
>
> Michael


 
Reply With Quote
 
JE McGimpsey
Guest
Posts: n/a
 
      19th Jan 2007
One way:

=LEN(A1)

will count all the characters in cell A1.

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

will count all the non-space characters in A1

In article <(E-Mail Removed)>,
(E-Mail Removed) wrote:

> Is there a formula that will count the number of characters, and spaces
> between characters, in a short paragraph created by a string text? It
> is acceptible if spaces cannot be counted. Thanks.
>
> Michael

 
Reply With Quote
 
mrlanier@hotmail.com
Guest
Posts: n/a
 
      19th Jan 2007
For example, if cell A1="Dogs bark in the night." and B1="But cats are
quiet.", and if I wanted the two to string I would use the formula:

=A1&" "&A2

This would give the the short paragraph: Dogs bark in the night. But
cats are quiet. What I need to do is count the characters in the
statement, along with spaces if possible. In this case, there are 34
characters and 9 spaces if 2 are counted between the sentences. I'm
hoping to find a formula that will do the count automatically. Thanks.

Michael

 
Reply With Quote
 
mrlanier@hotmail.com
Guest
Posts: n/a
 
      19th Jan 2007

Thank you JE. I'll give it a try.

Michael

 
Reply With Quote
 
mrlanier@hotmail.com
Guest
Posts: n/a
 
      19th Jan 2007
Thanks JE. It's exactly what I was looking for.

Michael

 
Reply With Quote
 
JE McGimpsey
Guest
Posts: n/a
 
      19th Jan 2007
One way:

Assume the concatenation is in C1:

="There are " & LEN(SUBSTITUTE(C1," ","")) & " characters and " &
LEN(C1)-LEN(SUBSTITUTE(C1," ","")) & " spaces."



In article <(E-Mail Removed)>,
(E-Mail Removed) wrote:

> For example, if cell A1="Dogs bark in the night." and B1="But cats are
> quiet.", and if I wanted the two to string I would use the formula:
>
> =A1&" "&A2
>
> This would give the the short paragraph: Dogs bark in the night. But
> cats are quiet. What I need to do is count the characters in the
> statement, along with spaces if possible. In this case, there are 34
> characters and 9 spaces if 2 are counted between the sentences. I'm
> hoping to find a formula that will do the count automatically. Thanks.
>
> Michael

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Count number times text appears in string nc Microsoft Excel Misc 1 5th May 2010 02:53 PM
Count characters within a string =?Utf-8?B?RnJhbmNpc2Nv?= Microsoft Excel Worksheet Functions 4 10th Apr 2007 05:28 PM
convert string to double and count characters Jay Microsoft C# .NET 6 9th Feb 2007 02:49 PM
Count the number of characters created by string text mrlanier@hotmail.com Microsoft Excel Discussion 2 19th Jan 2007 04:05 PM
Count the number of characters in a string cw bebop Microsoft C# .NET 9 15th Apr 2005 08:56 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:20 AM.