+ Reply to Thread
Results 1 to 5 of 5

Conditional product of sum

  1. #1
    Forum Contributor
    Join Date
    12-10-2008
    Location
    Austin
    Posts
    660

    Conditional product of sum

    Maybe I should say conditional product of conditional sum.
    Eitherway, the values in column J are summed if P is column R for the repective row.

    Please Login or Register  to view this content.
    Now, I'm confused on how to change my formula to multiply the result above
    by the value in column Q for the same respective row.


    anyhelp in setting up the formula is appreciated.

    TIA,

    bdb
    Last edited by bdb1974; 03-03-2009 at 07:08 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: Conditional product of sum

    Maybe you want?

    =SUMPRODUCT(--($R$5:$R$246="P"),--($R$5:$R$246=" "),J$5:J$246,Q$5:Q$246)
    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
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Conditional product of sum

    Are you saying SUM Product of J & Q if either R is P or Space (should this be Null perhaps ? ("")) ?

    =SUMPRODUCT(--(ISNUMBER(MATCH($R$5:$R$246,{" ","P"},0))),$J$5:$J$246,$Q$5:$Q$246)

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

    Re: Conditional product of sum

    Judging by the actual question.. I am not sure you need to check for " " or "" at all, if you want to sumproduct when column R ="P"

    =SUMPRODUCT(--($R$5:$R$246="P"),J$5:J$246,Q$5:Q$246)

  5. #5
    Forum Contributor
    Join Date
    12-10-2008
    Location
    Austin
    Posts
    660

    Re: Conditional product of sum

    NBVC,

    That's it! It works.

    And, you're right, I really don't need the empty values.

    Thanks for everyone's input.

    bdb

+ 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