A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » Charts and Charting
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

help in counting a single character



 
 
Thread Tools Display Modes
  #1  
Old April 16th, 2004, 04:23 PM
Jim
external usenet poster
 
Posts: n/a
Default help in counting a single character

Is there a formula to count every occurence of a
character. The following formula counts the number of
cells with the letter 's'. =COUNTIF(A1:F35,"*s*"). I need
to have a count of all occurences of the letter 's'. So
if there is 2 's' in one cell, the count will show this.
Thanks for any help.
  #2  
Old April 16th, 2004, 04:30 PM
Frank Kabel
external usenet poster
 
Posts: n/a
Default help in counting a single character

Hi
try
=SUMPRODUCT(LEN(A1:F35)-LEN(SUBSTITUTE(A1:F355,"s","")))

--
Regards
Frank Kabel
Frankfurt, Germany


Jim wrote:
Is there a formula to count every occurence of a
character. The following formula counts the number of
cells with the letter 's'. =COUNTIF(A1:F35,"*s*"). I need
to have a count of all occurences of the letter 's'. So
if there is 2 's' in one cell, the count will show this.
Thanks for any help.

  #3  
Old April 16th, 2004, 04:58 PM
JIM
external usenet poster
 
Posts: n/a
Default help in counting a single character

Thanks, that worked great.


-----Original Message-----
Hi
try
=SUMPRODUCT(LEN(A1:F35)-LEN(SUBSTITUTE(A1:F355,"s","")))

--
Regards
Frank Kabel
Frankfurt, Germany


Jim wrote:
Is there a formula to count every occurence of a
character. The following formula counts the number of
cells with the letter 's'. =COUNTIF(A1:F35,"*s*"). I

need
to have a count of all occurences of the letter 's'. So
if there is 2 's' in one cell, the count will show

this.
Thanks for any help.

.

 




Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


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


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.