Splitting an allocation between stores based on the current stock level

JackG333

New Member
Joined
Aug 1, 2022
Messages
1
Office Version
  1. 365
Platform
  1. Windows
Hi,

I am currently trying to write a formula to be able to automate allocating stock between certain shops/stores. I have to allocate the stock based on the current stock holdings in those stores in relation to the sales that they receive. For example if one store sells 10 every week and the product will only last for 10 days then I don't want to send more than 10 at any one time. Realistically i would like to allocate the stock based on the lowest days cover that the stores have. (Days cover - Sales divided by current amount of stock)

Does someone know a way that I could type 200 units in a cell, which will then automatically populate the 200 units between the stores that have the lowest amount of stock cover in relation to sales? So if one store has 2 days cover, and another has 1.5 days cover, i need it to allocate 1 or more units to the store that has 1.5 days cover until it reaches 2.1 days cover, from which it would then start allocating 1 unit to the store that has 2 days cover and so on?

Any help would be much appreciated!

Thanks
Jack
 

Attachments

  • Capture.PNG
    Capture.PNG
    9.1 KB · Views: 37

Excel Facts

How to change case of text in Excel?
Use =UPPER() for upper case, =LOWER() for lower case, and =PROPER() for proper case. PROPER won't capitalize second c in Mccartney
Have a look at this and let me know if it makes sense. Your inputs in the blue cells. Formulas determine a target "days cover" just before the next replenishment cycle, and this is used to apportion the "stock to allocate" across the stores. Since you are likely going to be dealing with integers, you'll have to round the results (see yellow cells), and that will lead to some rounding error that might require adding or subtracting one from selected stores. I'm assuming your posted "days cover" values were incorrect...see column D for the calculation of the current day's cover.
ErlangC_20220801.xlsx
ABCDEFGH
1days btwn replenishments-->7
2stock to allocate-->200
3constant days cover target-->24.80882
4
5total allocated-->200201
6Store NumberLast 7 Days SalesTotal Stock on HandTo SendCurrent Days CoverProjected Stock on Hand just before next replenishmentProj Days Cover just before next replenishment
7112143231.617651649.6176470624.8088235332
8113222574.970597.95454545577.9705882424.8088235375
911491129.897068.55555555631.8970588224.8088235330
10115122232.5294112.8333333342.5294117624.8088235333
11116111930.9852912.0909090938.9852941224.8088235331
Sheet1
Cell Formulas
RangeFormula
D3D3=7/SUM(B7:B11)*($D$2+SUM(C7:C11)-$D$1/7*SUM(B7:B11))
D5,H5D5=SUM(D7:D11)
D7:D11D7=$D$3*B7/7+$D$1/7*B7-C7
E7:E11E7=C7*7/B7
F7:F11F7=C7-B7/7*$D$1+D7
G7:G11G7=F7*7/B7
H7:H11H7=ROUND(D7:D11,0)
Dynamic array formulas.
 
Upvote 0
I little more intuitive way to show the D7 formula:
Excel Formula:
=B7/7*($D$3+$D$1)-C7
Sum the number of days between replenishment and the maximum number of cover days (such that all stores would be projected to have the same number of cover days) and multiply that sum by the daily sales rate...which then tells us the number of items that could be sold at the current sales rate over that period of time. Then subtract the stock on hand. The trickier part is determining the target value for the "days cover" value in D3.
 
Upvote 0

Forum statistics

Threads
1,214,515
Messages
6,119,973
Members
448,933
Latest member
Bluedbw

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