+ Reply to Thread
Results 1 to 4 of 4

SUMPRODUCT condition ="*text*" not working

Hybrid View

  1. #1
    Registered User
    Join Date
    07-26-2012
    Location
    Chicago, IL
    MS-Off Ver
    Excel 2007
    Posts
    2

    SUMPRODUCT condition ="*text*" not working

    There are two conditions for this formula - one determines how many are in the parents in the members category (in column T), and the second one determines of the parents how many are female in the genders column (in column K).

    The formula I'm using:

    =SUMPRODUCT((T11:T40="parent")*(K11:K40="F"))

    Now if in the members category, the person indicates they are a student and a parent, the text will say "parent,student" and so I edited the formula to be this to take into consideration additional text in that cell:

    =SUMPRODUCT((T11:T40="*parent*")*(K11:K40="F"))

    Which results in the count not working!

    I don't know why and I can't understand it. Help? Thank you!!

  2. #2
    Forum Expert tigeravatar's Avatar
    Join Date
    03-25-2011
    Location
    Colorado, USA
    MS-Off Ver
    Excel 2003 - 2013
    Posts
    5,361

    Re: SUMPRODUCT condition ="*text*" not working

    nfellen,

    Welcome to the forum!
    Text= can find exact matches (ignoring case sensivity), but not partial matches. To find partial matches you'll need to use Isnumber(search()) like so:
    =SUMPRODUCT(ISNUMBER(SEARCH("parent",T11:T40))*(K11:K40="F"))
    Hope that helps,
    ~tigeravatar

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  3. #3
    Registered User
    Join Date
    07-26-2012
    Location
    Chicago, IL
    MS-Off Ver
    Excel 2007
    Posts
    2

    Re: SUMPRODUCT condition ="*text*" not working

    Thanks - that explanation helps, but it's still not working for me. I tried playing with it - quotes, no quotes, asterisks, no asterisks - not working. I did change the range information to $T:$T and $K:$K but that shouldn't affect things negatively.

  4. #4
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,261

    Re: SUMPRODUCT condition ="*text*" not working

    Hi nfellen and welcome to the forum.

    Another way to make True a number is using a Unary (I think that is what it's called). The idea is you put a negative sign in front of stuff that is true so it turns to negative. You put two negative signes and it turns it positive. See if this formula works for you in the attached..

    =SUMPRODUCT(--(K2:K25="F")*--(T2:T25="Parent"))
    Attached Files Attached Files
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

+ 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