Results 1 to 4 of 4

Thread: How to count number of text occurences in Excel column

  1. #1
    Join Date
    Feb 2009
    Posts
    55

    How to count number of text occurences in Excel column

    hie,
    I want to count the number of occurences of a text string in an Excel column. Does anybody has any method or formula to do the same ?
    Please suggest.... thank you

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

    Re: How to count number of text occurences in Excel column

    The formula to count the number of occurrences of a text string in a cell range is given by -
    =SUM(LEN(range)-LEN(SUBSTITUTE(range,"text","")))/LEN("text")

    where,
    range - specifies the selected cell range.
    "text" - specifies the particular text string that you want to count.

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

    Re: How to count number of text occurences in Excel column

    If you want to count the occurence of the text string say for example, "word" in the cell range of "A1 to A20", then try this ::
    =COUNTIF(A1:A20;"word")

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

    Re: How to count number of text occurences in Excel column

    Start Excel
    Open a new workbook.
    Type the following on sheet1:

    A1: Fruit
    A2: apple
    A3: orange
    A4: grape
    A5: apple,apple
    A6: orange,orange
    A7: grape,grape
    A8: apple,orange
    A9: orange,grape
    A10: grape, apple
    A11: =SUM(LEN(A2:A10)-LEN(SUBSTITUTE(A2:A10,"orange","")))/LEN("orange")

    The value of cell A11 will be 5 because the text "orange" appears five times in the cell range A2 to A10...

Similar Threads

  1. How to convert number to text in excel
    By Jevin in forum Software Development
    Replies: 9
    Last Post: 17-05-2012, 06:42 PM
  2. How to count number of characters in Excel
    By Bankebihari in forum Windows Software
    Replies: 6
    Last Post: 15-05-2012, 04:52 PM
  3. Replies: 2
    Last Post: 17-02-2012, 01:03 PM
  4. Count the number of times yes appears in a range in excel
    By Andy Candy in forum Windows Software
    Replies: 3
    Last Post: 17-08-2009, 12:33 PM
  5. How to check if a number belongs to a column or not in Excel
    By $tatic in forum Software Development
    Replies: 4
    Last Post: 07-04-2009, 09:45 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,490,257.46590 seconds with 17 queries