Results 1 to 6 of 6

Thread: Formula to count the occurrences of specific letter in excel

  1. #1
    Join Date
    Dec 2009
    Posts
    37

    Formula to count the occurrences of specific letter in excel

    Hello Friends,

    Do you know any excel formula by using that we can count the occurrences of specific letter in excel? For example if there is one cell of excel which contains "DFGHG" text within it. If we want to find out the count of "G" then function should give result "2". I don't have any idea regarding this type of any excel formula. If you knows any formula for this then please let me know that.

  2. #2
    Join Date
    Apr 2008
    Posts
    4,642

    Re: Formula to count the occurrences of specific letter in excel

    You can try following formula:

    =len(B1)-len(substitute(B1,"Specify letter",""))
    In above formula you just need to provide the name of the cell and the character for which you you want to count the occurrence. See below example, in which formula counts the occurrences of letter "J"
    =len(D1)-len(substitute(D1,"J",""))

  3. #3
    Join Date
    May 2008
    Posts
    4,570

    Re: Formula to count the occurrences of specific letter in excel

    Hi,

    To count the occurrences of specific letter in excel I have used "COUNTIF" function of Microsoft excel. In which you will need to type the range of the excel cell and the desired character. Following are it's syntax and example:
    Syantax:
    = COUNTIF (Range of cells,"letter")

    Example:
    = COUNTIF (C1:C22,"P")

  4. #4
    Join Date
    May 2008
    Posts
    4,345

    Re: Formula to count the occurrences of specific letter in excel

    There are two methods are available int the Microsoft excel to count the occurrences of specific letter. Following are those;

    First method:
    You need to Use "COUNTIF()" function, and give the rrange of cells and text as a input for this function. see below
    = COUNTIF (Range,"Specific text") .

    Second method:
    You need to Use "SUM()" function, and give the range of cells and text as a input. see below
    = SUM (IF (Range="Specific text",2,0))

  5. #5
    Join Date
    May 2008
    Posts
    4,831

    Re: Formula to count the occurrences of specific letter in excel

    Hi friend,

    There are some function are available in the excel which are used to count of particular letter. These functions includes 'SUM' and 'COUNTIF'. You can use CTRL+SHIFT+ENTER for entering these formulas . You just need tom mention the cell range and the letter in these functions. If you want to know more about these function then go through the below link:
    http://support.microsoft.com/kb/214153

  6. #6
    Join Date
    Apr 2008
    Posts
    4,088

    Re: Formula to count the occurrences of specific letter in excel

    Hello friends,

    Use something below formula for your query:
    1. CountIf (cell RANGE,"txt")
    2. LEN (F1) - LEN (SUBSTITUTE(F1,D1,""))
    3. SUM (if (cell RANGE="txt",3,1))

Similar Threads

  1. Formula to count Detail Tasks within a Summary Task
    By blacksheep in forum Microsoft Project
    Replies: 3
    Last Post: 20-03-2012, 08:11 PM
  2. Count function help in excel
    By Logan 2 in forum Windows Software
    Replies: 5
    Last Post: 30-12-2009, 12:15 PM
  3. C# count occurrences in a string
    By Paramartha in forum Windows Software
    Replies: 3
    Last Post: 12-08-2009, 10:34 AM
  4. How to count date in Microsoft Excel
    By BUCK in forum Windows Software
    Replies: 3
    Last Post: 24-06-2009, 01:41 PM
  5. How to count date in Microsoft Excel
    By BUCK in forum Windows Software
    Replies: 0
    Last Post: 24-06-2009, 12:55 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,713,855,359.83755 seconds with 17 queries