+ Reply to Thread
Results 1 to 4 of 4

SUMPRODUCT problems

  1. #1
    Registered User
    Join Date
    05-14-2009
    Location
    mancheter, england
    MS-Off Ver
    Excel 2007
    Posts
    21

    SUMPRODUCT problems

    losing the will to live on this one, probably because it is another simple problem I can't solve

    What I'm trying to do is search a range of cells for a range of values AND then see if it matches one other value in another range of cells.

    In this case,

    =SUMPRODUCT((T3:T49="P6")+(T3:T49="P5")+(T3:T49="P4")+(T3:T49="P3"))*(U3:U49="w")

    T3:T49 can equal P6 or P5 or P4 or P3 but the cells can only be counted if U3:U49 is 'w' as well

    Thanks for your help
    Last edited by NBVC; 05-28-2009 at 04:36 PM.

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: SUMPRODUCT problems

    You are closing the Sumproduct before the search in column U...

    Try:

    =SUMPRODUCT(((T3:T49="P6")+(T3:T49="P5")+(T3:T49="P4")+(T3:T49="P3"))*(U3:U49="w")

    add another open paranthesis at the front end to enclose the + conditions.

    or shorter

    =SUMPRODUCT(--ISNUMBER(MATCH(T3:T49,{"P6","P5","P4","P3"},0))*(U3:U49="w"))
    Last edited by NBVC; 05-28-2009 at 01:58 PM.
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Registered User
    Join Date
    05-14-2009
    Location
    mancheter, england
    MS-Off Ver
    Excel 2007
    Posts
    21

    Re: SUMPRODUCT problems

    Thanks for that

    I love the simplicity of the second formula. Not seen match used before

    Eric

  4. #4
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: SUMPRODUCT problems

    If you are satisfied with the solution(s) provided, please mark your thread as Solved.

    How to mark a thread Solved
    Go to the first post
    Click edit
    Click Go Advanced
    Just below the word Title you will see a dropdown with the word No prefix.
    Change to Solved
    Click Save

+ 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