• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

Distribution of funds

02Vicki

New Member
Hi,

I'm trying to come up with a formula to evenly distribute funds across a number of years based on if there is an end date or not. Each line has a different number of years for distribution. Apologies if I'm not explaining it very well. Example, I have someone who has paid say $1,000. I have a start date of 01/01/2018 and no end date, the maximum number of years that this needs to be distributed is say 4 (this will vary). The equal distribution would be $250 per year. I can get that bit ok. My problem is when there is an end date. If I have distributed the amount for say two years, I need the remaining balance to be brought back. I can also get this but can't put them together. Attached is an example. The top line has a formula which is working fine, however when I bring it down it's not working when the end year is null. I've hard coded what the answer should be. Any help would be appreciated.
 

Attachments

  • Book2.xlsx
    8.8 KB · Views: 10
Hi,

Please check and see attached file if it is what you needed.

Regards
Bosco
Thank you, but not exactly what I'm after. The end date could be blank or it could be any date between the start date and the maximum years date (if that makes sense). The end date will determine the years attended. The formula needs to work without an end date in the cell.
 
I think I've cracked it: =IF(AND($B2<="31/12/2020"*1,$C2=""),$F2,IF(AND($B2<="31/12/2020"*1,$C2<="31/12/2020"*1),$A2-$H2-$I2,IF(AND($B2<="31/12/2020"*1,$C2>"31/12/2020"*1),$F2,0))). Please note that I added another column in, "D" for my reference (doesn't come into the formula), which has pushed the other columns out.
 

Attachments

  • Book1.xlsx
    9.2 KB · Views: 3
Back
Top