Sumifs Formula not working correctly

Conell8383

Board Regular
Joined
Jul 26, 2016
Messages
66
Hi all. I hope you are well and that you can help. I have a SUMIFS formula and it is not working correctly I was hoping that perhaps you may be able to help.

My Formula is this
Code:
=SUMIFS(C4:N4,C4:N4,C4<=11,C4:N4,F4<=1,C4:N4,I4<=1,C4:N4,L4<=1)

But it is returning a value of 0 it should be returning a value of 4 Please see my pic for more details.

Any help would be greatly appreciated.

1wpsgMh.png
 

Excel Facts

How to create a cell-sized chart?
Tiny charts, called Sparklines, were added to Excel 2010. Look for Sparklines on the Insert tab.
Try:

=SUM(AND(C4<=11,C4<>""),AND(F4<=1,F4<>""),AND(I4<=1,I4<>""),AND(L4<=1,L4<>""))
 
Upvote 0
Hi Steve the Fish: =SUM(AND(C4<=11,C4<>""),AND(F4<=1,F4<>""),AND(I4<=1,I4<>""),AND(L4<=1,L4<>"")) kind of worked but if i change the numbers in the cells the number remains 4 it does not change the result. I need it to calculate if C4 is any number below or equal to 11 and the other to be below or equal to 1

Thank you for the help it is greatly appreciated.
 
Upvote 0
You've only got 4 values to check, why not try:

=IF($C4<=11,$C4,0)+IF($F4<=1,$F4,0)+IF($I4<=1,$I4,0)+IF($L4<=1,$L4,0)

WBD
 
Upvote 0
Ah ok try:

=SUM((C4<=11)*C4,(F4<=1)*F4,(I4<=1)*I4,(L4<=1)*L4)
 
Last edited:
Upvote 0
@ WideboyDixon: Thank you very much this. It worked great. I wonder if I could throw another challenge your way. In Cell S4 I would like to sum or total if C4 is between 11 and 19 and F4 is between 2 and 20 and I4 is between 2 and 20 and L4 is between 2 and 20.

Is this possible? Thanks again for all the help .
 
Last edited:
Upvote 0
@Steve the Fish: Thank you very much this. It worked great. I wonder if I could throw another challenge your way. In Cell S4 I would like to sum or total if C4 is between 11 and 19 and F4 is between 2 and 20 and I4 is between 2 and 20 and L4 is between 2 and 20.

Is this possible? Thanks again for all the help .
 
Upvote 0
Using Steve's pattern:

=SUM(AND(C4>=11,C4<=19)*C4,AND(F4>=2,F4<=20)*F4,AND(I4>=2,I4<=20)*I4,AND(L4>=2,L4<=20)*L4)

Adjust >=, <= and numbers as appropriate.

WBD
 
Upvote 0
You the man Wideboy :cool: Thank you so much for the assistance today. It is greatly appreciated. Much respect from Dublin
 
Upvote 0

Forum statistics

Threads
1,215,412
Messages
6,124,761
Members
449,187
Latest member
hermansoa

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