SUMIFS help

Polanskiman

Board Regular
Joined
Nov 29, 2011
Messages
119
Office Version
  1. 365
  2. 2016
  3. 2011
  4. 2010
  5. 2007
Platform
  1. Windows
  2. MacOS
  3. Mobile
Hello,

I need some help regarding the SUMIFS function. Here is my formula:

Excel Formula:
=SUMIFS($N$31:$N$39,$L$31:$L$39,"yes",$M$31:$M$39,">0",$N31:$N39,"<=$K$16*1%",$N31:$N39,">=$M31:$M39")

As you can see the last 2 criteria cannot be computed by SUMIFS since it's expecting a value or a text.

I will explicit the last 2 conditions just in case they are not properly written:
- Condition 3: any cells in the $N31:$N39 range should be lower than $K$16*1%
- Condition 4: any cells in the $N31:$N39 range should be lower or equal to cells in $M31:$M39 range.

What do you suggest?

Thank you.
 

Excel Facts

Can Excel fill bagel flavors?
You can teach Excel a new custom list. Type the list in cells, File, Options, Advanced, Edit Custom Lists, Import, OK
You just need to move the cell refs outside of the double quotes.
Excel Formula:
=SUM(SUMIFS($N$31:$N$39,$L$31:$L$39,"yes",$M$31:$M$39,">0",$N31:$N39,"<="&$K$16*1%,$N31:$N39,">="&$M31:$M39))
Although it might need some tweaks to allow for condition 4.
 
Upvote 0
Too late to edit reply above. Based on condition 4 the last criteria should be <= not >=. Although I think that the entire formula might need to be rewritten as sumproduct.
Excel Formula:
=SUMPRODUCT($N$31:$N$39*($L$31:$L$39="yes")*($M$31:$M$39>0)*($N$31:$N$39<=($K$16*1%))*($N$31:$N$39>=$M$31:$M$39))
The sumifs method would compare any cell in N31:N39 to any cell in M31:M39 rather than comparing row by row which I believe would be what you actually want.
 
Upvote 0
Solution
You just need to move the cell refs outside of the double quotes.
Excel Formula:
=SUM(SUMIFS($N$31:$N$39,$L$31:$L$39,"yes",$M$31:$M$39,">0",$N31:$N39,"<="&$K$16*1%,$N31:$N39,">="&$M31:$M39))
Although it might need some tweaks to allow for condition 4.

That one didn't seem to be work. Was giving some funky results.

Too late to edit reply above. Based on condition 4 the last criteria should be <= not >=. Although I think that the entire formula might need to be rewritten as sumproduct.
Excel Formula:
=SUMPRODUCT($N$31:$N$39*($L$31:$L$39="yes")*($M$31:$M$39>0)*($N$31:$N$39<=($K$16*1%))*($N$31:$N$39>=$M$31:$M$39))
The sumifs method would compare any cell in N31:N39 to any cell in M31:M39 rather than comparing row by row which I believe would be what you actually want.

This one did the trick. Not used to using the SUMPRODUCT and yes criteria should have been <= and not >=. I corrected that and now I am getting what I need. Thank you very much.
 
Upvote 0

Forum statistics

Threads
1,224,735
Messages
6,180,640
Members
452,992
Latest member
TokugawaIesuma

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top