SUMIFS Not Working?

canthony24

Board Regular
Joined
Mar 24, 2016
Messages
70
I'm trying to create a sumifs formula to determine the sales of a state for a certain sku in a timeframe. This is just a subset of the source data. I'll be looking for a few states, but Iowa to start.

This info will be populated in another cell.

Iowa for sku 2330993 and for this week 201711.


[TABLE="width: 470"]
<tbody>[TR]
[TD]A
State[/TD]
[TD]B
SKU[/TD]
[TD]C
Calendar Year Week[/TD]
[TD]D
Cases[/TD]
[/TR]
[TR]
[TD]IOWA[/TD]
[TD]2330993[/TD]
[TD="align: right"]201705[/TD]
[TD="align: right"]1[/TD]
[/TR]
[TR]
[TD]IOWA[/TD]
[TD]2330993[/TD]
[TD="align: right"]201712[/TD]
[TD="align: right"]1[/TD]
[/TR]
[TR]
[TD]IOWA[/TD]
[TD]2330993[/TD]
[TD="align: right"]201714[/TD]
[TD="align: right"]1[/TD]
[/TR]
[TR]
[TD]ALABAMA[/TD]
[TD]2330993[/TD]
[TD="align: right"]201705[/TD]
[TD="align: right"]2[/TD]
[/TR]
[TR]
[TD]ALABAMA[/TD]
[TD]2330993[/TD]
[TD="align: right"]201711[/TD]
[TD="align: right"]8[/TD]
[/TR]
[TR]
[TD]ALABAMA[/TD]
[TD]2330993[/TD]
[TD="align: right"]201718[/TD]
[TD="align: right"]4[/TD]
[/TR]
[TR]
[TD]NORTH CAROLINA[/TD]
[TD]2330993[/TD]
[TD="align: right"]201712[/TD]
[TD="align: right"]1[/TD]
[/TR]
[TR]
[TD]NORTH CAROLINA[/TD]
[TD]2752063[/TD]
[TD="align: right"]201712[/TD]
[TD="align: right"]3[/TD]
[/TR]
[TR]
[TD]NORTH CAROLINA[/TD]
[TD]4561413[/TD]
[TD="align: right"]201719[/TD]
[TD="align: right"]3[/TD]
[/TR]
[TR]
[TD]ARIZONA[/TD]
[TD]2752063[/TD]
[TD="align: right"]201713[/TD]
[TD="align: right"]2[/TD]
[/TR]
[TR]
[TD]ARIZONA[/TD]
[TD]2752063[/TD]
[TD="align: right"]201714[/TD]
[TD="align: right"]1[/TD]
[/TR]
</tbody>[/TABLE]
 

Excel Facts

Remove leading & trailing spaces
Save as CSV to remove all leading and trailing spaces. It is faster than using TRIM().
=SUMPRODUCT((A1:A11="IOWA")*(B1:B11=2330993)*(C1:C11=201711)*(D1:D11))
or
=SUMIFS(D1:D11,A1:A11,"IOWA",B1:B11,2330993,C1:C11,201711)

NOTE: Your example data returns 0 since there is no Calendar week 201711 for IOWA in your example data.
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,181
Members
453,022
Latest member
Mohamed Magdi Tawfiq Emam

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