Find Date at Which Open Orders will Exhaust Finished Goods on Hand

shapeshiftingkiwi

New Member
Joined
Mar 31, 2021
Messages
33
Office Version
  1. 365
Platform
  1. Windows
Hello!

Company has 2 SKUs. Below is a standard report run on these SKUs. You can see that SKU 2 has enough stock to fill all open SOs (sales orders) but SKU 1 does not.

MrExcel Worksheet.xlsx
ABCDEF
1Item IDQty Per Pallet Qty on HandQty on SOQty AvailableNet Weight
2SKU 154,3806,720-2,34020
3SKU 2104,6503,0501,60040
Inventory


Here are the ship dates of the open orders.

MrExcel Worksheet.xlsx
ABCDEFG
1Drop ShipSO NoShip ByCustomer NameItem IDLine DescriptionQty Remaining
28/19/22SKU 1240
39/1/22SKU 2550
49/1/22SKU 1240
59/2/22SKU 2500
69/6/22SKU 1240
79/7/22SKU 1240
89/8/22SKU 1240
99/8/22SKU 1240
109/8/22SKU 1240
119/8/22SKU 2650
129/8/22SKU 2450
139/8/22SKU 2400
149/8/22SKU 1480
159/9/22SKU 2500
169/12/22SKU 1240
179/15/22SKU 1240
189/15/22SKU 1480
199/15/22SKU 1240
209/15/22SKU 1240
219/15/22SKU 1240
229/15/22SKU 1240
239/16/22SKU 1720
249/20/22SKU 11,200
259/22/22SKU 1240
269/22/22SKU 1240
279/29/22SKU 1240
Ship Dates


The highlighted cells below are my request. Cell F2 should report "9/16/22" since that is the earliest date for which Company does not have stock available. Cell F3 should report "N/A" since Company has inventory to support all open orders.

MrExcel Worksheet.xlsx
ABCDEFGHIJK
1Item IDQty Per Pallet Qty on HandQty on SOQty AvailableDATE NEEDEDDATE TO PRODUCENet Weight (pounds)# on Hand# Needed# on SO
2SKU 1543806720-2340################2087600-46800134400
3SKU 210465030501600################4018600064000122000
Output
Cell Formulas
RangeFormula
B2:B3B2=VLOOKUP(A2,Inventory!A:F,2,FALSE)
C2:C3C2=VLOOKUP(A2,Inventory!A:F,3,FALSE)
D2:D3D2=VLOOKUP(A2,Inventory!A:F,4,FALSE)
E2:E3E2=VLOOKUP(A2,Inventory!A:F,5,FALSE)
G2:G3G2=F2-7
H2:H3H2=VLOOKUP(A2,Inventory!A:F,6,FALSE)
I2:I3I2=C2*H2
J2:J3J2=E2*H2
K2:K3K2=D2*H2
 

Excel Facts

Who is Mr Spreadsheet?
Author John Walkenbach was Mr Spreadsheet until his retirement in June 2019.
Try this in F2:

Excel Formula:
=LET(f,'Ship Dates'!$E$2:$E$30=A2,d,FILTER('Ship Dates'!$C$2:$C$30,f),a,FILTER('Ship Dates'!$G$2:$G$30,f),v,SEQUENCE(ROWS(a)),h,TRANSPOSE(v),s,MMULT(--(v>=h),a),XLOOKUP(C2+1,s,d,"NA",1))
 
Upvote 0
Solution
Amazing! I was able to adapt this to my real world use and it's a big time saver!

Thanks so much!
 
Upvote 0

Forum statistics

Threads
1,215,064
Messages
6,122,939
Members
449,094
Latest member
teemeren

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