• 412K Members
• 3,210 Online
• 467K Conversations
SOLVED

Contributor

Need to allocate stock

Hi,

here attached my file which i need to allocate my stock.

in 1st table i have order number / delivery date / items and required qty . 2nd table i have mentioned closing stock . i need to allocate that closing stock to 1st table items on available qty column based on delivery date ( with delivery date priority- 1st qty for 1st delivery)

13 Replies

Re: Need to allocate stock

Try this formula in E4, copied down rows:
=(LOOKUP(C4,K\$4:L\$8)>=
(SUMIFS(D\$4:D\$63,B\$4:B\$63,"<"&B4,C\$4:C\$63,C4)+
SUMIFS(E\$3:E3,B\$4:B4,B4,C\$4:C4,C4)))*D4

Re: Need to allocate stock

hi,

thanks for your respond. con you please add this formula to the attachment and send with attachment

Re: Need to allocate stock

The file with my suggested formula is attached hereto.

Re: Need to allocate stock

hi @Twifoo
its working 80%. but there are some issues. as a example when we filter product A , after your formula its allocated 38450. but only we have 35700. product 2 and 5 also the same. product 3 not allocated total qty. product 4 also the same. can you please help for this

Re: Need to allocate stock

In the attached file, I modified the formula in E4, copied down rows, to this:

=(LOOKUP(C4,K\$4:L\$8)>=
(SUMIFS(D\$4:D\$63,B\$4:B\$63,"<"&B4,C\$4:C\$63,C4)+
SUMIFS(D\$4:D4,B\$4:B4,B4,C\$4:C4,C4)))*D4

Note that the formula returns 0, if the closing stock is insufficient to fulfill the delivery of the required quantity of products on a given date. Stated differently, the cumulative quantity of the product as at a given date cannot exceed the closing stock of such product.

Re: Need to allocate stock

thank you @Twifoo its working calm. is there any way to allocate that balance stock for next delivery. i mean which shows as "0" but can add some qty for next delivery

Re: Need to allocate stock

The available quantity remains 0 until such time that the quantity of closing stock becomes sufficient to fulfill the required quantity of the product on a given date. This is in accordance with the law that entitles the buyer to rescind the sales contract if the quantity delivered is less than the quantity ordered.

Re: Need to allocate stock

@Twifoo  hi,

i've add my original details for your updated chart. but there are some issues, can you please look. some items not in my clossing stock. but it shows as balance stock and some not allocated. please

Solution

Re: Need to allocate stock

In the attached file, I modified the formula in E4, copied down rows, to this:

=(IFNA(VLOOKUP(C4,K\$4:L\$1749,2,0),0)>=
(SUMIFS(D\$4:D\$822,B\$4:B\$822,"<"&B4,C\$4:C\$822,C4)+
SUMIFS(D\$4:D4,B\$4:B4,B4,C\$4:C4,C4)))*D4

Note that the foregoing formula also returns 0 for ordered items without available quantity in the closing stock. In the previous version, it was assumed that all ordered items are included in the closing stock but the quantities thereof may be insufficient to fulfill that quantity to be delivered on a given date.

Re: Need to allocate stock

every thing sorted. thank you very much for your support. appreciate that

Re: Need to allocate stock

You're welcome. I'm glad we finally did it.

Re: Need to allocate stock

HI

i have one more question. i added new column and give a condition by IF formula to get complete items and non complete items. and also i have added new sheet and copy closing stock details for it. i need to make a hyperlink when click on condition column cell to filter relevant data from sheet 2

Re: Need to allocate stock

Because you are now raising a new issue, I suggest you post it in a new conversation. Thereby, you will be able to obtain more suggestions, not necessarily from me.
Related Conversations
flashing a white screen while open new tab
cntvertex in Discussions on
13 Replies
Tabs and Dark Mode
cjc2112 in Discussions on
22 Replies
Stable version of Edge insider browser
HotCakeX in Discussions on
35 Replies
How to Prevent Teams from Auto-Launch
chenrylee in Microsoft Teams on
28 Replies
PacketMon Components are not loading in WAC 1909
HotCakeX in Windows Admin Center on
2 Replies