Sumifs with a Match

Mac1512

Board Regular
Joined
Jul 26, 2011
Messages
58
Hi All
I am trying to use a formula to sup the total Qty of Aged Stock into certain buckets 0-0.5 months / 0.5-1 etc.

I have cobbled together a formula but the values do not add up, Is there a better way to do this?
[TABLE="width: 613"]
<tbody>[TR]
[TD="width: 613"]=SUMIFS(INDEX($C$5:$C$10,,MATCH(A16,$A$5:$A$10,0)),$B$5:$B$10,">"&B16,$B$5:$B$10,"<"&C16)[/TD]
[/TR]
</tbody>[/TABLE]

[TABLE="width: 256"]
<colgroup><col><col><col></colgroup><tbody>[TR]
[TD]Data[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Product[/TD]
[TD]Stock Age (Months)[/TD]
[TD]Qty[/TD]
[/TR]
[TR]
[TD]A[/TD]
[TD="align: right"]0.3[/TD]
[TD="align: right"]50[/TD]
[/TR]
[TR]
[TD]A[/TD]
[TD="align: right"]0.4[/TD]
[TD="align: right"]100[/TD]
[/TR]
[TR]
[TD]A[/TD]
[TD="align: right"]1.5[/TD]
[TD="align: right"]599[/TD]
[/TR]
[TR]
[TD]B[/TD]
[TD="align: right"]1.5[/TD]
[TD="align: right"]50[/TD]
[/TR]
[TR]
[TD]B[/TD]
[TD="align: right"]0.4[/TD]
[TD="align: right"]100[/TD]
[/TR]
[TR]
[TD]B[/TD]
[TD="align: right"]0.8[/TD]
[TD="align: right"]599[/TD]
[/TR]
</tbody>[/TABLE]


[TABLE="width: 320"]
<colgroup><col><col><col span="2"></colgroup><tbody>[TR]
[TD]Product[/TD]
[TD]Age From[/TD]
[TD]Age To[/TD]
[TD]Qty[/TD]
[/TR]
[TR]
[TD]A[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0.5[/TD]
[TD="align: right"]250[/TD]
[/TR]
[TR]
[TD]A[/TD]
[TD="align: right"]0.5001[/TD]
[TD="align: right"]1[/TD]
[TD="align: right"]599[/TD]
[/TR]
[TR]
[TD]A[/TD]
[TD="align: right"]1[/TD]
[TD="align: right"]2[/TD]
[TD="align: right"]649[/TD]
[/TR]
</tbody>[/TABLE]
*Formula is the Qty box e.g 250
 

Excel Facts

What do {} around a formula in the formula bar mean?
{Formula} means the formula was entered using Ctrl+Shift+Enter signifying an old-style array formula.

Excel 2010
ABCD
1ProductStock Age (Months)Qty
2A0.350
3A0.4100
4A1.5599
5B1.550
6B0.4100
7B0.8599
8
9
10A00.5250
11A0.50011599
12A12649
13
14if you need it by product
15A00.5150
16A0.500110
17A12599
18B00.5100
19B0.50011599
20B1250
Sheet4
Cell Formulas
RangeFormula
D10=SUMIFS($C$2:$C$7,$B$2:$B$7,">"&B10,$B$2:$B$7,"<"&C10)
 
Upvote 0
Excellent Thanks - How do I see the Fromula you have in D15 that returns 150 (Yes it is by product I need it)
 
Upvote 0

Forum statistics

Threads
1,223,246
Messages
6,170,996
Members
452,373
Latest member
TimReeks

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