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?
<tbody>
</tbody>
<colgroup><col><col><col></colgroup><tbody>
</tbody>
<colgroup><col><col><col span="2"></colgroup><tbody>
</tbody>*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?
=SUMIFS(INDEX($C$5:$C$10,,MATCH(A16,$A$5:$A$10,0)),$B$5:$B$10,">"&B16,$B$5:$B$10,"<"&C16) |
<tbody>
</tbody>
Data | ||
Product | Stock Age (Months) | Qty |
A | 0.3 | 50 |
A | 0.4 | 100 |
A | 1.5 | 599 |
B | 1.5 | 50 |
B | 0.4 | 100 |
B | 0.8 | 599 |
<colgroup><col><col><col></colgroup><tbody>
</tbody>
Product | Age From | Age To | Qty |
A | 0 | 0.5 | 250 |
A | 0.5001 | 1 | 599 |
A | 1 | 2 | 649 |
<colgroup><col><col><col span="2"></colgroup><tbody>
</tbody>