Originally Posted by
apoh07
I share how I solved the situation! The key was to realize that I could apply another logic to calculate what was the total amount of interest to be paid in the current month, and from there use logical conditions. For those who are interested, these are the formulas I used:
(The function names may be incorrect because I translated everything from Spanish, but I attach the final file).
E2: =LET(INTEREST,SEARCHX($A2,$A$1:$A1,$E$1:$E1,0,0,-1)/10,CREDIT,IF(($D2-SEARCHX($A2,$A$1:$A1,$F$1:$F1,0,0,-1))>=INTEREST,$D2-INTEREST,0)-SEARCHX($A2,$A$1: $A1,$F$1:$F1,0,0,-1),PAYMENT,IF(((($D2-SEARCHX($A2,$A$1:$A1,$F$1:$F1,0,0,0,-1)))<=INTEREST,$D2,$D2-CREDIT),(SEARCHX($A2,$A$1:$A1,$E$1:$E1,0,0,0,-1)+$C2)-CREDIT)
F2: =LET(INTEREST,FINDX($A2,$A$1:$A1,$E$1:$E1,0,0,-1)/10,PAGONET,IF(($D2-FINDX($A2,$A$1:$A1,$F$1:$F1,0,0,-1)<INTEREST),$D2-FINDX($A2,$A$1:$A1,$F$1:$F1,$F1,0,0,-1),INTEREST+FINDX($A2,$A$1: $A1,$F$1:$F1,0,0,-1)),IF(PAGONET<INTEREST,SEARCHX($A2,$A$1:$A1,$F$1:$F1,0,0,0,-1)+(INTEREST-$D2),SEARCHX($A2,$A$1:$A1,$F$1:$F1,$F$1:$F1,0,0,-1)-(PAGONET-INTEREST))))
G2: =SUM.SI($A$1:$A1,$A2,$E$1:$E1)/10-$F2
Bookmarks