Page 1 of 1
amortisation
Posted: Fri Mar 01, 2024 2:56 pm
by sna
Hi Dear!
I have data in B2:H4 i need to generate allocation of prepaid expense base on amount from start date to end date.I need to generate even amount but only two dicimal so the last amount may be a bit different to adjust sum of the allocation equals to the base amount.
Previously ,I used this formula
=IF((B3<=EOMONTH(--$G$2:$R$2,-1)+1)*(C3>=$G$2:$R$2),ROUND(E3/D3,2),0)
i attached a template
Note I use excel 365
thanks
Re: amortisation
Posted: Fri Mar 01, 2024 3:37 pm
by norkaz
...
G3
=IF(COLUMNS($G3:G3)=MONTH($C3),$E3-ROUND($E3/$D3,2)*($D3-1),IF(COLUMNS($G3:G3)<MONTH($C3),IF(COLUMNS($G3:G3)<MONTH($B3),"",ROUND($E3/$D3,2)),""))
Copy to the right-hand side and copy down.
Bigcat9
RCA Bangkok Thailand
.......
Re: amortisation
Posted: Fri Mar 01, 2024 4:03 pm
by norkaz
...
For the spill array formula, you can try this.
G3
=LET(s,SEQUENCE(,12),IF(s=MONTH(C3:C4),E3:E4-ROUND(E3:E4/D3:D4,2)*(D3:D4-1),IF(s<MONTH(C3:C4),IF(s<MONTH(B3:B4),"",ROUND(E3:E4/D3:D4,2)),"")))
Bigcat9
RCA Bangkok Thailand
.......
Re: amortisation
Posted: Fri Mar 01, 2024 9:54 pm
by sna
Thx,will take a look
Re: amortisation
Posted: Mon Mar 04, 2024 5:45 pm
by sna
thank you for your nice solution.i come up with a formula =IF(
OR(
MONTH(DATEVALUE(G$2&" 1")) < MONTH($B3),
MONTH(DATEVALUE(G$2&" 1")) > MONTH($C3)
), "-",IF(MONTH(DATEVALUE(G$2&" 1")) = MONTH($C3),
ROUND($E3 - SUM($F3:F3), 2),
ROUND($E3/$D3, 2)
)
)
Re: amortisation
Posted: Mon Mar 04, 2024 6:12 pm
by norkaz
sna wrote: Mon Mar 04, 2024 5:45 pm
thank you for your nice solution.i come up with a formula =IF(
OR(
MONTH(DATEVALUE(G$2&" 1")) < MONTH($B3),
MONTH(DATEVALUE(G$2&" 1")) > MONTH($C3)
), "-",IF(MONTH(DATEVALUE(G$2&" 1")) = MONTH($C3),
ROUND($E3 - SUM($F3:F3), 2),
ROUND($E3/$D3, 2)
)
)
Great!
Bigcat9
RCA Bangkok Thailand
Re: amortisation
Posted: Wed Mar 06, 2024 2:28 pm
by sna