Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 5
Default Count occurences of a letter in a cell

Is there a formula to count how many letters "i" there are in a cell?
Example: if the cell contain the word "limitation", the result is 3

Thanks!

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,240
Default Count occurences of a letter in a cell

Jair Batista wrote:
Is there a formula to count how many letters "i" there are in a cell?
Example: if the cell contain the word "limitation", the result is 3

Thanks!




Total occurrences of exact case

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


Total occurrences of either case

=LEN(A1)-LEN(SUBSTITUTE(SUBSTITUTE(A1,LOWER(B1),""),UPPER(B 1),""))
  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 5
Default Count occurences of a letter in a cell


"Glenn" wrote:

Jair Batista wrote:
Is there a formula to count how many letters "i" there are in a cell?
Example: if the cell contain the word "limitation", the result is 3

Thanks!




Total occurrences of exact case

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


Total occurrences of either case

=LEN(A1)-LEN(SUBSTITUTE(SUBSTITUTE(A1,LOWER(B1),""),UPPER(B 1),""))



Thank you Glenn! It worked well!
Jair



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
how to count the number of occurences of a letter ? [email protected] Excel Discussion (Misc queries) 3 November 26th 08 02:30 PM
Excel= can I count how many times letter a appears in 1 cell? Jack D Excel Worksheet Functions 6 November 1st 07 03:18 PM
Count # of Occurences Sweepea Excel Discussion (Misc queries) 6 December 14th 06 02:27 AM
How do I count the number of times a letter is used in a cell? jsrawlings Excel Discussion (Misc queries) 5 June 28th 06 02:02 AM
count a number range and a letter in a cell santaviga Excel Worksheet Functions 3 April 28th 06 11:11 AM


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