+ Reply to Thread
Results 1 to 10 of 10

Excel 2007 - Count of certain word within a cell's text string

  1. #1
    Registered User
    Join Date
    03-14-2011
    Location
    Boston,MA
    MS-Off Ver
    Excel 2007
    Posts
    2

    Lightbulb Excel 2007 - Count of certain word within a cell's text string

    Trying to figure out how I can configure a formula to count how many times a certain word appears within a range of cells.

    i.e I have a range of cells that contain verbatim feedback and want to see how many times they include certain words within the feedback.

    So I think I need a formula that not only searches but also counts... Any thoughts?

    Thanks -
    -T

  2. #2
    Forum Expert Ron Coderre's Avatar
    Join Date
    03-22-2005
    Location
    Boston, Massachusetts
    MS-Off Ver
    2013, 2016, O365
    Posts
    6,996

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

    With
    A1: (a text value to count....eg Sugar)
    and
    cells containing text that *may* include the A1 text
    D1: Sugar and Spice
    D2: Sugar Bears contain no Sugar.

    This formula returns the count of that value
    in a range of cells:
    Please Login or Register  to view this content.

    In the above example,
    the count of "Sugar" is 3.

    Note: SUBSTITUTE is case sensitive, hence the UPPER function.

    Is that something you can work with?
    Ron
    Former Microsoft MVP - Excel (2006 - 2015)
    Click here to see the Forum Rules

  3. #3
    Valued Forum Contributor Blake 7's Avatar
    Join Date
    10-01-2010
    Location
    Bogota, Colombia
    MS-Off Ver
    Excel 2010 64 bit and Excel 2007,
    Posts
    1,377

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

    oh well! Ron got there!
    Blake 7

    If your question has been answered, please click EDIT in your original post, click GO ADVANCED and set the PREFIX box to SOLVED.

    If any member's response has helped to solve your problem, please consider using the scales icon on the top right of their post to show your appreciation.

    http://failblog.org/

  4. #4
    Registered User
    Join Date
    03-14-2011
    Location
    Boston,MA
    MS-Off Ver
    Excel 2007
    Posts
    2

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

    Thanks Ron! Perfect Solution!

  5. #5
    Forum Expert Ron Coderre's Avatar
    Join Date
    03-22-2005
    Location
    Boston, Massachusetts
    MS-Off Ver
    2013, 2016, O365
    Posts
    6,996

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

    Glad to help a fellow Bostonian.

  6. #6
    Registered User
    Join Date
    07-20-2012
    Location
    NJ USA
    MS-Off Ver
    Excel 2003 EXcel 2007
    Posts
    1

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

    What is wrong with simply

    =COUNTIF(D1:D10,"Sugar*")

    ?? Thanks Paul

  7. #7
    Registered User
    Join Date
    09-28-2012
    Location
    Washington State
    MS-Off Ver
    Excel 2003
    Posts
    1

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

    New to forum. Found =SUMPRODUCT helpful, however need to do the following: Total "sugar" or "oranges" as the text unit in a range of cells; then, need to multiply the "text unit" times a "number" in the "Units" range of cells. So total of sugar or oranges sold over period of time times the number of units sold.

    Thanks in advance.

  8. #8
    Registered User
    Join Date
    11-08-2012
    Location
    miami
    MS-Off Ver
    excel 2007
    Posts
    3

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

    Quote Originally Posted by paultheguru View Post
    What is wrong with simply

    =COUNTIF(D1:D10,"Sugar*")

    ?? Thanks Paul
    Tried it and only counts the cells that start with Sugar.

  9. #9
    Registered User
    Join Date
    11-08-2012
    Location
    miami
    MS-Off Ver
    excel 2007
    Posts
    3

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

    the following formula would also work
    =countif(range,"*word*) that contains all the words no matter where they are at the beginning, middle or end in the cell.

  10. #10
    Registered User
    Join Date
    11-20-2012
    Location
    United Kingdom
    MS-Off Ver
    excel 2007
    Posts
    1

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

    this was helpful for a query that came up today. Thanks!

+ Reply to Thread

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