+ Reply to Thread
Results 1 to 5 of 5

Sumproduct (or countifs) for comment containing a specific word

  1. #1
    Registered User
    Join Date
    01-05-2009
    Location
    Southern Pines, NC
    MS-Off Ver
    Excel 2007
    Posts
    95

    Question Sumproduct (or countifs) for comment containing a specific word

    I have the attached file. I want to enter a formula at the bottom (cell C45) that will sum the number of occurrences that column A = “Cite” and Column C contains the word Missing.

    If the comment in column C was consistent (i.e. only stated missing), I would use the formula =SUMPRODUCT(--($A$5:$A$44="Cite"),--($C$5:$C$44="Missing")). I am using the sumproduct rather than Countifs so that it is compatable with 03. If Countifs is easier, I could use it.

    However, the comment may say multiple of things, so I need the formula to look for the word Missing.

    Furthermore, I also need a formula for cell C46 that counts the occurrences that Column A = “cite” and Column C is not null and does not contain the word “Missing”.

    I will then use a third formula to count the nulls, but if I can get help with the above two, I think I can figure out the third.

    Thanks,
    Attached Files Attached Files
    Last edited by mjhopler; 06-02-2010 at 10:45 AM.

  2. #2
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Sumproduct (or countifs) for comment containing a specific word

    =SUMPRODUCT(--($A$5:$A$44="Cite"),--(ISNUMBER(SEARCH("Missing",$C$5:$C$44))))
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  3. #3
    Registered User
    Join Date
    01-05-2009
    Location
    Southern Pines, NC
    MS-Off Ver
    Excel 2007
    Posts
    95

    Re: Sumproduct (or countifs) for comment containing a specific word

    That finds if it contains the word missing, but how do I also find if it does not contain Missing and not blank?

  4. #4
    Registered User
    Join Date
    01-05-2009
    Location
    Southern Pines, NC
    MS-Off Ver
    Excel 2007
    Posts
    95

    Re: Sumproduct (or countifs) for comment containing a specific word

    Nevermind, found it, set the isnumber formula set to =false. Thanks.

  5. #5
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Sumproduct (or countifs) for comment containing a specific word

    =SUMPRODUCT(--($A$5:$A$44="Cite"),--(NOT(ISNUMBER(SEARCH("Missing",$C$5:$C$44)))),--(ISTEXT($C$5:$C$44)))

+ 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