Sum Product Formula + Rolling months update

natheplas

Board Regular
Joined
Aug 28, 2016
Messages
97
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:

Stock CodeQty OrderedOrder NumberMonth-Year
apple50151515Oct-17
apple100959595Oct-16

<tbody>
</tbody>

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


Product Code12 Months6 weeks average of 12 months6 months 6 weeks average of 6 months3 months6 weeks average of 3 months
apple????
banana
orange

<tbody>
</tbody>

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
 

Excel Facts

Excel motto
Not everything I do at work revolves around Excel. Only the fun parts.
Maybe something like this.
Excel Workbook
ABCDEF
1Stock CodeQty OrderedOrder NumberMonth-Year
2apple5015151517-Oct
3apple10095959516-Jan
4banana158888817-Sep
5apple258777717-Feb
6
7
8
9
10Product Code12 Months6 months3 months
11apple755050
12banana152525
13orange000
Sheet
 
Upvote 0
Hi AhoyNC,

Thank you so much for coming back to me, I'm still doing something wrong. Hopefully you can show me.

I've tried it with the first one and It's just returning 0, which I know isn't correct.

=SUMIFS(C34109:C109122,$A$34109:$A$109122,A34109,$F$34109:$F$109122,">="&EOMONTH(TODAY(),-13)+1)

ACEF
1Stock CodeQTY OrderedOrder NumberMonth-Year
2Apple11111Oct-2017
3Apple122222Dec-2016
4Apple 33333April-2017
5Apple54444Jan-2017

<tbody>
</tbody>

I'm not sure If I can post the file on this or send it to you somehow. It would be great to have a resolution for this tonight.

Thank you.

Natheplas
 
Upvote 0
Ah ha! I see what you were getting at. Thank you so much for your help! Have a great day/eve!

Natheplas
 
Upvote 0
You're welcome. You could use Custom Formatting to show your date column as mmm-yyy instead of making it TEXT.
 
Upvote 0

Forum statistics

Threads
1,215,235
Messages
6,123,779
Members
449,123
Latest member
StorageQueen24

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