Hi All,
I'm really struggling with a formula I need to work out, not sure it can be done?
I have a very short deadline with this, all help appreciated.
The formula I have put together is the following
=SUMPRODUCT(--(Table_Query_from_******_Ltd3[STOCK_CODE]=A8), --(Table_Query_from_******_Ltd3[Date]="Oct-2017"), Table_Query_from_******_Ltd3[QTY_ORDER])
This gives me a total for each product on order for each month.
For example if we are selling 10 apples over 5 different orders in Oct 2017. It would say 10 in that cell.
This works well and is what I need, but I now need to take it further.
I have another worksheet with historical data on it like below:
[TABLE="width: 500"]
<tbody>[TR]
[TD]Stock Code[/TD]
[TD]Qty Ordered[/TD]
[TD]Order Number[/TD]
[TD]Month-Year[/TD]
[/TR]
[TR]
[TD]apple[/TD]
[TD]50[/TD]
[TD]151515[/TD]
[TD]Oct-17[/TD]
[/TR]
[TR]
[TD]apple[/TD]
[TD]100[/TD]
[TD]959595[/TD]
[TD]Oct-16[/TD]
[/TR]
</tbody>[/TABLE]
How can I use a sumproduct or sumifs formula, or any formula to say in that in cell B2 below ???? it scans the worksheet above for apple, but only adds together qty ordered within the last 12 months, using todays date (so this will change as the year goes on and the sheet above is updated).
[TABLE="width: 500"]
<tbody>[TR]
[TD]Product Code[/TD]
[TD]12 Months[/TD]
[TD]6 weeks average of 12 months[/TD]
[TD]6 months[/TD]
[TD] 6 weeks average of 6 months[/TD]
[TD]3 months[/TD]
[TD]6 weeks average of 3 months[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]apple[/TD]
[TD]????[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]banana[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]orange[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
Please let me know if you need anymore information for this one.
I dont know if its possible, but I need to to use a formula to add together qty ordered, over a changing date range for each product code.
I need a formula for 12 months, 6 months and 3 months. I can work out 6 weeks of that.
Thanks
Natheplas
I'm really struggling with a formula I need to work out, not sure it can be done?
I have a very short deadline with this, all help appreciated.
The formula I have put together is the following
=SUMPRODUCT(--(Table_Query_from_******_Ltd3[STOCK_CODE]=A8), --(Table_Query_from_******_Ltd3[Date]="Oct-2017"), Table_Query_from_******_Ltd3[QTY_ORDER])
This gives me a total for each product on order for each month.
For example if we are selling 10 apples over 5 different orders in Oct 2017. It would say 10 in that cell.
This works well and is what I need, but I now need to take it further.
I have another worksheet with historical data on it like below:
[TABLE="width: 500"]
<tbody>[TR]
[TD]Stock Code[/TD]
[TD]Qty Ordered[/TD]
[TD]Order Number[/TD]
[TD]Month-Year[/TD]
[/TR]
[TR]
[TD]apple[/TD]
[TD]50[/TD]
[TD]151515[/TD]
[TD]Oct-17[/TD]
[/TR]
[TR]
[TD]apple[/TD]
[TD]100[/TD]
[TD]959595[/TD]
[TD]Oct-16[/TD]
[/TR]
</tbody>[/TABLE]
How can I use a sumproduct or sumifs formula, or any formula to say in that in cell B2 below ???? it scans the worksheet above for apple, but only adds together qty ordered within the last 12 months, using todays date (so this will change as the year goes on and the sheet above is updated).
[TABLE="width: 500"]
<tbody>[TR]
[TD]Product Code[/TD]
[TD]12 Months[/TD]
[TD]6 weeks average of 12 months[/TD]
[TD]6 months[/TD]
[TD] 6 weeks average of 6 months[/TD]
[TD]3 months[/TD]
[TD]6 weeks average of 3 months[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]apple[/TD]
[TD]????[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]banana[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]orange[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
Please let me know if you need anymore information for this one.
I dont know if its possible, but I need to to use a formula to add together qty ordered, over a changing date range for each product code.
I need a formula for 12 months, 6 months and 3 months. I can work out 6 weeks of that.
Thanks
Natheplas