Inventory Allocation

fruff

New Member
Joined
Nov 5, 2020
Messages
2
Office Version
  1. 365
Platform
  1. Windows
I am managing a file with multiple orders. Each order contains some basic information like customer number, order number, SKU, and quantity ordered. I want to allocate available inventory to these orders, but have been running into some trouble. I have Sheet 1 with all my order data, and Sheet 2 is my inventory data. The issue is I have multiple orders for different customers for the same SKU so I want to allocate it down where it deducts from open inventory.

For example:

I have 10 orders for SKU 6789. 50 units total with 10 each on each order. Several customers.
I have 40 units of SKU 6789 in stock.

I want the file to show something like:

ORDER SKU QTY ORDER CAN SHIP
12345 6789 10 10
34565 6789 10 10
89475 6789 10 10
54678 6789 10 10
45265 6789 10 0

I would consider myself an intermediate excel user and I have been trying everything, and nothing is getting the desired result. Any help would be appreciated.
 

Excel Facts

Easy bullets in Excel
If you have a numeric keypad, press Alt+7 on numeric keypad to type a bullet in Excel.
D2 =IF(VLOOKUP(B2,G:H,2,0)-SUM(C$2:C2)>=0,C2,0)

Question is what to do if you can part fulfill an order as per the below?

Would order 5 get 5 units or 0?

1604610866813.png
 
Upvote 0
D2 =IF(VLOOKUP(B2,G:H,2,0)-SUM(C$2:C2)>=0,C2,0)

Question is what to do if you can part fulfill an order as per the below?

Would order 5 get 5 units or 0?

View attachment 25562
Yes, I would want to fill a partial. So if we have 5 remaining I would want to allocate 5 to row 5. Thanks so much for your help
 
Upvote 0
Try this, not certain I have done enough testing

=IF(VLOOKUP(B2,F:G,2,0)-SUMIF(B$2:B2,B2,C$2:C2)>=C2,C2,IF(VLOOKUP(B2,F:G,2,0)-SUMIF(B$2:B2,B2,C$2:C2)<0,C2--VLOOKUP(B2,F:G,2,0)-SUMIF(B$2:B2,B2,C$2:C2)))

1604621643678.png
 
Upvote 0

Forum statistics

Threads
1,214,415
Messages
6,119,377
Members
448,888
Latest member
Arle8907

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