Auto allocation, append next row if not able to allocate quantity

sunny281199

New Member
Joined
Dec 5, 2020
Messages
2
Office Version
  1. 365
Platform
  1. Windows
Hi all and good day,

I'm currently doing supply and demand fulfillment allocation.
I'm having issue with the store on hand quantity distribution with customer order quantity.
I need help on the formula smart enough to skip to next row if the store on hand quantity not able to fulfill order quantity
In short,
If the store on hand quantity balance still able to allocate, allocate it
If not able to allocate, move to next row

I have performed auto sorting based on customer priority, ship month and dates hence (refer to the attachment), the row sequence are not allowed to change.

Appreciated fellow forumers help on this issue

Column G
Excel Formula:
=SUMIF(A2:A$2,A2,D2:D$2)
Column H
Excel Formula:
=IF(IF(G2>F2,F2-SUMIF(A2:A$2,A2,D2:D$2),D2)<=0,0,IF(G2>F2,F2-SUMIF(A2:A$2,A2,D2:D$2),D2))
Column I
Excel Formula:
=D2-H2
Column J
Excel Formula:
=SUMIF(A2:A$2,A2,H2:H$2)
Capture.PNG
 

Excel Facts

Format cells as time
Select range and press Ctrl+Shift+2 to format cells as time. (Shift 2 is the @ sign).
Hey guys,

Basically, I've used v-lookup to index match Item Number (columnA) and Store onhand (columnF) qty in separate Spreadsheet-B.
The Store on hand qty is the sum of all Part A found in Spreadsheet-B.
That is why all rows has the same exact number for (Store onhand)


So now, I would like to deduct the Order Qty (columnD) with Store onhand (columnF), provided it has enough to allocate and distribute.

If referring to row 9 and 10 (red font), the Order qty are exceeding the Store balance (columnJ) qty, thus it shall ignore it and placing it under Outstanding balance

Hence, the available balance qty Store onhand shall try to allocate for the next row 11 and 12 (hilite in yellow), which the balance still enough to fulfill Order qty.


My formula in (columnH) not able to tackle it especially cell H11,H12 & H20 where the Store bal able to supply for Order Qty


Hope this explain well and good for you and fellow forumers understanding.

Thanks
 

Attachments

  • Capture.PNG
    Capture.PNG
    36.2 KB · Views: 20
Upvote 0

Forum statistics

Threads
1,215,020
Messages
6,122,709
Members
449,093
Latest member
Mnur

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