How To Carry Out Complex Allocation Among Various Sites?

xlmaniac

Well-known Member
Joined
Jul 2, 2009
Messages
527
Office Version
  1. 2010
Platform
  1. Windows
Dear All,
The solution to this complex problem is beyond my capability and imagination but I know that this would be very simple to many excel gurus here in this forum.
Would be grateful , if somebody could suggest a solution & it will save unwanted manual intervention that presently I am carrying out.
I am trying to allocate non-performing SKUs across stores based on certain parameters. Stock with Positive Qty are the Source and that with Negative Qty are Destination.
The transfer can happen under 4 different methods for Same SKU:-
1)One Store(Source) To One Store(Destination).(1:1)
2) One Store(Source) To Multiple Store(Destination).(1:N)
3) Multiple Store(Source) To Multiple Store(Destination).(N:N)
4) Multiple Store(Source) To One Store(Destination).(N:1)
I would like to provide samples under each scenarios with fixed rules along with the desired result.
Scenario 1-(1:1):-
Under this scenario, against any given SKU, the qty from Source will be allocated to destination Store based on the MIN qty between them.
StoreSKU NoQty
E14-14
F1412

<tbody>
</tbody>
In this scenario, 12 Pcs from Store F will be allocated to Store E.
Scenario 2-(1:N):-
StoreSKU NoQty
A12-8
B12-34
C1240
D12-12

<tbody>
</tbody>
In this scenario, the stocks from Source(Store-C) will be allocated to the store with highest ABSOLUTE VALUE basis at first(Store:-B,34 Pcs), followed by to (Store:- D,6 Pcs). This rule will be applied for all SKUs under this Scenario(1:N).
Scenario 3-(N:N):-
StoreSKUQty
G16-2
H161
I164
J16-3

<tbody>
</tbody>
This is a very complex scenario with many possible combinations possible.
One rule which needs to be applied here is that highest Positive qty stocks at first will be allocated among negative stocks. In case any residual qty still needs to be allocated it should, check the 2nd highest Positive Qty Stocks and allocate. This loop will continue like this till the allocation is complete.
Scenario 4-(N:1):-
StoreSKUQty
K224
L226
M222
N22-10

<tbody>
</tbody>
In this scenario, the Highest Positive Qty needs to get allocated 1st, followed by 2nd Highest Positive Qty & will continue like this.
Sum of aggregated Positive Qty needs to be less than or equal to negative qty.
Finally I would like to populate the end result of the aforesaid 4 Scenarios, in the following format in a separate sheet.
SKU NoSource StoreDestination StoreAllocated Qty
14FE12
12CB34
12CA6
16IJ3
16IG1
16HG1
22LN6
22KN4

<tbody>
</tbody>

Pls help with the possible solution.
 

Excel Facts

Easy bullets in Excel
If you have a numeric keypad, press Alt+7 on numeric keypad to type a bullet in Excel.

Forum statistics

Threads
1,215,086
Messages
6,123,031
Members
449,092
Latest member
ikke

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