am new to vba and i need some advise on how i can make a calculation based on a limit cap on 1 column and place the remaining values to another that is the values that is placed on the column shall not be greater than that of the cap and it continue with other values.
i done it in a loop but it has not work till not. many thanks for the help in advance.
example column A has 500 as qty. and the daily produce limit in column C is 200 , col D is 250 column E is 250 therefore when doing the calculation:
it shall place the first 200 in col C ,
the 2nd 250 on col D
and the remaining on Col E that is 50 as qty.
and this loop for another quantity in col A and start directly in col E as the produce limit has already been full for col C,D,
it has to control that the qty in each column shall not go beyond the produce limit and it shall continue to place the value till the produce limit is equal to the qty in a col.
please see the attachements for better idea.
many thanks in advance for the help.