I need a formula to satisfy both examples in col. G (I have entered the desired answer in col. G)
Inventory (Cell E5) is needed to be distributed among item (