+ Reply to Thread
Results 1 to 4 of 4

Count if example..

  1. #1
    Forum Contributor
    Join Date
    02-10-2007
    MS-Off Ver
    Excel 2010
    Posts
    293

    Count if example..

    Hello,

    I'm trying to do countif, if coulm d matches column a

    In column d, I want to count the number of times word was used in column a, then show the total count, result is in column e.

    in column f, how many times phrase was used in column a.

    so need formula for columns e and f.

    Thanks in Advance
    Attached Files Attached Files

  2. #2
    Forum Guru
    Join Date
    05-24-2011
    Location
    India
    MS-Off Ver
    Office 2021
    Posts
    2,237

    Re: Count if example..

    Hello Vegas,

    Use SUMIF & COUNTIF with wildcard,

    E2, copy down

    =SUMIF(A:A,"*"&D2,B:B)

    F2, copy down,

    =COUNTIF(A:A,"*"&D2)

    If kwd may appear anywhere in the cells, use one more "*" after the cell. like,

    =SUMIF(A:A,"*"&D2&"*",B:B)
    Regards,
    Haseeb Avarakkan

    __________________________________
    "Feedback is the breakfast of champions"

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

    Re: Count if example..

    I can't quite figure out what exactly you're looking to count, but...here are some guesses (using your posted workbook)

    This regular formula returns the count of Col_A cells that contain the Col_D value
    Please Login or Register  to view this content.
    This regular formula returns the number of times the Col_D value occurs in Col_A (assuming some cells may contain repeated values..."White Ponys are white ponys" would count as 2 occurrences
    Please Login or Register  to view this content.
    Using the sample data,
    E2 returns: 3
    F2 returns 3

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

  4. #4
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: Count if example..

    Hi Vegasl,

    See the attached file which has been solved as per your requirement. thanks.


    Countif Example.xlsx
    Regards,
    DILIPandey

    <click on below 'star' if this helps>
    DILIPandey, Excel rMVP
    +919810929744 (India), +971528225509 (Dubai), [email protected]

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1