Sumifs Array not calculating all criteria

masood78

New Member
Joined
Oct 8, 2013
Messages
6
Hi
I am trying to use sumfis formula to calculate total sales using OR condition. I am using dynamic ranges in the formula but I have also tried using normal range as well. Formula is calculating only one random value in the criteria range and not all of them.

Formula is here

{=SUM(SUMIFS('Sheet1'!$M:$M,'Sheet1'!$C:$C,SalesRepRange,'Sheet1'!$L:$L,RegionRange,'Sheet1'!$H:$H,MonthRange,'Sheet1'!$E:$E,$E$7))}

Thanks
 

Excel Facts

Repeat Last Command
Pressing F4 adds dollar signs when editing a formula. When not editing, F4 repeats last command.
Try deleting the SUMIFS crap and using array notation. I find it usually works better. {=sum((range1=criteria1)+(range2=criteria2)+(range3=criteria3)*(sumrange))}

* is AND
+ is OR

Easy way to remember the operators is that in totality x > 0 = TRUE. TRUE is defined as 1, FALSE is defined as 0. Hence, 0*0*1*1*1 = 0, evaluates false and will not return any data. 0+0+1+1+1 = 3, evaluates as true and will return data.
 
Upvote 0

Forum statistics

Threads
1,223,231
Messages
6,170,885
Members
452,364
Latest member
springate

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