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
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