I would like to explain my problem with example, I have the total amount available 500 for Member ID 122
first row the cost is 400 so it the money available is more than the cost so the cost amount should go to Dept pay
and nothing should go to Mem payment. Then we have 100 dollars left and the cost of Item 2 is 80 so 20 dollars should be payid
by dept and the rest of 60 dollars should go to member payment and since for the third item there is no amount left so the whole 50 dollars should be paid by member. How I can automate this? Is there any VBA?
It should be done by each Member ID. For each member the total amount available is different.