I left the V column as you had it and used the formula
=MIN($I3-SUM($V3:V3),$T3)
entered in W3:DM3.
The main formula used to complete the table is:
=IF(SUM(W$3:W3)>=$T4,0,MIN($I4-SUM($V4:V4),$T4-SUM(W$3:W3)))
which is entered into W4:DM45.
I applied conditional formatting Cell Value = 0 and font color to white applied to $V$3:$DM$45 to hide all of the zeros.
Unfortunately I am not able to attach the file as the size is too large (>1000kb) If you would attach a smaller file, I could demonstrate how to apply these formulas and formatting rules.
Let me know if you have any questions.
Bookmarks