+ Reply to Thread
Results 1 to 2 of 2

Combining IF and multiple SUMIF statements, if A>0 & B is between

  1. #1
    Lee
    Guest

    Combining IF and multiple SUMIF statements, if A>0 & B is between

    Thanks for the help with my last post.

    I’m using the following formula to sum column K when the corresponding
    number in column BE is between + - 50. AW122 houses -50 and AW123 50.

    =SUMIF(BE2:BE118,">="&$AW122,$K2:$K118)-SUMIF(BE2:BE118,">"&$AW123,$K2:$K118)

    Now I’d like to determine the sum for only the positive values in column K.
    If the number in column K is greater than 0 and a corresponding number in
    column BE is between + - 50, sum the number in column K. The sum in the
    example below would be 1

    K BE
    -0.2 45
    1 -43
    0.3 54

    Thanks for your help.


  2. #2
    Aladin Akyurek
    Guest

    Re: Combining IF and multiple SUMIF statements, if A>0 & B is between

    The additional condition calls for a different function...

    =SUMPRODUCT(--(BE2:BE118>=$AW122),--(BE2:BE118<=$AW123),--($K2:$K118>0),$K2:$K118)

    Note that this type of formulas does not admit whole column refereces
    like K:K.

    Lee wrote:
    > Thanks for the help with my last post.
    >
    > I’m using the following formula to sum column K when the corresponding
    > number in column BE is between + - 50. AW122 houses -50 and AW123 50.
    >
    > =SUMIF(BE2:BE118,">="&$AW122,$K2:$K118)-SUMIF(BE2:BE118,">"&$AW123,$K2:$K118)
    >
    > Now I’d like to determine the sum for only the positive values in column K.
    > If the number in column K is greater than 0 and a corresponding number in
    > column BE is between + - 50, sum the number in column K. The sum in the
    > example below would be 1
    >
    > K BE
    > -0.2 45
    > 1 -43
    > 0.3 54
    >
    > Thanks for your help.
    >


+ 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