PC Review


Reply
Thread Tools Rate Thread

Counting specific letters in a cell

 
 
Sandy
Guest
Posts: n/a
 
      3rd Jul 2008
How do I count the number of specific letters in a given cell? For example
if a cell has the words "Have a nice day!" I would only want to count only
the letter "a." Is there some sort of IF-LEN-combo function? Help.
 
Reply With Quote
 
 
 
 
Pete_UK
Guest
Posts: n/a
 
      3rd Jul 2008
Try this:

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

Hope this helps.

Pete

On Jul 3, 4:35*pm, Sandy <Sa...@discussions.microsoft.com> wrote:
> How do I count the number of specific letters in a given cell? *For example
> if a cell has the words "Have a nice day!" I would only want to count only
> the letter "a." *Is there some sort of IF-LEN-combo function? *Help.


 
Reply With Quote
 
RagDyeR
Guest
Posts: n/a
 
      3rd Jul 2008
Try this:

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


--

HTH,

RD
=====================================================
Please keep all correspondence within the Group, so all may benefit!
=====================================================

"Sandy" <(E-Mail Removed)> wrote in message
news:59896727-9F10-4154-BF82-(E-Mail Removed)...
How do I count the number of specific letters in a given cell? For example
if a cell has the words "Have a nice day!" I would only want to count only
the letter "a." Is there some sort of IF-LEN-combo function? Help.


 
Reply With Quote
 
RagDyeR
Guest
Posts: n/a
 
      3rd Jul 2008
This works for:
"Have a nice day!"

As well as:
"A nice day was had by all!"
--

Regards,

RD
-----------------------------------------------------------------------------------------------
Please keep all correspondence within the Group, so all may benefit !
-----------------------------------------------------------------------------------------------

"RagDyeR" <(E-Mail Removed)> wrote in message
news:%(E-Mail Removed)...
Try this:

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


--

HTH,

RD
=====================================================
Please keep all correspondence within the Group, so all may benefit!
=====================================================

"Sandy" <(E-Mail Removed)> wrote in message
news:59896727-9F10-4154-BF82-(E-Mail Removed)...
How do I count the number of specific letters in a given cell? For example
if a cell has the words "Have a nice day!" I would only want to count only
the letter "a." Is there some sort of IF-LEN-combo function? Help.



 
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
Counting specific letters in multiple cells tohlz Microsoft Excel Worksheet Functions 4 4th Jul 2008 08:55 PM
counting letters in excel cell kas Microsoft Excel Misc 1 15th May 2008 06:37 PM
Counting letters in a cell Learning Excel Microsoft Excel Misc 6 15th Mar 2008 08:11 PM
Counting the number of letters in a cell beefycj5 Microsoft Excel Misc 2 1st Jun 2005 08:28 PM
Counting letters in a cell punter Microsoft Excel Misc 8 12th Mar 2004 08:56 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 12:16 PM.