Greetings
I'm trying to allocate available stock based on the earliest requirement date until the unrestricted stock is 0 then noting how much we are short
However I'm getting a Parsee error
This is what I'm aiming to get
Order Material Required Date Required Qty Todays Stock Stock Remain Note
0020018728 10097-0100 20220522 30.000 51.000 21
0020020708 10097-0100 20220526 1.000 51.000 20
0020020739 10097-0100 20220527 24.000 51.000 0 Short 4
0020005591 10097-2100 20220407 1.000 51.000 0 Short 1
0020005591 10097-2100 20220407 1.000 51.000 0 Short 1
0020005591 10097-2100 20220407 1.000 51.000 0 Short 1
0020005591 10097-2100 20220407 1.000 51.000 0 Short 1
Attached is my attempt at the multi row formula and the excel with the data.
Am I using the right tool? or should I be considering a reiterative macro?