Sum Data in a Range using unique dynamic references

Jimmers

New Member
Joined
Jul 8, 2019
Messages
14
Office Version
  1. 365
Platform
  1. Windows
Hi alll,

Just coming up with a difficult problem at the moment. Trying to SUM forecast data in a Range, but using unique variables to decide what that range is.

Forecast Sheet is as follows;

Demo Data.xlsx
A
2123456
Forecast Data


Stock Sheet is as follows;

Demo Data.xlsx
F
25
Stock


We want to be able to see based on the Date stock goes overage the amount of forecast we have to sell on that SKU from the forecast table. I'm sure theres a way to do this, in my brain there will be a way to say that SKU 123344 goes short dated on 16/12/22, in that time period the total forecast is 1480, so we only have a risk of 20cs on that product. However it is falling out of my range of knowledge on how to Formulise this.

Any help would be appreciated.
 

Excel Facts

Does the VLOOKUP table have to be sorted?
No! when you are using an exact match, the VLOOKUP table can be in any order. Best-selling items at the top is actually the best.
Two things would help.

1.
Update your Account details (or click your user name at the top right of the forum) so helpers always know what Excel version(s) & platform(s) you are using as the best solution often varies by version. (Don’t forget to scroll down & ‘Save’)

2.
With XL2BB, select the range that you want to show before clicking Mini Sheet.
 
Upvote 0
Hi,

Just realised XL2BB had failed.

Update as below;

Forecast;

Book1
ABCD
1SKUWeekWeek CommencingForecast
21234564530/10/2022100
31234564606/11/202220
41234564713/11/2022300
51234564820/11/2022400
61234564927/11/2022100
71234565004/12/202220
81234565111/12/2022300
91234565218/12/2022400
101234565325/12/2022100
11123456101/01/202320
12123456208/01/2023300
13123456315/01/2023400
14123456422/01/2023100
151223344530/10/2022100
161223344606/11/202220
171223344713/11/2022300
181223344820/11/2022400
191223344927/11/2022100
201223345004/12/202220
211223345111/12/2022300
221223345218/12/2022400
231223345325/12/2022100
24122334101/01/202320
25122334208/01/2023300
26122334315/01/2023400
27122334422/01/2023100
Forecast
Cell Formulas
RangeFormula
C3:C14,C16:C27C3=C2+7


Stock

Book1
ABCD
1SKUBBDWk Commencing Out of DateTotal
212345604/04/202306/11/20221
312345624/04/202327/11/2022220
412345601/05/202304/12/2022356
512233414/12/202205/06/2022402
612233431/12/202219/06/2022778
712233428/02/202313/01/202390
Stock


I have also updated my account.
 
Upvote 0
I have also updated my account.
Thanks for doing that. (y)

SKU 123344 goes short dated on 16/12/22,
Where do we find that information in the sample data?


in that time period
In what time period? A time period sounds like a range from one time to another to me.

the total forecast is 1480,
How is that calculated from the sample data?

so we only have a risk of 20cs on that product.
How is that calculated?
 
Upvote 0
Hi Peter,

Thanks for the responses, unfortunately I think my original post and the sample data have changed so I will retype my query;

So column C in the stock data shows us the week commencing date of when the SKU will go short dated from our POV, i.e 147 days prior to the bb4 date.

So the requirement in this instance would be to look at the forecast data and sum the total of the forecast for that SKU up to that week commencing date, so for example;

Line three; SKU 123456 goes short dated w/c 27/11/22 so I would then want to total forecast for SKU 123456 up to that w/c date so would sum total rows 2-5 on Forecast sheet, in this example it would be 820cs, as we only have 220cs of that SKU for that date we would class that as a mitigated short dated risk.

The dataset is also coming from a Power Query, so if a formula is possible, how we would put that into Power Query would be great appreciated.
 
Upvote 0

Forum statistics

Threads
1,223,885
Messages
6,175,182
Members
452,615
Latest member
bogeys2birdies

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