+ Reply to Thread
Results 1 to 5 of 5

Countif Contains Help

  1. #1
    Forum Contributor
    Join Date
    07-31-2012
    Location
    Derby, UK
    MS-Off Ver
    Excel 2013
    Posts
    138

    Countif Contains Help

    Hey,

    So I know a countif statement for counting cells that contain a specific string of text is =COUNTIF(Breakdown!D285,"TESTWORD*") for example. But how do I make it link to a cell?

    So I have a list of 400 items that I want to use the contains if statement but I can't link it to the cell, only enter the text manually.

    Any help appreciated.

    Thanks,
    Ben

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,726

    Re: Countif Contains Help

    I think you mean this:

    =COUNTIF(Breakdown!D285,"*"&A1&"*")

    assuming the test word is in cell A1 of the current sheet.

    Hope this helps.

    Pete

  3. #3
    Forum Contributor
    Join Date
    09-27-2012
    Location
    London, England
    MS-Off Ver
    2003, 2010
    Posts
    344

    Re: Countif Contains Help

    Perhaps something like below, assuming the Word "TESTWORD" is in cell D1:

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    If solved kindly remember to mark Thread as solved.
    Click the small star icon at the bottom left of my post if this was useful.

  4. #4
    Valued Forum Contributor
    Join Date
    03-29-2013
    Location
    United Kingdom
    MS-Off Ver
    Office/Excel 2013
    Posts
    1,749

    Re: Countif Contains Help

    =COUNTIF(D1:D400,A1)

    That will count all the instances of cell A1 in the range D1:D400
    Elegant Simplicity............. Not Always

  5. #5
    Forum Contributor
    Join Date
    07-31-2012
    Location
    Derby, UK
    MS-Off Ver
    Excel 2013
    Posts
    138

    Re: Countif Contains Help

    Thanks guys worked a treat.

    Ben

+ 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