Results 1 to 7 of 7

Re: Excel 2007 - Count of certain Letter within a cell's text string

Threaded View

  1. #1
    Registered User
    Join Date
    11-04-2010
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2007
    Posts
    8

    Lightbulb Re: Excel 2007 - Count of certain Letter within a cell's text string

    Hi,

    I was reading this post on how to count the number of occurrences of a word in a range of cells and came across an issue. Here's the formula that was recommended, which works well under certain circumstances.
    =SUMPRODUCT(LEN(D1:D10)-LEN(SUBSTITUTE(UPPER(D1:D10),UPPER(A1),"")))/LEN(A1)
    If I want to search for a single word "a" in a cell with the following content, using a version of this formula (I've attached an example sheet), it returns a value of 5: "This text contains no single character but it does have the letter I'm searching for."

    The answer I'm looking for is 0, but as the letter "a" appears 5 times it counts them all. Is there any way to specify it took look for the exact contents of the cell?

    Cheers,

    3/5
    Attached Files Attached Files
    Last edited by threefifths; 07-03-2011 at 07:50 PM.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1