+ Reply to Thread
Results 1 to 3 of 3

Sumproduct with column that "contains" instead of "equals"

  1. #1
    Forum Contributor Portuga's Avatar
    Join Date
    02-20-2004
    Location
    Portugal
    MS-Off Ver
    365
    Posts
    852

    Sumproduct with column that "contains" instead of "equals"

    Hi,

    Tried to no avail, find the answer for this question:

    I wish to count values with the following criteria:

    Values that in columnA are equal to "pass"
    Values that in columnB contain the string "blue"

    Because I cant use the formula:
    =SUMPRODUCT((A1:A11="Pass")*(B1:B11="*Blue*"))

    I tried the following sumproduct formula, but it doesn´t work.
    =SUMPRODUCT((A1:A11="Pass")*(COUNTIF(B1:B11,"*Blue*")))

    After some unsuccessfull sum boolean aproaches here I am.

    I could use helper columns and an if statement by row:
    =If(and(A1="pass",countif(B1,"*blue*")),1,0)

    And sum the column but I would rather have a 1 formula solution.



    Thanks
    Last edited by Portuga; 04-11-2008 at 03:23 PM.
    If you found the solution to your question. Mark the thread as "Solved"
    Thank everyone that helped you with a valid solution by clicking on their

    There is no such thing as a problem, only a temporary lack of a solution

  2. #2
    Forum Expert darkyam's Avatar
    Join Date
    03-05-2008
    Location
    Houston, TX
    MS-Off Ver
    2013
    Posts
    2,191
    Please Login or Register  to view this content.

  3. #3
    Forum Contributor Portuga's Avatar
    Join Date
    02-20-2004
    Location
    Portugal
    MS-Off Ver
    365
    Posts
    852
    excelent! 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