+ Reply to Thread
Results 1 to 4 of 4

Countif that returns a count based on specific words within a cell

  1. #1
    Registered User
    Join Date
    10-18-2011
    Location
    London, England
    MS-Off Ver
    Excel for Mac (16.25)
    Posts
    42

    Countif that returns a count based on specific words within a cell

    Morning all,

    See attached for a good description of my issue.

    Just need to use a countif to count how many times the value from one cell - occurs as part of a string, in another cell.

    Thanks in advance, for your help.
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    07-16-2010
    Location
    Northumberland, UK
    MS-Off Ver
    Excel 2007 (home), Excel 2010 (work)
    Posts
    3,054

    Re: Countif that returns a count based on specific words within a cell

    In C3 try:

    =SUMPRODUCT(--(ISNUMBER(FIND(TRIM(B3),$F$3:$F$8))))

    And copy down.

    Edited to add:

    This will also work:

    =COUNTIF(F3:F8,"*" & B3 & "*")

    Although it will initially return 0 in C3, because there's a space at the end of the B3 text which needs to be removed.
    Last edited by Andrew-R; 12-21-2012 at 05:28 AM.

  3. #3
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,788

    Re: Countif that returns a count based on specific words within a cell

    In C3 cell
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Drag it down...


    If your problem is solved, then please mark the thread as SOLVED>>Above your first post>>Thread Tools>>
    Mark your thread as Solved


    If the suggestion helps you, then Click *below to Add Reputation

  4. #4
    Valued Forum Contributor
    Join Date
    10-29-2012
    Location
    Mojokerto,Indonesia
    MS-Off Ver
    Excel 2007
    Posts
    554

    Re: Countif that returns a count based on specific words within a cell

    use array formula

    {=COUNT(--FIND(TRIM(B3);$F$3:$F$8))}

+ 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