+ Reply to Thread
Results 1 to 8 of 8

SumProduct Formula to add only positive nmbers

  1. #1
    Valued Forum Contributor
    Join Date
    01-18-2007
    Location
    Georgia
    MS-Off Ver
    2010
    Posts
    4,434

    SumProduct Formula to add only positive nmbers

    Hello:

    I am using below formula successfully to sum P2:P12437 if it meets the criteria.

    Please Login or Register  to view this content.
    The vaule of the cell in column P is positive and negative.
    I want to change the formula to add only positive numbers.
    Please helo me change the above formula.

    Thank you

    Riz
    Last edited by rizmomin; 05-16-2013 at 05:31 PM.

  2. #2
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: SumProduct Formula to add only positive nmbers

    Try

    =SUMIFS(Inv_Sum!$P$2:$P$12437,Inv_Sum!$P$2:$P$12437,">0",Inv_Sum!$D$2:$D$12437,$A131,Inv_Sum!$A$2:$A$12437,$A$1)

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

    Re: SumProduct Formula to add only positive nmbers

    =SUMPRODUCT(--(Inv_Sum!$A$2:$A$12437=$A$1),--(Inv_Sum!$D$2:$D$12437=$A131),(Inv_Sum!$P$2:$P$12437>0),(Inv_Sum!$P$2:$P$12437))
    "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

  4. #4
    Valued Forum Contributor
    Join Date
    01-18-2007
    Location
    Georgia
    MS-Off Ver
    2010
    Posts
    4,434

    Re: SumProduct Formula to add only positive nmbers

    Hi Jonmo1:

    Your formula works great for me..
    Thank you so much

    Riz

  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 Formula to add only positive nmbers

    wasn't the question about sum product?

  6. #6
    Valued Forum Contributor
    Join Date
    01-18-2007
    Location
    Georgia
    MS-Off Ver
    2010
    Posts
    4,434

    Re: SumProduct Formula to add only positive nmbers

    Hi Martinwilson:

    Yes it was sum product in the formula.
    Using the formula you created would give zero instead of $3890.19
    Can you please check the formula and modify again.

    Please let me know if any questions.

    Thank you

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

    Re: SumProduct Formula to add only positive nmbers

    =SUMPRODUCT(--(Inv_Sum!$A$2:$A$12437=$A$1),--(Inv_Sum!$D$2:$D$12437=$A131),--(Inv_Sum!$P$2:$P$12437>0),(Inv_Sum!$P$2:$P$12437))

  8. #8
    Valued Forum Contributor
    Join Date
    01-18-2007
    Location
    Georgia
    MS-Off Ver
    2010
    Posts
    4,434

    Re: SumProduct Formula to add only positive nmbers

    Hi Martinwilson:

    Yes, now the formula works.
    You are genius.
    Thank you so much for your great help.

    Riz

+ 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