Sum(Sumifs)

beginvbaanalyst

Board Regular
Joined
Jan 28, 2020
Messages
141
Office Version
  1. 365
Platform
  1. Windows
Hi Everyone,

I'm current having an issue with a formula that should calculate the sum range based on multiple criterias.
=SUM(SUMIFS(_AP24[Updated Change],_AP24[Change V2],{"CM09","CM12","CM25","CM27"},_AP24[Product Code],{"CM05","CM07","CM08","CM10","CM13","CM14","CM15","CM28"}))

If i adjust the formula to the following all of a sudden the calculation works but I don't know why?
=SUM(SUMIFS(_AP24[Updated Change],_AP24[Change V2],{"CM25","CM09","CM12","CM27"},_AP24[Product Code],{"CM28","CM05","CM07","CM08","CM10","CM13","CM14","CM15"}))

if I place CM25 and CM28 to the front of the criteria it will sum my value. Is there a reason why it stops reading after those specific numbers?
 

Excel Facts

Spell Check in Excel
Press F7 to start spell check in Excel. Be careful, by default, Excel does not check Capitalized Werds (whoops)
If you are going to use 2 array criteria (and you cannot use more with this approach) one must be 'horizontal' and the other 'vertical', so you need:

Excel Formula:
=SUM(SUMIFS(_AP24[Updated Change],_AP24[Change V2],{"CM09","CM12","CM25","CM27"},_AP24[Product Code],{"CM05";"CM07";"CM08";"CM10";"CM13";"CM14";"CM15";"CM28"}))
 
Upvote 0
Solution
If you are going to use 2 array criteria (and you cannot use more with this approach) one must be 'horizontal' and the other 'vertical', so you need:

Excel Formula:
=SUM(SUMIFS(_AP24[Updated Change],_AP24[Change V2],{"CM09","CM12","CM25","CM27"},_AP24[Product Code],{"CM05";"CM07";"CM08";"CM10";"CM13";"CM14";"CM15";"CM28"}))
Totally right! Thank you for the help RoryA!
 
Upvote 0

Forum statistics

Threads
1,224,813
Messages
6,181,107
Members
453,021
Latest member
Justyna P

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